docs(globe): pickPosition reads the last drawn frame

Also corrects the separate drape pass cost in the phase 2 report to
0.8–0.95 ms, as measured in the spike.
This commit is contained in:
German Khokhlov committed 2026-10-15 22:36:00 +04:00
1 parent 80cc0b536e
commit 179c846f3e
1 file changed
+2
+2
View File
@@ -207,6 +207,8 @@
* pickGlobe: where the ray through a window position meets the globe * pickGlobe: where the ray through a window position meets the globe
* surface (terrain, not tiles or models; Cesium's globe.pick of the camera's * surface (terrain, not tiles or models; Cesium's globe.pick of the camera's
* pick ray); an engine without a terrain surface answers the ellipsoid. * pick ray); an engine without a terrain surface answers the ellipsoid.
* pickPosition reads the depth of the last drawn frame: after a camera change,
* request a render and wait a frame before reading it.
* @property {GlobeProjector} projector * @property {GlobeProjector} projector
* @property {{ preUpdate: EngineEvent, preRender: EngineEvent, postRender: EngineEvent }} frames Listeners receive a timestamp in ms. * @property {{ preUpdate: EngineEvent, preRender: EngineEvent, postRender: EngineEvent }} frames Listeners receive a timestamp in ms.
* @property {GlobeRender} render * @property {GlobeRender} render