Hi,
I'm struggling with figuring out the correct sequence of functions to call so that I can change the contents of background planes (switching from one level to another) without ugly flickering/glitching.
Right now, my steps are like so:
- wait for vsync
- VDP_setEnable(0)
- change the contents of the background planes to new level
- VDP_setEnable(1)
But this doesn't look right. There's always a split-second of the screen that's just filled with a solid background color. It's not a clean change from one level to the next.
What am I missing?
Thanks!
DJCC
Clean transitions
Moderator: Stef
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
Se even with the VDP turned off, waiting for vblank still works?Stef wrote:Ok so in this case you can turn palette off temporary or directly turn VDP off as you did (this has the advantage of maximizing the bandwidth) except you need to wait vsync before turn it back on so you won't enable it at mid screen
-
- Very interested
- Posts: 2452
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
There's "turn off VDP" and "turn off rendering" bits, you have to use the latter. VDP uses the backdrop color, like in blanking areas when rendering is off. Turning off VDP itself will result in loss of sync.
Mida sa loed ? Nagunii aru ei saa 
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am