valcugen: Here is a permanent solution, i am using a 13900k, write in your desktop shortcut in target: C:\Windows\System32\cmd.exe /c start "launcher" /affinity 1 OR 0000FFFF (for 13900k users aka 15 cores) "Z:\Games\The Witcher 2 Enhanced Edition\Launcher.exe"
Basically cmd.exe /c start "program name(doesnt matter, you can name it like your exe's name)" /affinity 1 "program path(example like mine above)"
StarWars94: FUNCIONÓ. Mil gracias
This is what I just came up with after a bit of digging and experimenting. This game does not like more than CPU 8 cores available. Windows 11 25H2 on a Wintel hot mess needs the processor affinity powershell command done in an elevated "admin" session or it fails to set affinity, and the game still hangs. Also, the command syntax in a batch file saved in the game folder, but linked via a desktop shortcut was picky that I specify the full path of the executable. So for my GOG version
*steam version adjust your file path accordingly* create a batch file containing:
cmd.exe /c start "" "C:\Program Files (x86)\GOG Galaxy\Games\The Witcher 2\Launcher.exe"
TIMEOUT /T 3
powershell -Command (Get-Process "Launcher").ProcessorAffinity = 255
255 tells windows to use the first 8 cores, which the game likes. Note the double quote marks before the full path on the first line are necessary. /c tells the window to close itself when done.
Put the batch file in the game folder. Then create a shortcut to it on the desktop, right click on that shortcut then right click 'properties: advanced: run as administrator'.
I have to use the launcher: Running 'Witcher2.exe' from the bin folder, then trying to set affinity after it has either hung or failed to start does not work. I have to run the launcher with the above batch file, the start the game from it.
Alternatively you can boot into your bios and disable E-cores. This also worked, but I prefer to use affinity.