Skip to content
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

Fix Terrain Lockups in requestTileGeometry due to Promise Handling Inconsistencies #11630

Merged
Prev Previous commit
Next Next commit
prettier change
  • Loading branch information
Marc E. Johnson committed Nov 21, 2023
commit 6710e181cf4b371067b14ac3123c9fd6463e1bd0
2 changes: 1 addition & 1 deletion packages/engine/Source/Core/CesiumTerrainProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ CesiumTerrainProvider.prototype.requestTileGeometry = function (
// Try again when availability data is ready– Otherwise the tile will be marked as failed and never re-requested
return availabilityPromise.then(() => {
// handle promise or undefined return
return new Promise(resolve=> {
return new Promise((resolve) => {
// defer execution to the next event loop
setTimeout(() => {
const promise = this.requestTileGeometry(x, y, level, request);
Expand Down