Skip to content

Renderers: Make animation modules more robust.#33159

Merged
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev6
Mar 12, 2026
Merged

Renderers: Make animation modules more robust.#33159
Mugen87 merged 1 commit into
mrdoob:devfrom
Mugen87:dev6

Conversation

@Mugen87

@Mugen87 Mugen87 commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Fixed #33157.

Description

Makes sure the animation modules of WebGPURenderer and WebGLRenderer handle a null context more gracefully.

@Mugen87 Mugen87 added this to the r184 milestone Mar 12, 2026
@github-actions

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.3
85.32
359.32
85.32
+20 B
+4 B
WebGPU 629.97
174.94
629.99
174.94
+22 B
+5 B
WebGPU Nodes 628.55
174.69
628.57
174.69
+22 B
+5 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 491.5
119.98
491.52
119.9
+20 B
-80 B
WebGPU 703.2
189.89
703.22
189.89
+22 B
+8 B
WebGPU Nodes 652.42
177.29
652.45
177.3
+22 B
+5 B

@Mugen87 Mugen87 merged commit 79af681 into mrdoob:dev Mar 12, 2026
10 checks passed
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.

WebGLAnimation throws TypeError when context is not set (rare edge case in non-browser environments)

1 participant