Anybody using this?
Evidently a bat file that shuts off background tasks and sets core affinity and performance plan and starts your sim.
Claims that it reduces stutters, especially in VR…
Anybody using this?
Evidently a bat file that shuts off background tasks and sets core affinity and performance plan and starts your sim.
Claims that it reduces stutters, especially in VR…
On a quick look at the bat file I would say the probably main advantage is getting some memory back from closing your browser with 200 tabs open, avoiding pagefile access maybe. The rest could be ok, but mainly theatre. Does no harm though.
Stuff it does:
nvidia-smi -pm 1
Put your GPU so it doesn’t relax, e.g. a powerplan
net stop SysMain /y >nul 2>&1
net stop Spooler /y >nul 2>&1
The windows pre-fetch (disabled if on a SSD anyway) and the printer spooler, in case you do a lot of printing during a long flight
powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c >nul 2>&1
Set your windows powerplan to ‘screw the polar bears, I didn’t like them anyway’ mode.
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$n=‘%GAME_EXE%’.Replace(‘.exe’,‘’); $p=Get-Process $n -ErrorAction SilentlyContinue; if($p){ " ^
"try { $p.PriorityClass=‘High’; " ^
"$cpu=Get-CimInstance Win32_Processor; $cores=$cpu.NumberOfCores; $logical=$cpu.NumberOfLogicalProcessors; " ^
"$mask=[int64]0; if($logical -gt $cores){ for($i=0; $i -lt $cores; $i++){ $mask+=[int64][math]::Pow(2,$i*2) } } " ^
"else { for($i=0; $i -lt $cores; $i++){ $mask+=[int64][math]::Pow(2,$i) } }; " ^
"$p.ProcessorAffinity=[IntPtr]$mask; Write-Host ‘Optimized Performance’ -ForegroundColor Cyan " ^
“} catch { Write-Host ‘Affinity partially applied’ -ForegroundColor Yellow } }”
Make your expensive multi-core CPU act more like a God powered version from 5 years ago when games were more single threaded centric. Kind of an ‘angels on a pinhead’ discussion if actually worth it nowadays, what with AV processes, desktop stuff etc meaning other stuff goes on and disagreeing with the windows thread scheduler seems bold.
Ah here it is, the star of the show: ![]()
taskkill /f /im chrome.exe /t >nul 2>&1 && echo [%TIME%] [PREP] Chrome killed >> “%LOGFILE%”
The real benefit, as in closing down your browser while you fly.
Oh, if you use this while playing online then don’t be shocked if Discord gets wacked as well, meaning it might be quiet out there.
Oh 2, it elevated to Admin so it might run your sim elevated, meaning stuff that talks to it, e.g. MSFS add-ons with external processes etc, might not work anymore. Not ideal.
They are pretty scary when they are hungry…
![]()
I was secretly hoping you’d have a look at this.
It’s been getting a lot of attention out there.
Thanks for that. I peeked too (not as knowledgeable as you) and it looked like stuff I’d already done, or most of it. Of course, haveing a CPU now that will run it in VR at a steady 85+ - and setting my FPS limit (DCS) to that rate, or near - helps too. It’s as smooth as it’s ever been. This with stuff going on too == important.
I’ve noticed no real difference, as I’ve set it all up, between ‘balanced’ and ‘damn the torpedoes’ performance modes. Performance or heat-wise. It’s just a lot more quiet when doing event-driven stuff (that my 2005 PC could still run just fine, thank you M$FT).
I think the thing about the power plans is that essentially all it does is stops sleep states for things, so it always runs at whatever high cycle rate it can - this basically doesn’t make anything actually faster just perhaps potentially smoother.
It’s more academic nowadays as we don’t have spinning disks that physically stop or things that can’t react pretty much instantly anyway. The High Power plan in Win11 stops sleep states for more or less everything and it’s a bit of a shame it’s even associated with performance really, as stuff like USB devices never powering fully down or SSDs never enters TRIM clean up, which is all pretty needless casualties for those seeking smoother frames. A modern CPU/GPU can alter clock speed and core priority just as part of how they work. People look for core affinity when the default behavior of Win11 scheduler for years now is to physical core ‘hop’ even for old single threaded code.
Stuff like LatencyMon is free and a fairly ok way to see if you’ve got some weird process calling home on the network and making red lines on your nice green VR ms graph.