From 4c88923f463487236035bb16c6c32bdc4edafdb0 Mon Sep 17 00:00:00 2001 From: MooglyGuy Date: Sun, 3 Nov 2019 00:16:30 +0100 Subject: [PATCH] -snes_ppu: Fixed rapid vertical scrolling in rexronan and other games. [Ryan Holtz] --- src/devices/video/snes_ppu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/video/snes_ppu.cpp b/src/devices/video/snes_ppu.cpp index 943c2baf6da..2142b59681f 100644 --- a/src/devices/video/snes_ppu.cpp +++ b/src/devices/video/snes_ppu.cpp @@ -1863,6 +1863,8 @@ void snes_ppu_device::refresh_scanline( bitmap_rgb32 &bitmap, uint16_t curline ) g_profiler.start(PROFILER_VIDEO); + cache_background(); + if (m_screen_disabled) /* screen is forced blank */ for (int x = 0; x < SNES_SCR_WIDTH * 2; x++) bitmap.pix32(0, x) = rgb_t::black(); @@ -1901,8 +1903,6 @@ void snes_ppu_device::refresh_scanline( bitmap_rgb32 &bitmap, uint16_t curline ) /* Prepare OAM for this scanline */ update_objects_rto(curline); - cache_background(); - /* Draw scanline */ draw_screens(curline);