Setting and getting an accurate FPS?

2 months 2 weeks ago - 2 months 2 weeks ago #1754 by AlexAmery

I found some code on the Love2D wiki for locking the FPS of my game to a specified amount at wiki/love.timer.sleep.Visibly it seems to be working (in my project), but love.timer.getFPS() is reporting numbers other than what I set the FPS to.Attached is a .love file that shows the issue in the simplest form; FPS is set to 30 but is displaying as 59 In my actual project file I've seen it report anything from 23 to 112 using the same code from the wiki.Can anyone enlighten me on what the problem is?

Please help.

I didn't find the right solution from the Internet.

Marketing video service

Last Edit: 2 months 2 weeks ago by AlexAmery.

Please Log in or Create an account to join the conversation.

Time to create page: 0.162 seconds