SOLVED FPS Problems

YoSniper

Member
Hello all,

I am having an issue with a game I am developing regarding frame rate.

This seems to be a recent development, so I'm wondering if it's a software issue.

I am making a game, and I'm setting the room_speed to 60 in every single room. However, when I test the game, the fps never seems to get above 45 except for a spike here and there.

There is ample memory available on my machine, I have not found any viruses, and there aren't more than a few dozen objects present at any given time.

Can somebody explain how I might be able to fix this? I have attached a sample image depicting my debug text that I print for my own purposes. The number in parentheses is the value of fps_real.

[EDIT] I found an old topic about the same matter, and after increasing my sleep margin to 10ms, the game runs fast like it should.
 

Attachments

Last edited:
Top