|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Help with flicker
This sounds like a refresh rate flicker problem. In VGA modes, the screen
redraws itself 70 times a second, and you must synchronize yourself to this.
There are a variety of ways to accomplish this. The easiest and most
well-known way is the following:
void WaitRetrace() {
asm mov dx,3DAh
l1:
asm {
in al,dx
and al,08h
jnz l1
}
l2:
asm {
in al,dx
and al,08h
jz l2
}
}
I could explain that, but it would take time - something I have precious
little of. Run this before you draw each frame - it should help.
-Ender Wiggin
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once
To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html
|
|