Jump to content
Sign in to follow this  
DavidCG

How to Set CPU AFFINITY without using FSX.CFG

Recommended Posts

I have found that using[JOBSCHEDULER]Affinitymask =14or any value in the FSX.CFG file does not work. Running FSX and looking in Task Manager, the CPU Affinity is always set to all cores.However, if you create a shortcut with the target at followsC:\Windows\System32\cmd.exe /C START "" /AFFINITY E "D:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\fsx.exeThis will correctly set the affinity to cores 1,2 & 3 leaving core 0 free for the system.This will also work for any program, just change the relevant path.Just thought that you would find this interesting!David Gunton

Share this post


Link to post
Share on other sites

I know my affinity mask works looking at the Task Manager graphs.

Share this post


Link to post
Share on other sites

So does mine. If I delete the affinity mask entry, the difference both in FPS and in the graphs is dramatic.


Regards,

PD

Share this post


Link to post
Share on other sites

A little bit lost in translation here. Are you saying the Affinity mask entry should be included in the FSX config or not? Just curious.


Rick Hobbs

Boeing777_Banner_Pilot.jpg

 

Share this post


Link to post
Share on other sites
A little bit lost in translation here. Are you saying the Affinity mask entry should be included in the FSX config or not? Just curious.
Then i'm all set. Thanks.

Rick Hobbs

Boeing777_Banner_Pilot.jpg

 

Share this post


Link to post
Share on other sites

With affinitymask=14 in my fsx.cfg file, while at dense airports, my core0 runs at around the 20% processor usage mark, while core1, 2 and 3 run at around max.Using the cmd line shortcut above, my core0 runs at 2 to 3 % max and core1, 2 and 3 run, again, at around 100% at dense airports.Interestingly, after much experimenting this evening, using affinitymask=12 (i.e only using core2 and core3), my fps increases about 2 or 3 fps at dense airports compared to affinitymask=14. Strange but seems so with my pc. These results were found after alot of experimenting and comparing. Flying was smooth. I'm using a 4 core i5-760 running at 3.8ghzIn order of fastest fps to lowest:1. Affinitymask=122. Affinitymask=143. No affinitymask4. the above cmd line shortcut.I will use Affinitymask=12 for now and see how it goes.Regards,Pete Smith

Edited by Pete_Smith

Share this post


Link to post
Share on other sites

14 means that core zero is not used with core 1, 2, and 3 being used. The idea is that OS and other software runs on core zero.Really not sure of the syntax for the command line, but it is sure not good for you.I have never tried 12.

Share this post


Link to post
Share on other sites
With affinitymask=14 in my fsx.cfg file, while at dense airports, my core0 runs at around the 20% processor usage mark, while core1, 2 and 3 run at around max.Using the cmd line shortcut above, my core0 runs at 2 to 3 % max and core1, 2 and 3 run, again, at around 100% at dense airports.Interestingly, after much experimenting this evening, using affinitymask=12 (i.e only using core2 and core3), my fps increases about 2 or 3 fps at dense airports compared to affinitymask=14. Strange but seems so with my pc. These results were found after alot of experimenting and comparing. Flying was smooth. I'm using a 4 core i5-760 running at 3.8ghzIn order of fastest fps to lowest:1. Affinitymask=122. Affinitymask=143. No affinitymask4. the above cmd line shortcut.I will use Affinitymask=12 for now and see how it goes.Regards,Pete Smith
Hi Pete,I understand what you're getting at. I've seen this mentioned at Tom Tsui's website "FSX Times" where he toyed around with the affinity mask at several different settings and the results he obtained with them. Very interesting indeed.I've decided to tinker with mine a little to see the effect.Rgds,

 i7 8770K @ 4.7Ghz + Corsair H100i GTX  Water Cooler - 32Gb Corsair Vengeance DDR4 3000Mhz - NVidia RTX 2070 XC 8Gb - ACER X34 Predator IPS GSYNC 3440x1440 Monitor - ASUS ROG STRIX Z370H - 2 x Samsung SSD Pro 512Gb  - 1 x Samsung EVO 1Tb - Win 10 Pro 64  21H2 - MSFS

"All in, all the time"

Steve Summers

Share this post


Link to post
Share on other sites

Hi,It's a setting in your FSX.cfg file that instructs FSX as to what CPU cores to run on.

Share this post


Link to post
Share on other sites

Thank you Jim. Allow me one more question. The numbers Affinitymask=12 or 14 what are their logic? The highest the value the better performance?

Share this post


Link to post
Share on other sites

Four cores = 15It's using binary code ( zeros and ones) then adding the position values from right to left.Like the affinity mask of 12 is using core 3 and 4.An affinity mask of 8 is core 4 only.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...