Closed saulfabregwiivc closed 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.
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.