Skip to content

Only run the render thread for headed console apps#19986

Merged
DHowett merged 1 commit intomainfrom
dev/duhowett/do-not-render-headless-apps
Mar 18, 2026
Merged

Only run the render thread for headed console apps#19986
DHowett merged 1 commit intomainfrom
dev/duhowett/do-not-render-headless-apps

Conversation

@DHowett
Copy link
Member

@DHowett DHowett commented Mar 17, 2026

This saves us all of the cost of preparing the renderer when we're not going to use it.

Related to #19984

This saves us all of the cost of preparing the renderer when we're not
going to use it.
g.pRender->EnablePainting();
}

if (SUCCEEDED_NTSTATUS(Status) && ConsoleConnectionDeservesVisibleWindow(p))
Copy link
Member

Choose a reason for hiding this comment

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

No more SUCCEEDED_NTSTATUS(Status) check?

Copy link
Member Author

Choose a reason for hiding this comment

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

look above to see what we did if it WASN'T SUCCEEDED ;)

@DHowett DHowett merged commit 0e19570 into main Mar 18, 2026
20 checks passed
@DHowett DHowett deleted the dev/duhowett/do-not-render-headless-apps branch March 18, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants