Is that how JimO handled it? I've never seen the Mac version.
Trying to shoot for a specific frame rate is not an exact science. Basically, after each frame you give up control of the microprocessor. You tell the system how long you'd like to sleep, but other programs could keep control as long as they see fit. The next time you get it back (if ever), you check to see how much time has elapsed. If It's not enough for the desired frame rate, you relinquish control again. A messy and imprecise business.
|