mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Complete the Cesium frame port
The frame port now does everything the contract asks of it on Cesium: preUpdate says whether the tick draws (Cesium's own render test, read live until the tick is over), holds are counted per reason, and suspend, target fps, renderNow and diagnostics are real. Releasing the last hold asks for one more frame. whenSettled also waits until Cesium stops redrawing on its own. Each request or worker task Cesium completes queues a redraw (a terrain picker build after the camera moved, say), which no loading flag shows, so it now waits for quiet frames and then a short stretch in which the loop draws nothing by itself. It is bounded by its timeout, names a stopped loop, and ends on destroy. The app renderer still leaves out the members that steer the loop: the render governor and the page's visibility handling own those settings until they move onto the port. The new frame.prediction check compares the preUpdate answer with what each tick drew.
This commit is contained in:
1 parent
1a9bdd9b63
commit
e6d22e55d7
11 files changed
+842
-55
No files matched your search
Vendored
+6
-1
@@ -41,7 +41,12 @@ export interface FrameTime {
|
||||
now: number;
|
||||
/** Seconds since the previous tick. */
|
||||
dt: number;
|
||||
/** Whether this tick draws. */
|
||||
/**
|
||||
* Whether this tick draws. Read during `preUpdate` it counts what has been
|
||||
* asked so far; a request or hold made later in `preUpdate` draws this
|
||||
* tick or the next, as the engine decides, and readers after it see
|
||||
* which. Once the tick is over it keeps its answer.
|
||||
*/
|
||||
rendering: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user