Re: [AD] X vsync emulation (timing) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Thu, 2004-11-18 at 04:24 -0800, Chris wrote:
> >
> > As a side effect, programs that use vsync() no longer take up 100% CPU
> > on X. It's like calling rest().
>
> I can't say I like this. For one, it forces the main thread to sleep
> for the durration of the timeslice, unconditionally, when vsync is
> called. Also, the current way of vsync'ing does not always run at
> 70Hz, but is adjusted if the screen refresh is known (or can be
> reasonably inferred). With this, it's basically timing against the
> scheduler at a static 100Hz, as opposed to timing against something
> reasonably assumed to be approximately near the actual refresh rate.
>
I agree.. but with the XWIN driver, it doesn't matter, since not even X
itself cares about the VBI, AFAIK. So we can safely assume every X11 as
a 100Hz monitor :)
--
Elias Pschernig