set priority

Post Reply
snomhf
Posts: 30
Joined: Wed May 31, 2006 5:00 am
Location: Raleigh, NC

set priority

Post by snomhf »

I made a wonderful discovery tonight! I have experienced little jitters and pauses since the day I bought this TIR4. I read somewhere on this forum to try and up the priority of the TrackIR process to "AboveNormal." It works beautifully!

However, I have been trying to make the change permanent. Is there a command line switch to the TrackIR.exe call or some way to do this? I have been trying to write a bat file that will get called instead of the actual exe but can't get it to work. Here is what I'm trying to do inside my .bat:

CMD /c START/AboveNormal "C:\Program Files\NaturalPoint\TrackIR4\TrackIR.exe"

All that happens is a command window pops up to that path but the TrackIR.exe program does not run.

I would love to make this work as running with a slightly higher priority is working just great!

Thank you
-mark
snomhf
Posts: 30
Joined: Wed May 31, 2006 5:00 am
Location: Raleigh, NC

Re: set priority

Post by snomhf »

I guess I'm talking to myself here but I decided to try solving this using VB Script. My plan is to put this script in my "Startup" directory so it will start at system boot time. What I don't know is whether the script will get read BEFORE or AFTER TrackIR starts up!? If it runs BEFORE (and therefore does NOTHING), I suppose I could change my desktop icon for Aces High to a bat file that runs this script then AH. It sure would be easier if TrackIR had a command line option for setting the priority. Apparently, since there has been no response to this posting there is no such thing. Sigh.

Here is the script if anyone cares. I place it in setTIRpriority.vbs in my Startup directory.
  • 'setTIRpriority.vbs -- Sets the priority of TrackIR.exe to AboveNormal
    Const progName = "TrackIR.exe"
    Const AboveNormal = 32768

    strComputer = "."
    set objWMIService = getObject("winmgmts:\\" & strComputer & "\root\cimv2")

    set colProcesses = objWMIService.ExecQuery _
    ("Select * From Win32_Process Where Name = '" & progName & "'")

    For Each objProcess in colProcesses
    objProcess.SetPriority(AboveNormal)
    Next
VincentG
Posts: 7728
Joined: Mon Jul 17, 2006 5:00 am
Location: Corvallis, Oregon

Re: set priority

Post by VincentG »

I'm not sure of a way to do it permanently, outside of setting it up differently within the application software code.
snomhf
Posts: 30
Joined: Wed May 31, 2006 5:00 am
Location: Raleigh, NC

Re: set priority

Post by snomhf »

Thank you Vincent. Nothing that FSAutostart can't handle.

BTW, setting the priority to AboveNormal not only fixed the stuttering and jittering, it also solved the "lap snap" problem too! I've even moved my TIR back to where it is supposed to be on top of my monitor (I had it 4 feet away before).

Maybe you guys could add the option of changing the priority of the TrackIR.exe process in a later version.

Thanks again!
-mark
VincentG
Posts: 7728
Joined: Mon Jul 17, 2006 5:00 am
Location: Corvallis, Oregon

Re: set priority

Post by VincentG »

I'll run it by the development team.......
Post Reply