FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login
    The current pre-release of the client ("pioneer" in the version) is only compatible to itself. So you can only play with other testers. Please be aware!

    Provide affinity command line info to game executable

    Scheduled Pinned Locked Moved Game Issues and Gameplay questions
    4 Posts 2 Posters 71 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      Brogath
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Brutus5000B Offline
        Brutus5000 FAF Server Admin
        last edited by

        The settings you described should make it possible. What did you enter there and what was there error message you got?

        He said, "I've been to the year 3000
        Not much has changed, but they live underwater
        And your great-great-great-granddaughter
        Is playin' FAF, playin' FAF"

        1 Reply Last reply Reply Quote 0
        • B Offline
          Brogath
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • Brutus5000B Offline
            Brutus5000 FAF Server Admin
            last edited by Brutus5000

            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

            He said, "I've been to the year 3000
            Not much has changed, but they live underwater
            And your great-great-great-granddaughter
            Is playin' FAF, playin' FAF"

            1 Reply Last reply Reply Quote 0
            • First post
              Last post