PPU timing

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

Post Reply
Muhammad_R4
Posts: 66
Joined: Sat Jun 25, 2016 5:33 am

PPU timing

Post 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.
User avatar
Dwedit
Posts: 4924
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: PPU timing

Post 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).
Last edited by Dwedit on Tue Aug 09, 2016 12:20 pm, edited 1 time in total.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Muhammad_R4
Posts: 66
Joined: Sat Jun 25, 2016 5:33 am

Re: PPU timing

Post 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 ?
User avatar
Dwedit
Posts: 4924
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: PPU timing

Post 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...)
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
Post Reply