desktop icon indicating copy to clipboard operation
desktop copied to clipboard

High FPS is inconsistent

Open BigJezzaYT opened this issue 1 year ago • 1 comments

I'm making a game, and I realized that the camera extension couldn't be interpolated, so I set the project FPS to 240 and changed the logic to account for it, but the framerate became wildly inconsistent, spiking between 200 and 300FPS. Is this because there is no regulator to stall the project until the next frame needs to be drawn?

BigJezzaYT avatar May 02 '24 10:05 BigJezzaYT

It might just be your project actually lagging, and 240FPS is probably overkill for most usecases. You can probably just set the FPS to 0 (to use the screen's refresh rate), then use a delta time solution (there's the Deltatime extension for it, or you can make it with vanilla blocks).

CST1229 avatar May 02 '24 13:05 CST1229