[SDL] Re: Re: Re: extension for 2D with DRI

Jon Skinner jon at deltix.com
Thu Apr 13 20:28:11 PDT 2000


> Which makes me even more curious how some Win32 apps seem to be able to do
a
> good job without any direct control over the hardware. I suppose if the
blit
> happens fast enough, and the OS has a low latency timer, you could
"average"
> 30fps by sleeping for 33 msec; then the new frame would go out on the next
> retrace, whenever that happens to be.

As I understand it, the traditional way of locking playback to 30 fps is to
time how long it takes to draw the frame, then sleep for 33 less the time it
takes to draw the frame.

Jon.





More information about the SDL mailing list