i am developing a flight simulator, and making with the camera a complete 360 degree around the vertical axis i notice that the terrain at my back is “forgotten” by Cesium engine also if it was already previously loaded. So for each 360 degree the terrain seems to be reloaded again and again (at least this is the feeling looking at the screen! )
So there is a way to ask to Cesium engine not to forget the previous loaded terrain at camera back?
bobactor40, Cesium terrain is cached by the browser for a year, so there is no concern for network payload here. The tileCacheSize setting pointed to by Willem is the correct solution.
Ultimately, we might want different strategies for terrain loading in Cesium as well for the ability to “lock” a section of terrain so that it’s always available regardless of current view.
When I turn the camera away then back again, it needs to reload the map, which is quite obvious when running the 3D model example where users rotate the camera on a quite high position.
I’m wondering if there is a similar way to cache the map like caching the terrain data.
But I cannot find something like that in the API document.
Phoenix, the tileCacheSize is a combined value for both terrain and imagery (If I recall correctly, a single cached tile already had both the terrain and imagery baked, it’s not the raw data that gets cached but rather all data for that tile)…
but I after I increased the tileCacheSize, the image(or say map) was not cached. The terrain data was cached successfully, I can saw the height data in blue when re-loading map.