GameSettings: add patch to fix Eternal Darkness startup hang

The game calls GXSetDrawDone and then switches the GP fifo without first
waiting for the draw done interrupt to arrive. Before
e96960e2a6, Dolphin would not execute the
draw done command and potentially also skip other commands in the old GP
fifo. Since that commit, Dolphin executes the remaining commands on the
old GP fifo just before disabling reads for switching, but because
PixelEngineManager::RaiseEvent() enforces a minimum delay of 500 cycles
for the draw done interrupt, it arrives after the game has switched to
the new GP fifo which seems to trigger the deadlock.

This patch replaces the call to GXSetDrawDone by a call to GXDrawDone
which does the same but also waits for the interrupt.
This commit is contained in:
Tillmann Karras 2024-10-30 19:44:09 +00:00
parent adafe1f347
commit 5adc1bdecd
5 changed files with 33 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# GEDE01, GEDP01 - Eternal Darkness # GEDE01, GEDP01, GEDJ01, GEDW01 - Eternal Darkness
[Core] [Core]
# Values set here will override the main Dolphin settings. # Values set here will override the main Dolphin settings.

View File

@ -0,0 +1,8 @@
# GEDE01 - Eternal Darkness
[OnFrame]
$Fix startup hang
0x801EF444:dword:0x480371ED
[OnFrame_Enabled]
$Fix startup hang

View File

@ -0,0 +1,8 @@
# GEDJ01 - Eternal Darkness
[OnFrame]
$Fix startup hang
0x801E4588:dword:0x48036E71
[OnFrame_Enabled]
$Fix startup hang

View File

@ -0,0 +1,8 @@
# GEDP01 - Eternal Darkness
[OnFrame]
$Fix startup hang
0x801E3BC4:dword:0x48036F15
[OnFrame_Enabled]
$Fix startup hang

View File

@ -0,0 +1,8 @@
# GEDW01 - Eternal Darkness
[OnFrame]
$Fix startup hang
0x801BE42C:dword:0x48036E65
[OnFrame_Enabled]
$Fix startup hang