Advertisement

Frame Rate and Clock Ticks

Started by August 25, 2000 10:05 AM
0 comments, last by Naveed Ahmed 24 years, 3 months ago
How can we limit number of frames/sec. The process in tut23 is very vague, and difficult, is there any other way to get clock tick and make the framerate stick to something like 60 frames/sec.
try someting like this...

void DrawFrame()
{
static DWORD t = 0;

...

while( GetTickCount() < t )
;
PageFlip();
t = GetTickCount() + 100;
}

This topic is closed to new replies.

Advertisement