Re: Polling loop good here???



"Frank Kotler" <fbkotler@xxxxxxxxxxx> wrote:

> Any ideas how I might sync to bit 3 of port 0x3DA, the video card's
> vertical sync signal?

Under a single-tasking "OS" without protection (read: DOS), I would
poll - afaik there's too many video cards that don't support the
refresh IRQ, and the polling did work pretty well back then.

These days, I would use what my graphics API offers me, whether that
be DirectX, OpenGL, or one of the lower-level libraries. Timers are
pretty much out of the question.

It would probably be worth looking into how some of the existing
libraries do it; http://www.libsdl.org/index.php comes to mind.


.