xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

Webgl cache warming up can cause GC/slow app start up

Open Tyriar opened this issue 3 years ago • 2 comments

image

Tyriar avatar Sep 06 '22 15:09 Tyriar

Would it be possible to move some of the work to idle times with requestIdleCallback()?

jerch avatar Sep 06 '22 15:09 jerch

@jerch great idea 👍! This is just warming up to avoid latency when rendering likely glyphs in the future so it can be deferred until after the initial render which would then only draw the minimal amount of glyphs in the viewport.

Tyriar avatar Sep 06 '22 18:09 Tyriar

This is pretty much fixed in https://github.com/xtermjs/xterm.js/pull/4131

Tyriar avatar Oct 02 '22 00:10 Tyriar