starcitizen-lug / knowledge-base

Wiki containing installation instructions, performance tips, and solutions to common problems
134 stars 20 forks source link

[NEW SCRIPT PROPOSAL] Script to increase performance for AMD THREADTHRIPPER #6

Closed mrdev023 closed 1 year ago

mrdev023 commented 2 years ago

Moved issue from https://github.com/starcitizen-lug/lug-helper/issues/42

I write a script to increase performance with my Threadthripper 2990WX. But i don't know how to integrated it because this script need to be run before and after playing at Star citizen.

Before

before

After

after

Screenshot_20220630_195843

https://gist.github.com/mrdev023/59f9ef9b40101745a645ce875697b79d

This script can work if each core is split to multiple PU.

lstopo # Show CPU topology 

Example of display:

image

Core L#0 is split in 2 Processing Unit, so if i disable the second PU for each Core. Star citizen performance is improved.

configure_sc.sh enable # To enable disable useless core
configure_sc.sh disable # To enable all cores
the-sane commented 2 years ago

@beniwtv this might be useful info to add to our wiki under performance tuning? Lutris can use the pre/post script settings to automatically run these configurations

beniwtv commented 2 years ago

Yep, though I am unsure if this can be launched by Lutris, as it requires superuser privileges. But at least we can upload it here and link to it.

gort818 commented 2 years ago

Can't you use WINE_CPU_TOPOLOGY for this use case?

mrdev023 commented 2 years ago

I try with WINE_CPU_TOPOLOGY configuration

mrdev023 commented 2 years ago

I had try this WINE_CPU_TOPOLOGY=32:0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62 but it doesn't work

Megalomaniak commented 2 years ago

Something like this should work for first gen AM4 cpu's too? They feature multiple CCX's too so I'd think so...

gort818 commented 2 years ago

You can try it like this WINE_CPU_TOPOLOGY=16:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 or WINE_CPU_TOPOLOGY="25:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24note you will probably need a protonified wine build like glorious eggroll or tkg

mrdev023 commented 2 years ago

It work better with WINE_CPU_TOPOLOGY=16:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 average 54 fps in same position

the-sane commented 2 years ago

Doesn't look like this has been added into the wiki yet. If someone can help me out by writing up a list of instructions and which CPUs might benefit from this, I'll add it to our performance tuning section. If the environment variable can do the same thing as the script, I think we'd prefer that solution.

See https://github.com/starcitizen-lug/information-howtos/wiki/Performance-Tuning for formatting

the-sane commented 1 year ago

@mrdev023 Pull requests can now be submitted against the wiki. If you'd like to help write this up in our performance tuning section, please go ahead and create a PR. Thanks! https://github.com/starcitizen-lug/knowledge-base/tree/main/wiki

RampedIndent commented 1 year ago

I started a write up for this, it needs some edits, as stated in the commit message. I cant verify these steps since my ryzen cpu only has one die. Will continue editing it "tomorrow"

RampedIndent commented 1 year ago

Just a thought, but this might also help on Intel cpus with performance and efficiency cores.