newppu: fix a bug which caused metroid to fail to boot

This commit is contained in:
zeromus 2008-08-18 06:32:23 +00:00
parent 7d7f5ad468
commit 5ad3aeeea4
1 changed files with 7 additions and 6 deletions

View File

@ -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