Performance: pause / resume rendering
See original GitHub issueAt the moment, the renderer will always draw incoming data (manipulate the dom), no matter if the terminal is actually visible to the user. Bigger applications like hyper or vscode, that may render multiple terminals in tabs would benefit a lot (performance and battery drain) if they could suspend the rendering while the terminal element is visually hidden. I think we should offer an API that allows the implementor to pause and resume the renderer.
term.pauseRenderer();
term.resumeRenderer();
term.rendererPaused;
Once the renderer is resumed, it has to immediately redraw to catch up the new state. Any thoughts? I would be tempted to provide a PR 😉
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to pause rendering and resume it later in Corona for 3ds ...
Go to Render Setup > Scene > General Settings and press "Save CXR..." 4. Save the Corona EXR file in selected location. 5....
Read more >How to Pause and Resume Rendering in Blender 3.0 - YouTube
How to pause or stop and resume animation rendering in Blender 3: This a tutorial on how to pause rendering and resume it...
Read more >Pause/Resume rendering? - VEGAS Community
Is there any way to pause then resume Vegas 4 while you are rendering a project? I really need to do this. I'm...
Read more >How to pause the rendering, quit from the after effects, shut ...
If you want to render in a video format, there is no way you can shut down the computer, turn it on, and...
Read more >How to Pause Rendering - TechSmith Support
How can I pause the rendering process once it has begun and continue it later?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The last state of the renderer will still be in the DOM, all this change would be in its simplest form is some boolean flag which is checked by the renderer and the renderer does nothing.
resume
would flip the switch back and trigger a full refresh.I’ll create a proof-of-concept PR with a modified demo that creates multiple terminals that get filled with data continuously and an option to enable / disable the renderer for every single terminal. That way we should be able to inspect if performance is positively impacted.