Skip to main content
gamedev.net
🔒 Locked

Frame rate limiter.

Started by PsycoBlade 0 replies 250+ views
Original Post
PsycoBlade
PsycoBlade
For one application I am developing I need to limit the frame rate. For example I need to make sure that the frame rate never goes ABOVE 50 fps. I used to be able to do this in ASM by simply waiting a small amount of time after a frame is rendered in order to keep a program at a desired FPS no matter how fast the system you ran it on was. Is there any way to get this in PR? This would be really nice for me because for this particluar application I need to time events to certain frames. It''s kinda hard to explain so you''re just gonna have to trust me. -Rich
Amadrias
Amadrias
If I was you Psyco, I would not based events on frame numbers because it is just to restrictive.

However, if you need to plan certain events based on 50 frames/sec, I would suggest you to use the GetTicks() function in order to do so.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.