I noticed a few here using third party apps to set priority and affinity so I thought I would identify another method that can achieve the same without using third party apps.
1 Make a copy of your shortcut for TrackIR. Find the shortcut icon for the program you want to set priority and affinity for, right-click, and select Properties. Navigate to the Shortcut tab.
2 In the target field, you will need to append a string before the current target path. Replace the text "Program Name" with the name of your program:
C:\Windows\System32\cmd.exe /C START "Program Name" /high /affinity 4
In my case, I am using TrackIR5. The line I am appending would read as follows:
C:\Windows\System32\cmd.exe /C START "TrackIR5" /high /affinity 4
I have an I7-4770 processor which has 4 CPU's (quad core). so:
Where you see affinity 4 is the core to run the program on which i my case is CPU 2. The cores actually do start on their numbered value but the numbers are in hex. See the following for a listing of the core values:
CPU 0 (Core 1) is 1
CPU 1 (Core 2) is 2
CPU 2 (Core 3) is 4
CPU 3 (Core 4) is 8
and if you have these:
CPU 4 (Core 5) is 10
CPU 5 (Core 6) is 20
We can also set the priority to low, normal, high where we have selected high in our example:
3 Once you have this string constructed, paste it to the beginning of the target path right before the path to the .exe. My entire target string looks like this:
C:\Windows\System32\cmd.exe /C START "Program Name" /high /affinity 4 "C:\Program Files (x86)\Google\Google SketchUp 8\SketchUp.exe"
4 Once you have put in your string, click Apply on the Properties window. If asked for Admin permission, simply click Continue, and then hit OK.
Now lauch TrackIR from your new shortcut.
Do a CTRL+ALT+Del keystroke to launch "Task Manager".
Go to the "Processes" tab and look down the list for your TrackIR program name.
Once you find it, right mouse click on it and look for the "set Priority" and the "Set Affinity" .
place your mouse pointer of the "Set Priority" and note if it reflects the setting you placed in your TrackIR shortcut.
Right click your mouse on the "Set Affinity" selection and note if affinity is set you your desire choice.
If all of the above is done correctly, TrackIR will always start with the Priority and Affinity you chose, automatically from now on.
Hope that helps.