Improving Performance with Explicit Rendering:https://cesium.com/blog/2018/01/24/cesium-scene-rendering-performance/
默认情况下,Cesium会像游戏引擎一样渲染新帧:以目标帧速率定期渲染。虽然这对于具有动态数据或不断为新视图流式传输数据的Cesium应用程序非常有效,但许多Cesium程序可以从较少的渲染频率中获益。渲染新帧会使用CPU资源,如果应用程序是idle的,通常不需要渲染。explicit rendering(显式渲染)提高了性能,这意味着您可以运行Ceium应用程序,而无需担心将笔记本电脑风扇置于高速档或耗尽移动设备的电池寿命。
从Cesium 1.42开始,一种新的选择性显式渲染模式允许开发人员根据应用程序的需要精确控制Cesium中的渲染。启用后,仅在以下场景中渲染新帧:
- The camera changes, either with user input or with the Cesium API.
- The simulation time advances beyond a specified threshold.
- Loading in terrain, imagery, 3D Tiles, or data sources, including each individual tile load. At a lower level, this is triggered when a web request is resolved via a URI or blob, or an asynchronous process returns from a web worker.
- Globe imagery layers are added, removed, or changed.
- Globe terrain providers change.
- The scene mode morphs.
- A frame is explicitly rendered with the Cesium API.
>>关闭相关特效(moon、fog、sun、skybox)和分辨率(resolutionScale&maximumScreenSpaceError)