Skip to content

Set CPU Limit

  • Action
  • Apps & windows

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

SettingStarts asWhat 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
  • Set limits: Changes the settings below that aren't set to "Leave as is".
  • Remove limits: Takes MacroWin's percent limit off, lets the app use every processor and turns Efficiency mode off, the way apps start.
Processor limit Limit to a percentage How much of the processor the app may use.
  • Limit to a percentage: The app's processes together may use at most the percent below of the whole processor.
  • Leave as is
  • No limit: Takes MacroWin's percent limit off.
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.
  • Leave as is
  • At most a number: As many as "How many" says.
  • Only these: The ones listed in "Which ones".
  • Performance cores only: The faster cores, on a processor that has both kinds.
  • Efficiency cores only: The slower, power-saving cores, on a processor that has both kinds.
  • All of them: Every logical processor, the way apps start.
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.
  • Leave as is
  • On: Windows runs the app slower to save power and, as Task Manager does, also lowers its priority to Low.
  • Off: Windows decides again, and a Low priority goes back to Normal.

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

Set CPU Limit outputs
LimitedHow many of the app's processes took every setting.
SkippedHow many of the app's processes Windows didn't let MacroWin change.
ErrorWhy 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