I fire slower with lower FPS, how can I fix it?

Hello, I currently have a problem where if my FPS goes down I fire my gun slower (it should fire every 0.1 seconds), is there any way to fix this?

I tried limiting my FPS, but that did nothing, so it seems that it’s not the FPS but the ms that slows the firing.

It propably happens when one frame takes more than 0.1 seconds.

I suggest to get time between frames and if it’s bigger than 0.1 get value to first decimal place divide it by 0.1.

It should give you a proper the number of bullets to fire at particular frame.

Rest of the time between frames (next decimal places e.g. 0.0123) add to next frame.

I hope it helps.

Alright, I’ll give it a try, thanks. :slight_smile: