question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance: pause / resume rendering

See original GitHub issue

At 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:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
Tyriarcommented, Aug 16, 2017

My biggest implementation question is how do we store what is the last state that got rendered from the renderer and from where should we start rendering again.

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.

1reaction
mofuxcommented, Aug 16, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found