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
@@ -297,6 +297,7 @@ export function createStubRenderer(options = {}) {
|
||||
for (const waiter of onceWaiters.splice(0)) waiter();
|
||||
const signals = {
|
||||
cpuMs: 0,
|
||||
...(capabilities.has('gpuTiming') ? { gpuMs: 0 } : {}),
|
||||
pixelRatio: qualitySettings.pixelRatio || 1,
|
||||
width: viewport.width,
|
||||
height: viewport.height,
|
||||
|
||||
Reference in new issue
Block a user