In our editor the same left button selects on click and orbits on drag. Our POINTERUP observer reads pickInfo on a click, but returns without reading it after an orbit. Could Babylon deliver that release without a raycast when nothing needs the hit?
One-box Playground, Babylon.js 9.38.1. The counter measures only scene.pick calls during the native mouse release.
- Click the box: 1 pick, observer reads box.
- Drag horizontally to orbit, then release: 1 pick, observer does not read the hit. This is the case where I’d expect 0 picks.
- Repeat the drag, ending over the box, and hold Shift as you release: 1 pick, observer reads box. That pick is useful.
In two larger scenes on 9.32.1, the unused raycast took 19–32 ms once per drag release. Setting scene.skipPointerUpPicking = true also removes the click hit.
This follows #13145: here an application observer is registered, but it only needs some release hits. Would an on-demand POINTERUP hit or an opt-in per-release hook fit the input manager better? Click selection, other listeners that read the hit, and mesh actions such as OnPickUpTrigger should retain their current behavior.