Skip to content

Fix the output pass cache for multi-canvas rendering#33210

Closed
arodic wants to merge 1 commit into
mrdoob:devfrom
io-gui:fixes/multi-canvas-cache-alt
Closed

Fix the output pass cache for multi-canvas rendering#33210
arodic wants to merge 1 commit into
mrdoob:devfrom
io-gui:fixes/multi-canvas-cache-alt

Conversation

@arodic

@arodic arodic commented Mar 18, 2026

Copy link
Copy Markdown
Contributor

Related issue: #32689

Description

Alternative to #33209

This fixes the root cause instead of tracking a side effect.

This fix attempts to cache the correct output node per texture. That makes the cache own the real artifact being reused, removes the extra bookkeeping variable, and handles multi-canvas switching naturally.

@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.97
85.53
359.97
85.53
+0 B
+0 B
WebGPU 632.13
175.39
632.14
175.4
+10 B
+13 B
WebGPU Nodes 630.25
175.1
630.26
175.11
+10 B
+13 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Before After Diff
WebGL 492.17
120.11
492.17
120.11
+0 B
+0 B
WebGPU 704.56
190.19
704.57
190.21
+10 B
+12 B
WebGPU Nodes 653.78
177.6
653.79
177.61
+10 B
+13 B

@sunag

sunag commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

Closing in favor of #33228

@sunag sunag closed this Mar 25, 2026
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