It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
avatar
016R35: There is no need to complicate your life with commands, just go to system settings (MSconfig) -> Boot -> Advanced Options -> And set the number of cores to a lower one, in my case I have a 32 core i9-13900k, I set it to 16 and the game works perfectly.

Please OP, if you read this, mark this post as the thread solution. It's the quickest and easiest, no need to complicate your life with commands or strange launch parameters.
avatar
JL: This is not an ideal solution, as you're effectively disabling several cores system wide just to play a single game, and would need to change the setting back and reboot if you want all your cores back.

avatar
DamIDhagor: Wow. I never received any Emails about replies to my thread. I just came across it after 3 years and I'm really happy that this post helped that many people!
avatar
JL: Thank you for this solution. It works great. I really wish CDPR would update/fix their game though.
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)"
Post edited August 28, 2023 by valcugen
I can get things to work if I use the task manager to set the affinity for the launcher.
Oddly if I do it from a shortcut (and the task manager shows the launcher affinity is right) the game still gets stuck. Sigh.
A mi no me funciona
avatar
JL: This is not an ideal solution, as you're effectively disabling several cores system wide just to play a single game, and would need to change the setting back and reboot if you want all your cores back.

Thank you for this solution. It works great. I really wish CDPR would update/fix their game though.
avatar
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)"
FUNCIONÓ. Mil gracias
avatar
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)"
avatar
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.