mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.61k stars 769 forks source link

Odd graphical glitches on New 3DS with version 0.8.1 #1774

Open JL2210 opened 4 years ago

JL2210 commented 4 years ago

When starting the emulator, the Homebrew logo flashes twice and then odd graphical glitches occur. Please pardon the bad pictures; I don't have a screen capture device so I had to take them with my phone.

For reference, this is a New Nintendo 3DS XL with system version 11.13.0-45U and Luma3DS version 10.1.3. The mGBA version installed is the CIA for 0.8.1.

IMG_20200601_163652 IMG_20200601_163634 IMG_20200601_163448

endrift commented 4 years ago

Does this also happen with the latest nightly? Admittedly, the latest nightly doesn't work properly for other reasons, but I'm curious if this is "fixed".

JL2210 commented 4 years ago

I'll test it when it's a little more stable, because I'm in the middle of a game right now. As far as I can tell this doesn't actually pose any issue to gameplay and only shows up when starting.

profi200 commented 4 years ago

The startup graphics corruption is there for quite a while. It's not causing any harm.

endrift commented 4 years ago

I have a partial fix. The problem is that the VRAM I allocate for the framebuffers isn't cleared, so it's just whatever was last in them until I start uploading them. I now clear them as soon as I can, but without modifying libctru that's still slightly after I get them, so it flickers for a frame or two.