Issue of fps drop


The value of fps sometimes drop under the 60 fps that I fixed, while fps_real is always bigger than 1000. fps_real did not drop.
I don't understand why it lag, I checked the profiling and nothing is strange. I also checked if I didn't change the gamespeed: that's not the case, it stays to 60fps.

Could someone help me please?

thank you


That's because fps_real only accounts for CPU usage, so not what you want to use to measure performance in most cases. fps is the actual frame rate your game is running at and accounts for both CPU and GPU usage. room_speed/gamespeed is just a cap on the frame rate.