怎么去优化cesium大场景多模型

想问下,最近我就是想将模型设置成静态对性能进行优化,但是操作过程中需要频繁更新世界原点,这个时候静态模型位置会出现变动,原本静态批处理优化会出现问题

是否有办法优化cesium大范围场景中堆积的多模型

Hi @dwbcxy886,

I want to ask, recently I just want to set the model to static to optimize the performance, but during the operation, the world origin needs to be updated frequently, and the position of the static model will change at this time, and the original static batch optimization will have problems

Is there a way to optimize the multi-model stacked in a large-scale scene in Cesium?

This is a hard problem to address, because updating the origin is necessary to maintain float precision in Unity. So the models will always be dynamically repositioned unless you disable the CesiumOriginShift component. You could get away with that if you restricted the user’s movement around the scene, but I’m not sure if that works for your use case.

Maybe the Distance property on the CesiumOriginShift component can help with this? This value sets a distance threshold which it waits to pass before updating the origin, resulting in less frequent updates. Does that mitigate some of the performance issues?