Mail Archives: djgpp/1997/03/02/12:34:04
Okay,
I checked my code and it _is_ correct.
But I've worked out why the flicker occurs.
The waitforVR (80h) causes a wait *before*
the page (CRT Start Address) change.
My game loop goes:
1. Change working page to non-visual
2. Do stuff
3. Make visual page = working page
4. Repeat from 1.
I think the pages are switched, but (as Shawn suggested),
I start writing to the (now) back page before the actual
switch takes place, thus I see the changes happening.
I changed my code. Now I don't wait for VR in the set CRT
Start Address, but I do an explicit wait for VR *after*.
Everything is now rock-solid.
But now my question is:
What is the real purpose of the wait for VR flag?
Do some cards cause snow if this is not used?
I don't want to have to wait for two VRs within one game loop just
to make sure.
Any more thoughts anyone?
Jason.
- Raw text -