Okay, let's fact-check and refine this statement.
Fact Check & Correction:
-
"Windows 11 aggressively throttles background applications":
- Partially True, but needs context. Windows 11 (and Windows 10 before it) does implement mechanisms to manage the resources consumed by background applications. This isn't necessarily "aggressive" throttling in all cases, but rather a system designed to improve power efficiency (especially on laptops) and maintain foreground application responsiveness.
- Mechanism: This is often achieved through features like Efficiency Mode (also known as Eco Mode) visible in Task Manager. This mode typically lowers the process base priority and uses EcoQoS (Quality of Service) levels to signal to the CPU that these tasks can run on more power-efficient cores or at lower frequencies, minimizing their impact on battery life and foreground performance.
-
"so that gamers can play their game in high priority":
- Misleading. While gamers do benefit from foreground applications having priority, this background resource management isn't solely or even primarily designed for gamers. It's a broader system feature aimed at overall system responsiveness and power saving for any foreground task (be it a game, a video editor, a web browser, etc.).
- Game Mode: Windows does have a specific Game Mode feature designed to optimize the system for gaming. Game Mode prioritizes game processes for CPU and GPU resources and tries to prevent background tasks (like Windows Update restarts or notifications) from interrupting gameplay. This is related but distinct from the general background process efficiency management.
-
"Speaking of priority, priority classes don't help with this":
- Largely True. Standard process priority classes (Idle, Below Normal, Normal, Above Normal, High, Realtime) primarily influence how the CPU scheduler allocates time slices when multiple active threads are competing for CPU time. Efficiency Mode / EcoQoS operates somewhat differently by directly influencing the power state and scheduling preference (e.g., using E-cores) before the traditional priority scheduling might fully kick in. Setting a background process to "High" priority might not prevent it from being put into Efficiency Mode if the system deems it appropriate, although it might have some influence depending on the exact circumstances and system load. The power/efficiency management is a partly separate layer.
-
"There's a way to get around this with the API 'SetProcessInformation'":
- True. The
SetProcessInformation function can be used with the ProcessPowerThrottling information class and a PROCESS_POWER_THROTTLING_STATE structure. By setting the ControlMask and StateMask appropriately within this structure, a developer can explicitly disable power throttling (PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION, PROCESS_POWER_THROTTLING_EXECUTION_SPEED) for their process.
-
"this kind of design is simply disgusting":
- Subjective Opinion. While understandable from the perspective of someone wanting a background task to run at full speed without interference, the design goal is a trade-off. Microsoft aims to provide a smooth foreground experience and maximize battery life for the majority of users, which often involves de-prioritizing background tasks. Whether this trade-off is "disgusting" depends on individual use cases and priorities. Developers needing consistent background performance do need to be aware of and potentially manage these features using APIs like
SetProcessInformation.
Corrected Statement:
Here's a more accurate way to phrase the points:
"Daily reminder: Windows 11 includes features like Efficiency Mode (EcoQoS) that manage background application resource usage to improve overall system responsiveness and power efficiency, particularly noticeable on laptops. While this benefits foreground applications, including games (which are further aided by the specific Game Mode feature), it's not solely designed for gaming.
Regarding process priority: Standard priority classes often don't prevent a background process from being placed into Efficiency Mode, as this mechanism influences resource allocation (like using E-cores or lower frequencies) somewhat independently of traditional CPU time-slice scheduling.
Developers needing guaranteed background performance can use APIs like SetProcessInformation (specifically the ProcessPowerThrottling control) to opt their processes out of this system-managed throttling. While this resource management benefits many users by ensuring a smoother foreground experience and better battery life, it can be frustrating for those needing intensive background tasks to run unimpeded without specific opt-outs."