How to do auto affinity?
Guys, i have single core game, how to AUTOMATICLY set the affinity of the background app(system) so it use 3 core, then the game can use the spare core (can do manually) so in theory the game will get less lag, any idea?
i know i can set affinity one by one, but is there's method to do it automatically?
Last edited by BlueLightning; Feb 24, 2017 @ 5:23pm
< >
Showing 1-10 of 10 comments
If its single core it will only use 1 core anyways.

But yeah google if you want auto set affinity I think there is a program for it if not you have to manually do it in taskmanager.
just.kamk /idle Feb 24, 2017 @ 5:12pm 
Starting parameters of the executeable. Keep in mind though, it does not mean that the core is exclusive for just your game.
BlueLightning Feb 24, 2017 @ 5:19pm 
Originally posted by Teh Anarchist!!!:
If its single core it will only use 1 core anyways.

But yeah google if you want auto set affinity I think there is a program for it if not you have to manually do it in taskmanager.
people says this script, however, this doesnt turn services to 3 core, which is in my pc, is many. this only works for apps, and only help sightly, until i had to manually affinity set again.
is there's a better idea?

POWERSHELL
to make app only run on core 0:
$instances = Get-Process
foreach ($i in $instances) { $i.ProcessorAffinity=1 }

core0-5 (This what i do, but not all app affected)
$instances = Get-Process
foreach ($i in $instances) { $i.ProcessorAffinity=63 }

core0-6
$instances = Get-Process
foreach ($i in $instances) { $i.ProcessorAffinity=127 }

to make app use all core:
$instances = Get-Process
foreach ($i in $instances) { $i.ProcessorAffinity=255 }

Originally posted by kamk:
Starting parameters of the executeable. Keep in mind though, it does not mean that the core is exclusive for just your game.
i know, i can set app afinity by taskmanager for the game, what i ask, how to automate other app so it could only use the remaining 3 core...

ok maybe you dont get it. i mean i could set apps to use core 0-5, sparing core 6 and 7 (1 core 2 thread i7) for the game and set affinity of the game to 6&7. but setting apps to core 0-5 manually is pain...
Last edited by BlueLightning; Feb 24, 2017 @ 5:21pm
Bad 💀 Motha Feb 24, 2017 @ 5:21pm 
You can also make a BAT file that launches the game EXE and then applies those changes you want with regards to the above.

Just ensure that if the game requires a game client, launch that first before the BAT file
BlueLightning Feb 24, 2017 @ 5:22pm 
Originally posted by Bad-Motha:
You can also make a BAT file that launches the game EXE and then applies those changes you want with regards to the above.

Just ensure that if the game requires a game client, launch that first before the BAT file
actually, i need to say to OTHER app so they could only use 3 core (0-5). setting affinity to game is easy, but to apps one by one is pain, i ask, how to set affinity of apps automatically
just.kamk /idle Feb 24, 2017 @ 5:36pm 
I did get you, and i didn't mention the task manager either.

What you are trying to do is just not feasible in modern Windows, nor intended. It will also not solve lag issues, keep that in mind.
BlueLightning Feb 24, 2017 @ 5:38pm 
Originally posted by kamk:
I did get you, and i didn't mention the task manager either.

What you are trying to do is just not feasible in modern Windows, nor intended. It will also not solve lag issues, keep that in mind.
as i know, if a game use only one core, then it boost the speed of the game, but MOST GAMES nowaday are multicore. Just because this game is single core, doesn't mean its not important.
just.kamk /idle Feb 24, 2017 @ 5:42pm 
That is not correct. Certain CPUs will clock higher though in such load scenarios - still a very minor difference.

Anyways, just tried to help, so you arent running circles around the wrong solution.
Originally posted by kamk:
That is not correct. Certain CPUs will clock higher though in such load scenarios - still a very minor difference.

Anyways, just tried to help, so you arent running circles around the wrong solution.
This is true, turbo kicks in for low threaded programs and all the power goes to ramping up clock speed while the idle cores dont use power
BlueLightning Feb 24, 2017 @ 6:09pm 
Originally posted by Teh Anarchist!!!:
Originally posted by kamk:
That is not correct. Certain CPUs will clock higher though in such load scenarios - still a very minor difference.

Anyways, just tried to help, so you arent running circles around the wrong solution.
This is true, turbo kicks in for low threaded programs and all the power goes to ramping up clock speed while the idle cores dont use power

hmm, so leave it as is?
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: Feb 24, 2017 @ 4:40pm
Posts: 10