PPU: Moved sprite processing to cycle 285 (fixes Mega Lo Mania opening)

This commit is contained in:
Sour 2019-04-07 22:41:40 -04:00
parent 5f3e9e25aa
commit 3595614df5

View file

@ -180,10 +180,10 @@ void Ppu::Exec()
if(_scanline != 0) {
RenderScanline();
}
if(!_forcedVblank) {
EvaluateNextLineSprites();
}
_console->GetDmaController()->ProcessHdmaChannels();
} else if(_cycle == 285 && !_forcedVblank) {
//Approximate timing (any earlier will break Mega Lo Mania)
EvaluateNextLineSprites();
} else if(_scanline == 0 && _cycle == 6) {
_console->GetDmaController()->InitHdmaChannels();
} else if((_cycle == 134 || _cycle == 135) && (_console->GetMemoryManager()->GetMasterClock() & 0x07) == 0) {