Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add tile loading events for Voxels #12430
Add tile loading events for Voxels #12430
Changes from 12 commits
3a4f140
f36ad9c
ceaf56c
bfe4c11
fcd9a9c
61f4771
335414d
156d050
3c79fad
5f9a85a
2b38dbb
f589fb0
f0c0149
f3149a3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This may be a question beyond the scope of this PR, but when a provider returns
undefined
instead of a promise, is that actually a failure state? Typically whenundefined
is returned from a function like this, it signals that the request couldn't be scheduled this frame and will be tried again next frame.CC @jjhembd
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.
For both
Cesium3DTilesVoxelProvider
and the procedural providers in the Sandcastles, anundefined
return happened when the tile didn't exist. I agree that this is not really expected behavior.In #12432 I changed the providers to return a rejected Promise if the tile doesn't exist.
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.
I added a few comments in #12432 that mentioned
undefined
may still be a valid return value that needs to be accounted for. But, yes, it should never be a failure state.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.
This change here as described above
cesium/packages/engine/Source/Scene/VoxelTraversal.js
Line 429 in 41dbe65
This simplifies the logic on whether to raise the tileLoad or tileFailed event
Something like this at the end of the
loadTileSuccess
would be all that is needed.