Finding FSX.CFG and setting an affinity mask
Posted: 31 Jul 2014, 07:06
I'm writing this to try and help Mike to fix or reduce the stuttering he's getting in FSX. I wish I could guarantee that this will fix the problem, but that's not always the case. Anyway ...
One of the frustrating things about FSX, and indeed P3D, is that it creates a profusion of configuration files (FSX.CFG), making it (very) difficult to find the active one. Generally, the active one will be the last one that was updated.
First we need to check whether the existing FSX.CFG has an affinity mask entry (although there isn't one by default), which means we need to check where the latest version is located on the disc. Make sure that FSX is NOT running before you begin.
Click on the "Start" button, then select "All Programs" and click on "Accessories". Right click on the line that says "Command Prompt" and select "Run as administrator". A new window will open into which commands can be typed much like the old days of DOS.
Since Mike's copy of FSX is installed on the C: drive, we only need to look for files on that drive. In this new window, type the following command without the quotation marks "cd \" and press the return key. The flashing cursor should now appear on a line that starts with "C:\" instead of "C:\Windows\system32".
Now type the following command without the quotation marks "dir /s fsx.cfg" and press the return key. It should give you a list of several files, the folders in which they exist and their timestamps. Make a note of the folder (that is, the full path of the folder starting with the drive letter) which contains the file with the latest time and date. (An example would be "C:\data\storage\favourites\- flight simulation\forums").
This folder will probably be "C:\Users\(Mike's user name)\AppData\Roaming\Microsoft\FSX" but we needed to check this. Using Windows Explorer, navigate to the folder noted above from the "dir" list and check that FSX.CFG can be seen there. Right click on the file name and select "Properties", and it should show the same timestamp as the dir command did. Cancel / close the "Properties" window.
Right click on the file name again and select "Edit". The file should open in Notepad showing all its parameters in plain text. Click on the "Edit" menu and select "Find...", then type the word "affinity" (without the quotation marks) in the "Find what:" field and click on "Find Next". Notepad should respond with a "not found" window, which should be cancelled. Browse down to the end of the file and type a new (empty) line and two new lines as follows -
[JOBSCHEDULER]
AffinityMask=14
It would be best to keep the same case of text as I've used here, so perhaps using "copy and paste" would help instead of typing the lines. Close Notepad and click on "Yes" when it asks if you want to save the changes.
That's it. When FSX next runs, it should make optimal use of a four (real) core processor. The only other thing to check is whether hyper-threading is on or off, but I can't guide you through that since it's a BIOS setting - the best I could do is give general pointers. If you look for help on whether to use hyper-threading with FSX on the internet, you'll find opinion split between those for and those against. Personally, I'd vote for OFF but the choice is yours.
Note that if you also run things like TrackIR or ASN with FSX, we'll need to look at using a different value for the mask, but that's a whole other subject so better in another post. Let's see what the results are like first after following the above.
*** Please also note that most of the above won't harm your installation, but I would still recommend two things
1 - if you don't get the same responses as I've noted above, then stop and ask instead of carrying on to the next step.
2 - if you get any boxes / windows popping up, then always click on "cancel" instead of "OK" unless you're ABSOLUTELY sure that you want it to do what it's asking you for confirmation about. I've known too many users who get click happy and have damaged their systems as a result - please take care - it's your system not mine.
***
One of the frustrating things about FSX, and indeed P3D, is that it creates a profusion of configuration files (FSX.CFG), making it (very) difficult to find the active one. Generally, the active one will be the last one that was updated.
First we need to check whether the existing FSX.CFG has an affinity mask entry (although there isn't one by default), which means we need to check where the latest version is located on the disc. Make sure that FSX is NOT running before you begin.
Click on the "Start" button, then select "All Programs" and click on "Accessories". Right click on the line that says "Command Prompt" and select "Run as administrator". A new window will open into which commands can be typed much like the old days of DOS.
Since Mike's copy of FSX is installed on the C: drive, we only need to look for files on that drive. In this new window, type the following command without the quotation marks "cd \" and press the return key. The flashing cursor should now appear on a line that starts with "C:\" instead of "C:\Windows\system32".
Now type the following command without the quotation marks "dir /s fsx.cfg" and press the return key. It should give you a list of several files, the folders in which they exist and their timestamps. Make a note of the folder (that is, the full path of the folder starting with the drive letter) which contains the file with the latest time and date. (An example would be "C:\data\storage\favourites\- flight simulation\forums").
This folder will probably be "C:\Users\(Mike's user name)\AppData\Roaming\Microsoft\FSX" but we needed to check this. Using Windows Explorer, navigate to the folder noted above from the "dir" list and check that FSX.CFG can be seen there. Right click on the file name and select "Properties", and it should show the same timestamp as the dir command did. Cancel / close the "Properties" window.
Right click on the file name again and select "Edit". The file should open in Notepad showing all its parameters in plain text. Click on the "Edit" menu and select "Find...", then type the word "affinity" (without the quotation marks) in the "Find what:" field and click on "Find Next". Notepad should respond with a "not found" window, which should be cancelled. Browse down to the end of the file and type a new (empty) line and two new lines as follows -
[JOBSCHEDULER]
AffinityMask=14
It would be best to keep the same case of text as I've used here, so perhaps using "copy and paste" would help instead of typing the lines. Close Notepad and click on "Yes" when it asks if you want to save the changes.
That's it. When FSX next runs, it should make optimal use of a four (real) core processor. The only other thing to check is whether hyper-threading is on or off, but I can't guide you through that since it's a BIOS setting - the best I could do is give general pointers. If you look for help on whether to use hyper-threading with FSX on the internet, you'll find opinion split between those for and those against. Personally, I'd vote for OFF but the choice is yours.
Note that if you also run things like TrackIR or ASN with FSX, we'll need to look at using a different value for the mask, but that's a whole other subject so better in another post. Let's see what the results are like first after following the above.
*** Please also note that most of the above won't harm your installation, but I would still recommend two things
1 - if you don't get the same responses as I've noted above, then stop and ask instead of carrying on to the next step.
2 - if you get any boxes / windows popping up, then always click on "cancel" instead of "OK" unless you're ABSOLUTELY sure that you want it to do what it's asking you for confirmation about. I've known too many users who get click happy and have damaged their systems as a result - please take care - it's your system not mine.
***