View Single Post
Old 05-19-2010, 01:11 AM   #23
Jim Sachs
Developer
 
Jim Sachs's Avatar
 
Join Date: Dec 2000

Location: Southern Oregon
Posts: 9,768
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.
Jim Sachs
Creator of SereneScreen Aquarium
Jim Sachs is offline   Reply With Quote