On Fri, 22 Oct 1999, [iso-8859-1] Rub�n wrote:
> On 1999/Oct/22, Niklas H�glund wrote:
> > It'd be even better to increase a value every vblank so applications
> > can find out if it has missed any frames, and also to make sure
> > applications don't redraw more than once per frame.
>
> I'm not agree, applications doesn't have to use the same refresh
> than the monitor. Your monitor can be refreshing at 100 Hz, and 50 frames
> per second is more than enough to see an animation smooth.
> And if you do this, some people would synchronize the applications
> in infinite loops testing this number, instead of using alarms (the right
> method, IMHO).
I think an incrementing number is more flexible and leaves the
application programmer more leeway.
> Other reason is that a flag is tested much faster than a number (at
> least on intel).
I don't think this is pertinant; if you're busy-polling (GetRayPos), you
should be doing something else in the polling loop, and a few extra cycles
at the end of the loop aren't going to have much impact at all. If
you have nothing else to do other than wait for a retrace you should
fall asleep (WaitRetrace.)
--
Brian