Re: [AD] X vsync emulation (timing)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Chris wrote:

What I interpretted, when the idea initially was proposed, was to use
the background thread with a new procedure, not the input procedure,
to increment retrace_count, and for vsync to busy loop until
retrace_count increments.

It'd be the same thing as my patch except that you busy-wait instead of calling select(). I can live with that.

The problem is that the background thread runs at 100Hz. You can't update retrace_count at some arbitrary rate without introducing another thread, which is just overkill.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/