Reply 80 of 81, by keenmaster486
- Rank
- l33t
If you update after end of vsync but before active display, then the card will latch display start and pel pan on the next vertical end *whether you want it to or not* - you may be in the middle of drawing a new frame.
There needs to be some method of checking whether a new frame is ready on the drawing (non-visible) page, and then immediately updating display start and pel pan and having the card latch them right away.
If you're in the middle of drawing a new frame when the card latches those registers, then you may get sprite flickering unless you use a buffer in VRAM to draw background and sprites onto your draw page at the same time. In that case you would only get some screen tearing.
World's foremost 486 enjoyer.