Significantly Expand Gecko Code Size Limit - #14799
Conversation
Overwrite ArenaHi to allow gecko code list size to be significantly expanded
|
It can't be valid to adjust |
|
@phire Testing using GFTE01, arenaHi is already overwritten with the new value before its first use in |
|
This code appears to run from the vblank handler. With it's async nature, I'm not sure it's valid to assume it will always run before |
|
@phire do you know of a better way to handle it with dolphin's tools? from the games i've tested with it's always successfully manipulated the arena with no problems, however i don't know how to go about a decisive/thorough test that ensures |
This feature works by manipulating the Arena to increase the gecko code size limit. The codelist size is computed, then
ArenaHiis lowered by that amount, and the codelist is placed above the Arena. This functionally makes the gecko code size limit as large as reasonably possible for any game (significantly larger than the current limit).This feature hinges on
ArenaHialways being located at0x80000034which is true for all gamecube games from my research. I have not looked into other platforms supported on dolphin.This PR is intentionally left incomplete because there are design considerations with this feature that i left up to the dolphin development team to decide on first before moving forwards, like for example, guarding this behavior with a user configuration defaulted to disabled. Worth noting as well, netplay would likely need to have such a configuration synced between clients to avoid possible desyncs.