StarCraft

Improving starcraft2 cpu performance (for all but especially AMD)

Content of the article: "Improving starcraft2 cpu performance (for all but especially AMD)"

https://us.forums.blizzard.com/en/sc2/t/patchguide-for-cpu-speed-fps-if-you-play-competitively-click-this/17442

I've just found this thread and it helped me so I decided to share it. I had intel i5-7500 processor, changed it to amd ryzen 5 2400g and noticed boost in performance, but still I didn't have smooth 60 fps in 1:1 200 vs 200 fights with bunch of zerglings on lowest details and 4:4 performance was crap.

After doing what is in thread games runs much smoother and better.

For all

Change CPU affinity. I believe like guy on blizzard forums says sc2 uses up to 4 threads. https://superuser.com/questions/1105654/logical-vs-physical-cpu-performance
Set CPU affinity using lasso (you can do that in task manager but solutions is not permanent?) so each thread uses different core. I set it to 0,2,4,6. Also I believe moving one thread from one core to other core might be costly (so if you have 6 core cpu limit to 4 cpus because max 4 threads), but I'm not sure, I'm not cpu architect expert. I know L1/L2 cache is not shared between cores so that's one reason why recovering thread context on another core might take more time and there are also some security/memory-access between processes precautions. Context switching basically puts back register values (rax, rbp and stuff) and then restores them.

For amd

Starcraft2 uses intel math kernel library (intel mkl). Intel mkl has unfair CPU dispatchers. It checks whether cpu is intel or not and then uses one instruction set or other.

Read more:  ESL DreamHack SC2 Masters Winter week 2 match thread

More info here:

I'm not dead sure if it helped me because I only did it after affinity step, but I think I noticed boost in performance. I set env variable mkl_debug_cpu_type=5 like here
https://www.pugetsystems.com/labs/hpc/How-To-Use-MKL-with-AMD-Ryzen-and-Threadripper-CPU-s-Effectively-for-Python-Numpy-And-Other-Applications-1637/

However I read intel mkl removed that env variable in their update this year, but I think sc2 is shipped with older version(need to change binary/library files otherwise or use debugger tools that override memory of working application).

Source: reddit.com

Similar Guides


Top 7 NEW Games of January 2021

New year - new month - new games. Take a look at the first 2021 games you’ll be playing on PC, PS5, PS4, Xbox Series X, Xbox One, Switch, and more.





More about StarCraft

Post: "Improving starcraft2 cpu performance (for all but especially AMD)" specifically for the game StarCraft. Other useful information about this game:



Top 10 Best Video Games of 2020 (So Far)

In times of uncertainty, video games allow us to escape from the stress of the real world. For this list, we’ll be looking at some of the best games released in the first half of 2020.


You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *