Repository navigation
Skip GPU work for caret-only host frames - #120
Merged
Merged
Conversation
wieslawsoltes
force-pushed
the
fix/idle-webgpu-rendering-opportunity
branch
2 times, most recently
from
September 16, 2026 10:04
b324083 to
724e4d0
Compare
wieslawsoltes
changed the base branch from
review/code-oss-caret-gpu-base
to
main
September 16, 2026 10:20
wieslawsoltes
force-pushed
the
fix/idle-webgpu-rendering-opportunity
branch
from
September 16, 2026 21:40
724e4d0 to
f004609
Compare
wieslawsoltes
marked this pull request as ready for review
September 16, 2026 21:40
This was referenced Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A focused native text control keeps caret demand active. With WebGPU installed, every admitted caret frame was treated as GPU work even when the document had no JavaScript RAF, GPU canvas, or current texture. That made the worker publish unchanged scenes and could sustain a display-refresh-rate redraw loop in an otherwise idle Code OSS window.
Change
Focused validation
webscene_graphics_idle_caret_opportunity: passed.webscene_graphics_v8_runtime_tests, including intentional RAF/current-texture/scene-lease behavior: passed.git diff --check: passed.The previously qualified Code OSS package at WebScene consolidation
b4483f3contains the same runtime fix (00e5e90c). Its applicable idle gates recorded 0.0 visible and hidden presentations/second, 0.077% visible idle CPU, and 0.256% hidden idle CPU. The focused current-main test above makes the causal no-GPU-work condition deterministic.Closes #114.