From 179c846f3e4f71b64b14b46b73abb9988cf576ba Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Thu, 15 Oct 2026 22:36:00 +0400 Subject: [PATCH] docs(globe): pickPosition reads the last drawn frame MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also corrects the separate drape pass cost in the phase 2 report to 0.8–0.95 ms, as measured in the spike. --- src/globe/contract.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/globe/contract.js b/src/globe/contract.js index 068071ab1..a966eafae 100644 --- a/src/globe/contract.js +++ b/src/globe/contract.js @@ -207,6 +207,8 @@ * 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 * 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 {{ preUpdate: EngineEvent, preRender: EngineEvent, postRender: EngineEvent }} frames Listeners receive a timestamp in ms. * @property {GlobeRender} render