I wanted to work faster with AI, so I am building a small app for myself: it starts on boot, sits in the tray, and exposes an MCP server so Claude Code can phone me when it needs a decision. The voice is a local text-to-speech model, and a call only feels real if it speaks faster than it plays.
The number that matters is the real-time factor (RTF): seconds to generate divided by seconds of audio. Under 0.7 is comfortable. Over 1 means dead air.
On a quiet machine the model ran at an RTF of about 0.3. During a real call, with my editor open and a build running, it came back at 1.4. Same binary, same text. The first word of a call took five to seven seconds.
Nothing looked wrong
I did the obvious checks. The CPU was at 4.4 GHz, total load about 20%, and 3 GB of RAM was free. Performance counters showed a healthy machine, because they average over all 28 logical processors, and a process stuck on a few throttled cores disappears in that average.
Throttle one: efficiency mode
Windows 11 can run a background process in efficiency mode: lower clock, scheduled onto efficiency cores. A tray app that sits in the background while you work in the foreground is exactly what it picks. The process can opt out of it itself:
// class 4 = ProcessPowerThrottling; state 0 = throttling off for the masked bits
let s = State { version: 1, control_mask: 1, state_mask: 0 }; // 1 = EXECUTION_SPEED
SetProcessInformation(GetCurrentProcess(), 4, &s, 12);
To prove it I ran the same binary back to back with the opt-out switched on and off. Opted out: RTF 0.29 and 0.29. Throttled: 1.25 and 1.44. That is a 4-5x difference from one flag. You can see the state without any code: in Task Manager, Details tab, add the "Power throttling" column.
Aggregate CPU counters can hide a throttled process. Look at the process, not the machine.
Throttle two, which the first fix did not cover
With efficiency mode off, a busy machine was still at RTF 0.9 to 1.5. This one hid behind the first. The process ran at Normal priority, and when everything in the foreground wants the cores, a Normal process gets what is left. Same binary, one more call:
SetPriorityClass(GetCurrentProcess(), 0x8000); // ABOVE_NORMAL_PRIORITY_CLASS
- Normal priority: RTF 0.92
- Above normal: RTF 0.20 (8 threads)
- High: RTF 0.19 to 0.29
Above normal was enough, and I stopped there. High buys nothing here and starts to bother the rest of the machine. First audio of a call went from five to seven seconds to about 0.2.
What to take from it
- Benchmark in the state your users run in. My quiet-machine number was true and useless.
- Two throttles can stack. Fixing one and seeing a smaller slowdown is not the same as fixing the problem.
- A/B the exact same binary back to back, with an environment switch for the fix. It turned a theory into a number.
I have not run the macOS and Linux equivalents yet (App Nap on macOS, timer slack on Linux). They compile, and I will not claim more than that until I have run them.