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.
|