You can use software like can be read here:
https://www.raymond.cc/blog/permanently-set-process-priority-in-windows-task-manager-with-prio/ stay out of Process lasso as it is become an recourse hog.
But you can also modify your TrackIR shortcut, btw I would not use realtime but high.
https://www.eightforums.com/threads/cpu-priority-shortcut-for-a-program-create-in-windows.40287/ I know its for Win8 but for win10 or 7 the method is the same. Be awere you have always start TrackIR manually by this custom shortcut.
I use the last method to lower STEAM priority when using VR when playing Assetto Corsa 1937 and BoX, works perfect.
Fxxk I hate that new add banner on this forum, not great for old iPad users.