Page 1 of 1

PPU timing

Posted: Tue Aug 09, 2016 11:49 am
by Muhammad_R4
Hello NES DEV :D

I have a question related to this timing diagram
http://wiki.nesdev.com/w/images/d/d1/Ntsc_timing.png

I now understand it for except a small thing , what happens when the ppu starts up ( or resets ) ? i think it starts at scanline 0 but this will make the first 2 tiles , sprites on this scanline won't go well

I understand that after the first frame, everything will go well but I am talking about the first scanline in the first frame after reseting or powering up generally.

Re: PPU timing

Posted: Tue Aug 09, 2016 12:14 pm
by Dwedit
On a real PPU, it locks itself for a frame. You can't enable rendering until it has 'warmed up', or has run for 261 scanlines worth of time.
In the mean time, it's drawing a solid screen due to rendering being disabled, usually color 00 (gray).

Re: PPU timing

Posted: Tue Aug 09, 2016 12:18 pm
by Muhammad_R4
On a real PPU, it locks itself for a frame or two. You can't enable rendering until it has 'warmed up' over two vblanks worth of time.
what do you mean exactly by " it locks itself " and " warmed up " ?

another question , what about the emulation ? does it also the same as the real ?

Re: PPU timing

Posted: Tue Aug 09, 2016 12:22 pm
by Dwedit
I mean that the PPU will ignore any write from the CPU until 261 scanlines have passed from power on.
It's stuck in its default state (rendering disabled (forced blanking), vblank interrupts disabled, scroll set to zero, etc...)