As shown in the figure, in the analysis tool, the CesiumGlobeAnchor script occupies some performance. How to avoid it
Turning off detectTransformChanges
may help:
With detectTransformChanges off, is there a problem updating the location of this object when the camera moves
The comment above the line I linked above explains the implications of turning it off. In short, with that flag set to false, if you change the Unity Transform, the CesiumGlobeAnchor’s Longitude / Latitude / Height will not automatically update to the reflect the new position (because Unity gives us no way to reliably determine that this has happened other than by polling with a coroutine). You’ll have to manually call Sync
on it. However, if you set the globe position by calling methods or setting properties on the CesiumGlobeAnchor itself, the Transform will automatically update accordingly (no matter the state of this flag).