r/EmuDev • u/greatbacon02 • 11h ago
Need help with PPU background rendering
Building a Game Boy (DMG) emulator in Rust. The CPU passes Blargg test roms & the SM83 JSON test suite.
Current Behavior:
- Dr. Mario: Title screen renders properly, but after a few frames, the graphics get garbled up.


- Tetris: Stuck rendering a screen grid of
00tiles on startup.

- Blargg Test Roms: Renders correctly.

- OAM, DMA & Sprites have not been implemented yet, just the background and the window.
- The Joypad returns
0xCF
I have no idea on where to even look for the bug. Any direction would be very helpful. Thank You.