mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
GPU frame timing on the Cesium renderer, where timer queries exist
With EXT_disjoint_timer_query_webgl2 the Cesium renderer lists gpuTiming: while frame signals have listeners, each drawn frame is timed from preRender to postRender and a signal carries gpuMs of the newest timing back (a disjoint one is dropped); queries are reused and let go on dispose. Without the extension it answers 'none', as before. The new conformance check quality.signals.gpuTiming pins both; the stub's timed frames carry 0 ms.
This commit is contained in:
1 parent
8122199887
commit
c7bb08bfb4
7 files changed
+206
-7
No files matched your search
@@ -126,6 +126,14 @@ optional, so a renderer written before it still conforms:
|
||||
[The application and its renderer](#the-application-and-its-renderer).
|
||||
- `frame.renderNow()` throws when the frame fails to draw.
|
||||
|
||||
The Cesium port lists `gpuTiming` where its context has
|
||||
`EXT_disjoint_timer_query_webgl2`: while anyone listens to frame signals,
|
||||
each drawn frame is timed on the GPU from `preRender` to `postRender`, and a
|
||||
signal carries `gpuMs` of the newest frame whose timing has come back (a
|
||||
frame or more late; a disjoint timing is dropped). Without the extension it
|
||||
answers `gpuTiming: 'none'` and lists no capability. The check
|
||||
`quality.signals.gpuTiming` pins both.
|
||||
|
||||
The Cesium port lists `modelAtmosphere`: Cesium scatters drawn models
|
||||
through the atmosphere in the same stage as its distance fog, so models take
|
||||
it while `globe.sky`'s `fog` is on.
|
||||
|
||||
Reference in new issue
Block a user