xenia-project / xenia

Xbox 360 Emulator Research Project
https://xenia.jp
Other
8.24k stars 1.14k forks source link

optimization flags #1350

Open chris-hawley opened 5 years ago

chris-hawley commented 5 years ago

Since I don't have a PR, here are the results and steps to reproduce of my first run at optimizations.

to optimize - ./xb premake open visual studio and highlight all of the projects under the src hierarchy. make the below changes to the compile flags image image

I tried several things out and AVX2 had some accuracy issues.

results - Halo 3 stutters are greatly reduced on my testing. NeiR showed a 7 fps increase Blue Dragon showed a 3 fps increase while in the town hall spot (shown below) image

Midnight club: LA showed a 4 FPS improvement.

negative side effects: the audio problem seems to be magnified by doing this optimization. This result tells me that the audio issue is that the audio processor goes too fast. Although, that could be wrong and only be a side effect of the real issue.

if AVX2 is enabled, things get interesting with the results. In Blue Dragon, the following happens to the sky. image

Ghostotakoi commented 5 years ago

great

CookiePLMonster commented 5 years ago

While optimizations are probably safe, I would not exactly trust blindly setting /fp:fast in a project like this. Unless it's set to such already?

chris-hawley commented 5 years ago

fp:fast under AVX works just fine so I was more so pointing out the problem under AVX2

Margen67 commented 5 years ago

Performance being worsened by fiber-safe optimizations is fixed by #1494.

AnotherGuyGibby commented 3 years ago

Hiya! What would I do in Virtual Studio to edit these options and increase performance? I am very new to Xenia/GitHub/Coding and I want to ensure I can run the games properly.