-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop rendering when the terminal has been minimized/control has been hidden #1989
Comments
Notes: when the terminal is minimized, we should just stop rendering. Right now, we don't do any detection that the app is not visible or that the tab the terminal is on has lost focus. We're probably spinning a lot of resources in the background to render invisible things. |
I'll add that heavy background gifs also continue using resources when the window is minimized. However a simple workaround is to switch to a tab with a static background before minimizing ! |
When you work on fixing this, please also consider the case where the app is not minimized, but it has scrolling activity in inactive tabs. Here's a quick reproductible case: Open two WSL1 tabs on windows 10 open System Informer, formerly known as Process Hacker, find and double click the WindowsTerminal.exe process, then switch to Performance tab. intervals with zero cpu usage at the beginning and end of the graph are when text scrolling is happening in the inactive invisible tab |
Most of this would be plumbing.
Another method we considered was registering some event in TermControl to auto-detect when a control is added / removed from the UI tree. Turns out this is a Hard problem in WinUI, and probably not the way to go. Notes about this
Footnotes
|
Ported from MSFT:21315817
We shouldn't render the XAML island when we're minimized.
I don't remember any more of the context on this one. It was assigned to @DHowett-MSFT, so he might remember.
The text was updated successfully, but these errors were encountered: