Prevent blink interval from running unless needed

Part of #944
This commit is contained in:
Daniel Imms
2026-02-03 05:07:40 -08:00
parent c102b4af50
commit 205cf6089d
7 changed files with 218 additions and 11 deletions
+1
View File
@@ -131,6 +131,7 @@ export class RenderService extends Disposable implements IRenderService {
private _handleIntersectionChange(entry: IntersectionObserverEntry): void {
this._isPaused = entry.isIntersecting === undefined ? (entry.intersectionRatio === 0) : !entry.isIntersecting;
this._renderer.value?.handleViewportVisibilityChange?.(!this._isPaused);
// Terminal was hidden on open
if (!this._isPaused && !this._charSizeService.hasValidSize) {