Peanut-GB icon indicating copy to clipboard operation
Peanut-GB copied to clipboard

Prince of Persia - some flickering garbage rendered in the upper few lines of the screen

Open ESPboy-edu opened this issue 2 years ago • 5 comments

Prince of Persia - some flickering garbage rendered in the upper few lines of the screen used last release - peanut_gb.h gb: fix BG over OBJ with colour 0

ESPboy-edu avatar Dec 20 '22 19:12 ESPboy-edu

Confirmed. Do you know if this flickering occured in a previous version or did a recent change cause this?

deltabeard avatar Dec 20 '22 19:12 deltabeard

I think the issue is that the VRAM address mode is not being switched back to 0x8800 mode in time after switching to 0x8000 mode for the text on the bottom of the screen. This seems to only occur on screens where there are animations (so the flicker stops when the game is paused).

Maybe the VRAM address mode change is initiated after the LCD begins drawing the line? This will require some investigation.

deltabeard avatar Dec 20 '22 22:12 deltabeard

Please try the latest commit (bbf094a2c75178e5b2e3962d3d0c1d783e8848c0).

deltabeard avatar Apr 05 '23 14:04 deltabeard

Using last 88aacda I see one blinking line at the bottom between main game screen and bottom status line (blinking somehow connected to the torches on the walls)

ESPboy-edu avatar Apr 06 '23 19:04 ESPboy-edu

This issue still persists on the ppu-fix branch with commit fcb42682129243e34e6446eadb5e654778b35933. The flickering is still on the bottom of the screen. No doubt because the timing of the PPU is still poor. PRINCE_OF_PERSIA

deltabeard avatar Apr 08 '23 15:04 deltabeard