Skip to content

Eliminate 1-frame delay after texture upload - #952

Merged
wouterlucas merged 1 commit into
mainfrom
plan1-sync-texture-upload
Oct 30, 2026
Merged

wouterlucas merged 1 commit into
mainfrom
plan1-sync-texture-upload

Conversation

@wouterlucas

@wouterlucas wouterlucas commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Makes texture upload synchronous so nodes render in the same drawFrame.

@wouterlucas wouterlucas changed the title Plan 1: eliminate 1-frame delay after texture upload Eliminate 1-frame delay after texture upload Oct 30, 2026
Make CoreContextTexture.load/onLoadRequest synchronous so
setState('loaded') runs immediately after gl.texImage2D within the
same drawFrame instead of deferring to a microtask. Make
CoreTextureManager.uploadTexture/processSome synchronous, attach
CoreNode texture listeners synchronously, and run a second targeted
root.update() in Stage.drawFrame when processSome dirties nodes.

Adds Stage.textureLatency regression tests covering same-frame
upload, isRenderable, renderer.addQuad, autosize, and
resizeMode:contain.
jfboeve
jfboeve previously approved these changes Oct 30, 2026
@wouterlucas
wouterlucas force-pushed the plan1-sync-texture-upload branch from 929681e to 6694091 Compare October 30, 2026 13:19
@wouterlucas
wouterlucas merged commit cc4fb38 into main Oct 30, 2026
6 checks passed
@wouterlucas
wouterlucas deleted the plan1-sync-texture-upload branch October 30, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants