Jump to content

Recommended Posts

Posted

I've created the following batch file to automatically open all the applications that I use when flying Blackshark, set their core affinity and process priority, etc.etc.: (See REM for notes)

REM launch profile to increase water flow and fan rpm.  No timeout after launch, wait for click OK
c:\Users\shawn\AppData\Local\NVIDIA~1\nTune\Profiles\cool.nsu 

REM launch gamebooster to auto close apps and services.  Timeout 5 to close apps.serv
start /affinity 1 /Dc:\progra~2\iobit\gamebo~1\ GameBooster.exe
timeout 5


REM launch manuals with /min(minimize on open) /low(processor priority) /affinity 1(use only core 0)
start /MIN /LOW /affinity 1 AcroRd32.exe "C:\Program Files (x86)\Eagle Dynamics\Ka-50\Doc\DCS-BS_Flight_Manual_eng.pdf" "C:\Program Files (x86)\Eagle Dynamics\Ka-50\Doc\DCS-BS_Key_Commands_Ka-50_real_eng.pdf"
timeout 2 

start /MIN /LOW /affinity 1 excel.exe "D:\Users\shawn\Documents\Blackshark\BlackSharkVACcommands.xlsx"
timeout 2


REM launch Voice Activated Commands with /belownormal(processor priority) /affinity 1(use only core 0)
start /belownormal /affinity 1 /Dc:\progra~2\vacsys~1\ c:\progra~2\vacsys~1\vacsys~1.exe blackshark,true
timeout 2

REM launch TrackIR Software with /belownormal(processor priority) /affinity 1(use only core 0)
start /belownormal /affinity 1 /Dc:\progra~2\natura~1\trackir5\ c:\progra~2\natura~1\trackir5\trackir5.exe 
timeout 4

REM launch Blackshark Commands with /realtime(processor priority) /affinity 10(use core 0,1,2,3(hex))
start /REALTIME /affinity 10 /Dc:\progra~2\eagled~1\ka-50\ C:\progra~2\eagled~1\ka-50\bin\stable\launcher.exe "--console"

 

This works out great for me and is a real time saver. I find that setting the affinity and priority of the other apps increases the performance of Blackshark.

After going through several posts I found a few interesting things:

  • There's no real performance increase from using 3 or 4 cores over 2.
  • Parameters against launcher.exe won't effect the sim, which executes on dcs.exe.
  • The autoexec.cfg allows you to set your core affinity. Mine is now set to 'affinity_mask = 14' to utilize cores 1,2,3 (not 0 ).

Blackshark is running on three cores just fine, but as suggested by EtherealN, there's no visible performance increase from that change alone. I would however, like to automatically set the process priority of dcs.exe to /realtime without having to alt+tab out of Blackshark to do it in the taskman. Is there documentation out there as to what parameters autoexec.cfg can take? Is this the only way to pass params to dcs.exe?

 

By the way.. the /affinity X switch for the start command in dos/batch is in hex form. If you want to use it here's the translation:

1 uses CPU0

2 uses CPU1

3 uses CPU0 and CPU1

4 uses CPU2

5 uses CPU0 and CPU2

6 uses CPU1 and CPU2

7 uses CPU0, CPU1, and CPU2

8 uses CPU3

9 uses CPU0 and CPU3

10 uses CPU0, CPU1, CPU2, CPU3

It's a good thing that this is Early Access and we've all volunteered to help test and enhance this work in progress... despite the frustrations inherent in the task with even the simplest of software... otherwise people might not understand that this incredibly complex unfinished module is unfinished. /light-hearted sarcasm

Posted (edited)

something else which helps: is setting the [user] root folder for full permissions, at least on Vista/ Windows7

Leaving PRIORITY at its default setting (Normal?) could be considered the better thing to do

Edited by Wolf Rider

City Hall is easier to fight, than a boys' club - an observation :P

"Resort is had to ridicule only when reason is against us." - Jefferson

"Give a group of potheads a bunch of weed and nothing to smoke out of, and they'll quickly turn into engineers... its simply amazing."

EVGA X99 FTW, EVGA GTX980Ti FTW, i7 5930K, 16Gb Corsair Dominator 2666Hz, Windows 7 Ultimate 64Bit, Intel 520 SSD x 2, Samsung PX2370 monitor and all the other toys

-

"I am a leaf on the wind, watch how I soar"

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...