Set CPU Limit
Limits how much of the processor an app may use, which logical processors it may run on, and Efficiency mode, for every running process with that name; "Remove limits" puts the app back the way apps start. The percent is one limit for all of the app's processes together, as a share of the whole processor. Windows keeps it for as long as the app runs, also after MacroWin closes, and processes the app starts later share it. An app held at its limit may stutter. Windows forgets "Processors" and Efficiency mode when the app restarts, and an app started again isn't limited until the step runs again. MacroWin never limits its own engine. Continues on Not found when the app isn't running, and on Failed with the reason in Error when Windows refuses every process or a setting can't be used on this PC.
Settings
| Setting | Starts as | What it does |
|---|---|---|
Process name ${} |
empty | The app's executable, such as notepad.exe (the .exe is optional). Leave it empty for the app whose window is in front. |
| Action | Set limits |
|
| Processor limit | Limit to a percentage |
How much of the processor the app may use. |
| Percent | 20 |
The most the app may use, from 1 to 100, as a share of all logical processors together: 25 on a PC with 8 of them is about 2. Windows holds it for as long as the app runs, and an app held at its limit may stutter. |
| Processors | Leave as is |
Which logical processors the app may run on, counted as Task Manager's Set affinity lists them (CPU 0, CPU 1...); a core can have two. Windows forgets this when the app restarts. |
| How many | 4 |
How many logical processors the app may use. MacroWin takes one from each core before a second one of any core, the faster cores first, from the last core down, and CPU 0 (where Windows itself is busiest) last, so the same number always gives the same ones. More than this PC has uses all of them. |
Which ones ${} |
empty | The logical processors the app may use, numbered from 0 as Task Manager does, such as 0-3, 8. |
| Efficiency mode | Leave as is |
Windows forgets this when the app restarts. |
Settings marked ${} take variables.
Where it continues
- Out once Windows took the settings; "Skipped" says how many of the app's processes it refused.
- Not found when no process with that name is running.
- Failed when Windows refused every process or a setting can't be used on this PC; the reason is in Error.
Outputs
| Limited | How many of the app's processes took every setting. |
|---|---|
| Skipped | How many of the app's processes Windows didn't let MacroWin change. |
| Error | Why it failed; empty otherwise. |
More in Apps & windows: Set Element State, Set Element Text, Set Frame Rate Limit
Build macros with Set CPU Limit in MacroWin. Free to download, no account needed. Windows 10 and 11.
Download