You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move your hands in and out of view, paying attention to the console, which will signal that shaders are being recompiled, and notice that performance dips considerably.
This is due to the following call in the WebXRHand constructor:
Repro
createDefaultXRExperienceAsync
, call:This is due to the following call in the WebXRHand constructor:
Babylon.js/src/XR/features/WebXRHandTracking.ts
Line 297 in 3a9e132
Which causes a mesh import:
Babylon.js/src/XR/features/WebXRHandTracking.ts
Line 432 in 3a9e132
And a material compilation:
Babylon.js/src/XR/features/WebXRHandTracking.ts
Line 444 in 3a9e132
We should be pre-loading the meshes and materials and enabling/disabling them as hands go in and out of view, instead of recreating them every time.
The text was updated successfully, but these errors were encountered: