dborth / snes9xgx

Snes9x GX - Port of Snes9x for Wii
http://wiibrew.org/wiki/Snes9x_GX
Other
435 stars 64 forks source link

Snes9x - Forgot to modify a file for commit "Mark function-scope const arrays as static [jSTE0]" #1012

Closed saulfabregwiivc closed 2 years ago

saulfabregwiivc commented 2 years ago

Snes9x GX has this commit from @jSTE0 but it has one modification missing.

I based on this commit from @niuus' Snes9x RX (https://github.com/niuus/Snes9xRX/commit/c1cc64037fcc74f8595cc3546d42934bc2b650d4) for add an modification missing on this commit.

Avoids recreating the arrays on the stack on every entry to the function and moves them to the ro section. For dsp, this is a performance regression introduced in snes9x-1.52 when the const arrays moved to function scope.