Skip to content

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Apr 20, 2025

Closes #30955

Description

Simplifies the replacement of view matrix nodes for high precision.

Usage

renderer.highPrecision = true;

Summary

@sunag sunag added this to the r176 milestone Apr 20, 2025
Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 336.33
78.33
336.33
78.33
+0 B
+0 B
WebGPU 545.96
151.35
546.33
151.44
+374 B
+86 B
WebGPU Nodes 545.31
151.19
545.68
151.28
+374 B
+86 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.78
112.28
465.78
112.28
+0 B
+0 B
WebGPU 619.81
167.7
620.7
167.9
+892 B
+198 B
WebGPU Nodes 574.68
156.98
575.57
157.2
+892 B
+221 B

@sunag sunag marked this pull request as ready for review April 20, 2025 22:55
@sunag sunag merged commit f1a2795 into mrdoob:dev Apr 20, 2025
12 checks passed
@sunag sunag deleted the dev-highPrecision branch April 20, 2025 22:56
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Rename `renderer.nodes` -> ``renderer.overrideNodes`

* Add `renderer.highPrecision`
RuthySheffi pushed a commit to RuthySheffi/three.js that referenced this pull request Jun 5, 2025
* Rename `renderer.nodes` -> ``renderer.overrideNodes`

* Add `renderer.highPrecision`
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.

WebGPURenderer: Geometry transformations are broken at large scales
1 participant