Установить привязку процессора по умолчанию для всех приложений

4585
Novicode

Я пытаюсь улучшить производительность процессора в игре, для этого я хочу дать ему 2-4 ядра процессора, которые работают ТОЛЬКО в этом приложении, и без служб, связанных с Windows. Есть ли там, где я могу установить сходство по умолчанию для ВСЕХ приложений, служб, процессов и т. Д. на компьютере, так что ядро ​​фактически не используется вообще?

4

3 ответа на вопрос

2
Keltari

This can be partially accomplished with a lot of manual labor. You can set processor affinity through the task manager or from the command line. See this article on how to do it. Unfortunately, this method does not work on services.

However, I do not believe this is going to help you much. While in a game, the OS isnt doing much CPU wise. Of course, this is assuming your arent doing some other task at the same time, but you wouldnt be, since you are complaining about performance. Are all your cores maxing out at 100% when playing the game? I would doubt it. Your performance loss is most likely not CPU bound, but something else, like graphics and/or disk. You need to run a performance moniter (like Windows' perfmon) to really see what is slowing you down.

2
deemon

in powershell:

$instances = Get-Process foreach ($i in $instances) { $i.ProcessorAffinity=1 } 

will make most processes run on first core (core 0 in task manager). Yes it will throw quite many "Access denied" errors for processes it can't change affinity for. just ignore it... for the rest it works.

and then manually or with command set your game to the desired cores, like:

(Get-Process -name doom).ProcessorAffinity = 14 

to set your 'doom' game to run on remaining 3 cores on 4 core CPU.

1
wottis

A few other methods to force Windows to run applications on only one core is answered here. That could free up your other three cores for your game. And how to set the affinity for this one manually via taskmgr or cmdline answered Keltari with other useful hints where performance bottlenecks could be.

Похожие вопросы