Provide affinity command line info to game executable
-
Hello,
When playing mission maps (alone or with people) i get a delay when any form of dialog comes up like another thread on this forum discusses. (https://forum.faforever.com/topic/8671/coop-missions-intermittent-lag)
For me it is fixed if i set the supreme commander's process affinity (CPU core selection) to only the first 4 cores.
I can start a command using [>start "" /affinity F "D:\Steam\steamapps\common\Supreme Commander Forged Alliance\bin\SupremeCommander.exe"] as the command to run with this effect active, but that only runs the original game.I want the [/affinity F] command to be added to when FaF starts the game, but this does not seem to work when i add it at the settings->forged Alliance Forever-> Command line format for Executable.
Is there another way i should be adding this information to apply it to the executable? Or can i combine it with other controls in that same settings to run the above command as an .bat file?
Thanks in advance,
Brogath -
The settings you described should make it possible. What did you enter there and what was there error message you got?
-
Hello Brutus,
when using "/affinity F" (including the quotes) I get a message about a file that cannot be found.
Client Version: 2025.2.1
java.io.IOException: Cannot run program "/affinity F" (in directory "C:\ProgramData\FAForever\bin"): CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1170)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1089)
at com.faforever.client.fa.ForgedAllianceLaunchService.launch(ForgedAllianceLaunchService.java:161)
at com.faforever.client.fa.ForgedAllianceLaunchService.launchOnlineGame(ForgedAllianceLaunchService.java:85)So i guess its trying but my format is wrong.
-
The default values is %s which will be replaced with the whole ForgedAlliance.exe path and arg.
So if you want to wrap it into another app you need to go something like
start /affinity F %s