Hi, I've made the first version of the metronome App with my NES library which is also under development.
The only modification to VRAM that I make after each VBlank is update one of three numbers, with a function that reads a 3 character string and outputs it to a Name table using an array that transforms ASCII codes into actual tile numbers.
I didn't think that would be so slow to make glitches!
What it happens is that when a number is printed, for like one frame the background scrolls so that the 0,0 of the first tile of the string being printed becomes the 0,0 of the screen, I can see this clearly with FCEXUD.
Can you tell me if this problem is that it just takes too long after Vblank or is it something else?
Is this unwanted scrolling a normal glitch when violating the VBlank period?
Thanks!
http://petruza.com.ar/rnes/NEStronome.nes
VBlank glitch - unwanted scrolling
Moderator: Moderators
Yayyyy! thanks! that was it.Disch wrote:Make sure you set the scroll (write to $2000 and twice to $2005) after you finish all your PPU drawing in VBlank. Remember that $2006 and $2007 mess with the scroll -- so you need to reset your scroll after you finish with those regs.
Maybe my library is not so slow after all...
But How beautiful!! No, really, now that you told me, yes, you're right, but it works on FCEUxd and some other emus...Dwedit wrote:It's a beautiful gray screen on FCEUX.
Problem solved!