by Bart » Sun Sep 13, 2020 8:34 pm
Interestingly, I just tried measuring the performance impact of different optimization flags and found none. Using different permutations of -flto, -march=skylake, -O2, -O3, and -Ofast had no effect. I suspect the optimizer just can't do much given how the code is structured. The PowerPC emulator relies on indirect calls to tables of function pointers, which works against the compiler's optimizer. I do not think I've hit any sort of GPU bottleneck because I get the same results at 496x384 as at 1280x1024.
L.A. Machineguns runs at 160-175FPS during game play for me when the frame rate is uncapped.