different cpu affinity for every power profile?

Started by Spaceowl, May 09, 2025, 07:37:01 AM

Previous topic - Next topic

Spaceowl

Hello, I have a question. I bought Process Lasso and have an i7-12700k.
I want discord.exe to have affinity only on the p-cores when balanced power profile is active. This is for idle use.
I want discord.exe to have affinity only on the r-cores when bitsum-performance power profile is active. This is for gaming, so that discord will not use the p-cores.
Ho can I achieve that?

Or anther possible solution:
Is the maybe an command line to force the cpu affinity for a process?
When I have a gaming session, obs.exe is always running (also on e-cores). So when obs is staring, windows task scheduler would detect that and run the process lasso command line to set discord affinity to e-cores. And after quitting obs.exe, task scheduler would run process lasso command line again to set discord affinity to e-cores.

I hope one from this solutions is possible?

Greetings!

Jeremy Collake

#1
The solution is the Config Profile Switcher. You'll create one configuration profile when gaming, and another for when not gaming, then set it to switch on the presence of obs.exe.

There is otherwise currently no way to automate these changes based on your power plan.

 If you try it, let me know how it goes!
Software Engineer. Bitsum LLC.

Spaceowl

Well meanhwile I asked an AI, and it said, that it could be possible achieve that with task Scheduler. I know how to track if obs.exe is starting and closing with the task Scheduler and then run commands.
So the AI read the Process Lasso documentation and told me to insert this code for stating obs.exe
"C:\Program Files\Process Lasso\ProcessLasso.exe" /set_affinity discord.exe F0000
and this for ending obs.exe
"C:\Program Files\Process Lasso\ProcessLasso.exe" /set_affinity discord.exe FFFF

Well, it seems correct, but don't work. I also tried to run this codes with windows command prompt (as admin). The affinity doesn't change, it opens only the Process Lasso window. Is the command line wrong?

But I will try with the profile switcher. Just have to find out, where to set rules that they would be saved in a profile.
Right now, I made right click on discord.exe cpu affinity - always - p-cores and saved that as profile "idle".
Then , I made right click on discord.exe cpu affinity - always - e-cores and saved that as profile "gaming".
The affinity stays at e-cores. But when I switch back to profile idle, they should switch to p-cores. But remain in e-cores.  I don't understand!

Jeremy Collake

The bad news is that ChatGPT hallucinated that command line switch. The good news is that we'll try to get that added for you. I'll reply again on news.

It sounds like you're using the Config Profile Switcher correctly, so I'm not sure on the cause of that discrepency. It can be a little obtuse to use. Double-check that each profile has the affinity rule you want for Discord.exe. Changes made when in one config profile aren't automatically undone when you switch to a different config profile, but if you have rules in each profile then they should be applied... What does the log say?
Software Engineer. Bitsum LLC.