Skip to content

Stop rendering when minimized - #21013

Open
Leonard Hecker (lhecker) wants to merge 1 commit into
mainfrom
dev/lhecker/minimize-power-save
Open

Leonard Hecker (lhecker) wants to merge 1 commit into
mainfrom
dev/lhecker/minimize-power-save

Conversation

@lhecker

Copy link
Copy Markdown
Member

A new inhibitor class: "Allow painting"! Yay.

Closes #9600
Related to MSFT-58203506

@microsoft-github-policy-service microsoft-github-policy-service Bot added Issue-Scenario Area-Quality Stability, Performance, Etc. Product-Terminal The new Windows Terminal. labels Dec 3, 2026
Comment thread src/host/_output.cpp
{
const auto& gci = ServiceLocator::LocateGlobals().getConsoleInformation();
// update to screen, if we're not iconic.
if (!screenInfo.IsActiveScreenBuffer() || WI_IsFlagSet(gci.Flags, CONSOLE_IS_ICONIC))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think we should keep this one btw. it does a whole fast path exit if minimized, which means we spin less of the render infrastructure (it doesn't have to do any checks or wake anything. i know it's minimal, but the WPG gates are ... harsh sometimes... and we have an existing early-out here)

@microsoft-github-policy-service microsoft-github-policy-service Bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Quality Stability, Performance, Etc. Issue-Scenario Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-Terminal The new Windows Terminal.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Epic: Battery Saver Mode

2 participants