jsgroth / jgenesis

Sega Genesis / Sega CD / SNES / Master System / Game Gear emulator
MIT License
44 stars 3 forks source link

Initial D Gaiden (Japan) (SGB Enhanced).gb flashing lines during gameplay #88

Open benderscruffy opened 3 months ago

jsgroth commented 3 months ago

I'm not able to test this on actual hardware at the moment, but this might be the game's programming. It relies on lots of mid-frame SCX writes to render the road and it will skip some of those writes if the timer interrupt triggers at specific points in the middle of its STAT interrupt handler. Forcibly disabling the timer interrupt eliminates a lot of the glitchy lines but breaks the music outside of gameplay.

Comparing to a few other emulators:

jsgroth commented 3 months ago

Correction, I thought it was failing to boot in bgb but it was actually just taking a long time to initialize the SGB border. The game works in bgb and behaves similarly to how it does in SameBoy/Gambatte, lots of flickering lines.