Skip to main content
gamedev.net
🔒 Locked

Frame Timing

Started by CodeMaster000 Dec 17, 2002 at 9:27 PM 0 replies 450+ views
Original Post
CodeMaster000
CodeMaster000
Can someone lead me to a good frame timing demo or if someone feels so gungho they could write a nice little bit. I am just a little to put in the timer... should I just put the drawing functions I also want to limit the time each from can take to draw (or is that a bad idea), and I atleast want to limit how fast a frame rate can be. Thanks for any help.
Raduprv
Raduprv
If you want frame limiting, it''s simple. Create a timer that calls back a function, say, 10 times/second (or whatever value you want). Then, from that function, call the draw_scene() thing.
You might want to have some sort of semaphore, so you won''t try to draw the scene while the current sceene is still drawn (can happen on slow computers, or if your timer is set to a big value).

Height Map Editor | Eternal lands

Topic Locked

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

Sign in to reply to this topic.