About the simthread affinity

Moderator: keyser

About the simthread affinity

Postby JoonasTo » 08 Feb 2015, 01:31

Is it possible to make sure that the simulations thread never runs on the CPU #0 if other cores are available?

I tried disabling affinity for core 0 for ForgedAlliance and I can get around 2-5% increase in simspeed depending on what I have on in the background. I'm pretty sure that's just due to the simthread running on a less stressed core.

Now it's not going to save the slow cpus but 2-5% improvement in setons lategame amounts to a small lifetime :lol:

Anyways, just a random poor man's idea, disregard if too much work.


Oh, adding an option to faf for always launching without core 0 affinity might work for some people too. I'm not sure how many cores ForgedAlliance can use to begin with so the tradeoff point might be questionable.
User avatar
JoonasTo
Priest
 
Posts: 498
Joined: 08 Feb 2015, 01:11
Has liked: 18 times
Been liked: 81 times
FAF User Name: JoonasTo

Re: About the simthread affinity

Postby da_monstr » 08 Feb 2015, 03:00

I believe this was discussed before, the conclusion was that modern OSs (W7 and up) have core affinity done well enough for manual setting to not matter. Still, never hurts to try.
Peace through superior firepower.
[Total Biscuit, comparing FA to SupCom2] "The scale and the sublime nature of the economy was ruined with Supreme Commander 2, which I absolutely despised. Oh god, I hate that game so very much."
User avatar
da_monstr
Priest
 
Posts: 443
Joined: 19 Aug 2012, 16:37
Location: Slovenia
Has liked: 14 times
Been liked: 20 times
FAF User Name: Mainstay

Re: About the simthread affinity

Postby VoiceofReason » 10 Feb 2015, 18:52

Modern OSes spread the work, but I have experienced the same as described and highly advocate anyone with Many cores, to tell FA to use all the Cores after the first.

Core0 gets oversaturated in my belief creating this slight slowly simspeed in the long run, and creates Sluggish moments for the UI when the game gets REALLY CRAZY.

For myself, running 4cores8threads all at 4.6ghz - I tell FA to not run on Core0, and DO run on cores 1,2,3,4,5,6,7 - I Get much smoother gameplay, especially during air wars, double clicking 100s of engies, less stutter from Shift+G when it involves MANY units in the later parts of the game.

When you do this, You'll notice the remainder of your cores Usage increase drastically - show infact that Windows now does spread the load over the cores for you. I also usually increase the Priority to FA to High if I suspect a long/late game and/or playing Phantom.


I encourage everyone to experiment with these settings to get the best performance possible.
User avatar
VoiceofReason
Priest
 
Posts: 422
Joined: 26 Sep 2011, 04:13
Has liked: 175 times
Been liked: 53 times
FAF User Name: VoRCom

Re: About the simthread affinity

Postby VoiceofReason » 10 Feb 2015, 18:56

JoonasTo wrote:Is it possible to make sure that the simulations thread never runs on the CPU #0 if other cores are available?

I tried disabling affinity for core 0 for ForgedAlliance and I can get around 2-5% increase in simspeed depending on what I have on in the background. I'm pretty sure that's just due to the simthread running on a less stressed core.

Now it's not going to save the slow cpus but 2-5% improvement in setons lategame amounts to a small lifetime :lol:

Anyways, just a random poor man's idea, disregard if too much work.


Oh, adding an option to faf for always launching without core 0 affinity might work for some people too. I'm not sure how many cores ForgedAlliance can use to begin with so the tradeoff point might be questionable.




Veee:
you can create a batch file that runs FA with the right thread affinity settings
specifically pexec -a 2,3,4
that will run a program on cores 2,3,4
User avatar
VoiceofReason
Priest
 
Posts: 422
Joined: 26 Sep 2011, 04:13
Has liked: 175 times
Been liked: 53 times
FAF User Name: VoRCom

Re: About the simthread affinity

Postby JoonasTo » 10 Feb 2015, 19:28

Yes, I already tried to do this by using a shortcut and succeeded but the issue is I don't know how I could replace the FAF launch command with it.

Can't just replace the exe since it starts autoupdating then.

Will have to look more into it when I'm off work.
User avatar
JoonasTo
Priest
 
Posts: 498
Joined: 08 Feb 2015, 01:11
Has liked: 18 times
Been liked: 81 times
FAF User Name: JoonasTo


Return to FAF Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest