mgba-emu / mgba

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

Tom Clancy's Splinter Cell - Chaos Theory (USA) freeze #759

Open benderscruffy opened 7 years ago

benderscruffy commented 7 years ago

start a new game then if you choose night vision or thermal vision the emulator freezes up

Arisotura commented 7 years ago

the game uses the mainmem display FIFO and its associated DMA when you do so

the rendering seems to be done like this:

not quite sure about the details, the rendering process spans multiple frames (6 in the thermalcam case) with some pipelining. DISPCNT is set to render from VRAM all the time, which explains why they have to use the display FIFO.