View Single Post
Old 08-06-2002, 02:30 AM   #73
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,774
How the 60fps box works:

The program draws a frame, sets a timer, then returns CPU control to Windows.

When the programs gets control back, it checks the timer. If less than 1/60 of a second has gone by, it keeps retuning control to Windows until it has. On some machines, Windows keeps control of the CPU for a bit longer, resulting in a frame rate of less than 60.

For all the complaining about CPU usage, I've yet to hear any suggestion on any possible way to quiet down the CPU. What else would I do besides return control to Windows after drawing a frame? Attempt to stop the processor's heart, then restart it when a timer counts down? The processor itself would be what is powering that timer.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote