-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added throttle option to TerrainData.createMesh #9313
Conversation
…d a throttle option to TerrainData.createMesh, and using options object for TerrainData.createMesh
Thanks for the pull request @IanLilleyT!
Reviewers, don't forget to make sure that:
|
CHANGES.md
Outdated
|
||
##### Additions :tada: | ||
|
||
- Added `Cartesian2.cross`. [#9305](https://github.com/CesiumGS/cesium/pull/9305) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover from #9305
Thanks again for your contribution @IanLilleyT! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Looks good. Thanks @IanLilleyT |
This PR originates from #9286 (comment). It adds a
throttle
option toTerrainData.createMesh
which says whether it should limit the number of asynchronous mesh creations. Note thatcreateMesh
now takes an options object instead of separate arguments.For rendering purposes, throttling is enabled so that only the most relevant terrain tiles are processed, letting it quickly adapt to camera movements.
For
sampleTerrain
/sampleTerrainMostDetailed
, throttling is disabled so that all heights are sampled at once. This ability is needed by #9286 which callscreateMesh
when aTerrainData
can't be interpolated from its raw buffer. Before, if the sample positions spanned a large number of tiles, many of the heights would be undefined because the system couldn't spawn a worker for every tile.This PR also sets
TaskProcessor.maximumActiveTasks
constructor option to infinity by default.