From 5ad3aeeea4a79b96c454d402f3355c0d49a573d4 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 18 Aug 2008 06:32:23 +0000 Subject: [PATCH] newppu: fix a bug which caused metroid to fail to boot --- src/ppu.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ppu.cpp b/src/ppu.cpp index cc51d0db..cadeaf3b 100644 --- a/src/ppu.cpp +++ b/src/ppu.cpp @@ -1820,12 +1820,13 @@ int FCEUX_PPU_Loop(int skip) { PPU_status &= ~0x40; PPU_status &= ~0x20; - //todo - this early out might cause a problem. - //we might need to check it over and over in the main rendering loop (fceu does this) - if(!ScreenON && !SpriteON) { - runppu(kLineTime*242); - goto finish; - } + //---------- + //this early out caused metroid to fail to boot. I am leaving it here as a reminder of what not to do + //if(!PPUON) { + // runppu(kLineTime*242); + // goto finish; + //} + //---------- //There are 2 conditions that update all 5 PPU scroll counters with the //contents of the latches adjacent to them. The first is after a write to