Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebXRManager: Do not try to init WebXRDepthSensing with cpu-optimized depth. #30241

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

dli7319
Copy link
Contributor

@dli7319 dli7319 commented Dec 31, 2024

On Android with cpu-optimized, there is a crash on the line with glBinding.getDepthInformation because glBinding only gets initialized with WebXR layers. Additionally, WebXRDepthSensing.js is only compatible with gpu-optimized depth.
This change allows cpu-optimized depth to be used separately from WebXRDepthSensing.js.

Copy link

📦 Bundle size

Full ESM build, minified and gzipped.

Before After Diff
WebGL 339.44
79.06
339.47
79.08
+34 B
+26 B
WebGPU 489.65
135.77
489.65
135.77
+0 B
+0 B
WebGPU Nodes 489.11
135.65
489.11
135.65
+0 B
+0 B

🌳 Bundle size after tree-shaking

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

Before After Diff
WebGL 465.3
112.11
465.33
112.13
+34 B
+24 B
WebGPU 559.14
151.28
559.14
151.28
+0 B
+0 B
WebGPU Nodes 515.21
141.07
515.21
141.07
+0 B
+0 B

@mrdoob
Copy link
Owner

mrdoob commented Dec 31, 2024

@toji Looks good?

@toji
Copy link
Contributor

toji commented Jan 2, 2025

LGTM!

@Mugen87 Mugen87 added this to the r173 milestone Jan 3, 2025
@Mugen87 Mugen87 merged commit 3abfd88 into mrdoob:dev Jan 3, 2025
12 checks passed
@Mugen87 Mugen87 changed the title Do not try to init WebXRDepthSensing.js with cpu-optimized depth. WebXRManager: Do not try to init WebXRDepthSensing with cpu-optimized depth. Jan 3, 2025
@Mugen87 Mugen87 mentioned this pull request Jan 4, 2025
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.

4 participants