TurboWarp/desktop

High FPS is inconsistent

BigJezzaYT opened this issue · 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?

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).