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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IntersectionObserver to turn off renderer when hidden #1144

merged 4 commits into from Jan 5, 2018


3 participants

Tyriar commented Dec 11, 2017

Fixes #880

@mofux seems to work nicely in Chrome, what do you think? This can save like 5ms a frame for heavy operations 馃敟

@Tyriar Tyriar self-assigned this Dec 11, 2017

@Tyriar Tyriar requested a review from mofux Dec 11, 2017


This comment has been minimized.


Tyriar commented Dec 11, 2017

Here's an annotated timeline of the change within VS Code doing the following:

  1. Open a terminal
  2. Run ls -lR in large folder
  3. Create new terminal (hide busy terminal)


To give an idea of the time saved, the draws on the busy terminal before the switch are about 5ms, 5ms and 2ms every available animation frame.

@Tyriar Tyriar added this to the 3.1.0 milestone Dec 11, 2017


mofux approved these changes Dec 12, 2017

Very nice and well written PR, I'm more happy to get this merged!


This comment has been minimized.


Tyriar commented Dec 12, 2017

馃帀 will wait until v3 is done before merging it in.


parisk approved these changes Dec 16, 2017

LGTM 馃憤. Can't wait to see this in 3.1.

@Tyriar Tyriar changed the base branch from v3 to master Jan 5, 2018

Tyriar added some commits Jan 5, 2018


This comment has been minimized.


Tyriar commented Jan 5, 2018

Linux tests are passing, merging this in (mac agents are backed up)

@Tyriar Tyriar merged commit eac14a1 into xtermjs:master Jan 5, 2018

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress

@Tyriar Tyriar deleted the Tyriar:880_renderer_pause branch Jan 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment