Fixed timing of scx lo fetch

This commit is contained in:
2025-05-23 06:34:06 -06:00
parent 2a5f083929
commit 8694ee5ce5

View File

@ -94,7 +94,6 @@ void ppu_mode_oam() {
}
if(ppu_get_context()->line_ticks == 1) {
ppu_get_context()->pfc.lo_scroll_x = lcd_get_context()->scroll_x & 0b111;
//read oam on the first tick only...
ppu_get_context()->line_sprites = 0;
ppu_get_context()->line_sprite_count = 0;
@ -105,6 +104,9 @@ void ppu_mode_oam() {
void ppu_mode_xfer() {
pipeline_process();
if(ppu_get_context()->line_ticks == 81) {
ppu_get_context()->pfc.lo_scroll_x = lcd_get_context()->scroll_x & 0b111;
}
if(ppu_get_context()->pfc.pushed_x >= XRES) {
pipeline_fifo_reset();