#25553 - Darmstadium - Tue Aug 24, 2004 11:54 pm
everything about my demo works quite well, except that when you scroll along the map, the screen flickers and gets sort of sliced up. see for yourself: http://jacklu0.tripod.com/demo.zip
use the directional pad to scroll around the map
It really isn't that bad except when you scroll vertically and horizontaly at the same time. is it just my crappy computer or is there something wrong with my code?
thanks for your thoughts
#25558 - Krakken - Wed Aug 25, 2004 1:41 am
It's down, are you waiting for v-blank before drawing? This would be the most common cause.
#25559 - Darmstadium - Wed Aug 25, 2004 3:21 am
yes, i wait until the vblank is over before i start changing the coordinates of sprites and the values of background scroll registers and such.
#25562 - dagamer34 - Wed Aug 25, 2004 4:22 am
Darmstadium wrote: |
yes, i wait until the vblank is over before i start changing the coordinates of sprites and the values of background scroll registers and such. |
You wait until it's over? You are supposed to wait until it has started!
_________________
Little kids and Playstation 2's don't mix. :(
#25566 - Darmstadium - Wed Aug 25, 2004 4:40 am
well, i tried it both ways but there is still the same exact result
#25574 - Krakken - Wed Aug 25, 2004 8:10 am
Okay i'm going to analyse your demo now. (You can get to it by first going to his main site)
#25575 - Krakken - Wed Aug 25, 2004 8:25 am
Okay, I think it's a problem with your dynamic map update code. It seems to be updating tiles on parts of the screen that can still be seen. That's the only reason I could determine anyway...
#25590 - Darmstadium - Wed Aug 25, 2004 5:28 pm
i'm sure the map update code doesn't write anything where you can see it. I've been messing around with my demo and I found that some of my code for updating various things in the demo is run every frame, which is much too often, so i removed it from my main loop. That helped, though there is still a lot of flickering. Could the problem be that my code that i execute each frame is too slow?