2000 models with heightReference.clampToGround has low performance

Is there anyway to solve the problem of the clampToGround performance?

Hello @lemonsky, if you do not use a dynamic position - it can be a good idea to use pre -settled data for heights (I used this flow for several hundred points from my project).
If the models have a dynamic position - it may be necessary to use workers or a promise for asynchronous calculation

@dihand Thanks , How can I use workers to calculate height in cesium. Is there any example?

1 Worker docs:

2 async height calculation : [array positions ] → Promise
https://cesium.com/learn/cesiumjs/ref-doc/sampleTerrainMostDetailed.html

of course also you can use this only from step 2 - Promises ALWAYS asynchronous but Worker can work in other process flow & this can bee good solution if you have big data