Skip to content

Renderer: Make hasCompatibility() more predictable.#33087

Merged
Mugen87 merged 2 commits into
mrdoob:devfrom
Mugen87:dev5
Feb 27, 2026
Merged

Renderer: Make hasCompatibility() more predictable.#33087
Mugen87 merged 2 commits into
mrdoob:devfrom
Mugen87:dev5

Conversation

@Mugen87

@Mugen87 Mugen87 commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Related issue: -

Description

I think it's preferable if Renderer.hasCompatibility() behaves similar to hasFeature() and only reports a result after the backend has been initialized. Otherwise an error is returned.

@github-actions

github-actions Bot commented Feb 27, 2026

Copy link
Copy Markdown

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 359.57
85.37
359.57
85.37
+0 B
+0 B
WebGPU 626.83
174.23
626.97
174.23
+140 B
+2 B
WebGPU Nodes 625.41
173.98
625.55
173.98
+140 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 491.31
119.78
491.31
119.78
+0 B
+0 B
WebGPU 700.42
189.22
700.59
189.23
+170 B
+7 B
WebGPU Nodes 649.63
176.58
649.8
176.59
+170 B
+9 B

@Mugen87 Mugen87 requested a review from sunag February 27, 2026 11:42
Comment thread src/renderers/webgpu/WebGPUBackend.js
@Mugen87 Mugen87 merged commit f443051 into mrdoob:dev Feb 27, 2026
10 checks passed
@Mugen87 Mugen87 added this to the r184 milestone Feb 27, 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