Skip to content

Main thread dispatch#1315

Merged
j9liu merged 8 commits intomainfrom
main-thread-dispatch
Mar 16, 2026
Merged

Main thread dispatch#1315
j9liu merged 8 commits intomainfrom
main-thread-dispatch

Conversation

@timoore
Copy link
Contributor

@timoore timoore commented Mar 4, 2026

Remove calls to asyncSystem::dispatchMainThreadTasks from tileset selection functions updateViewGroup, updateViewGroupOffline, and loadTiles. This is a breaking change; client applications need to call dispatchMainThreadTasks to make progress.

Addresses #605

Even though tests in
Cesium3DTilesSelection/test/TestTilesetHeightQueries.cpp pass with the
dispatch after loadTiles(), move it before in order to be consistant
with the order we've used elsewhere.
Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @timoore! This looks good for the most part, just saw what I assume was accidental misordering in the unit tests.

@timoore
Copy link
Contributor Author

timoore commented Mar 10, 2026

The tests themselves did have some explicit calls to dispatchMainThreadTasks() already, and they were placed after loadTiles(), so when I was first getting the tests working I put the new calls after too. I'll investigate and see if they can before or if they are still needed.

j9liu and others added 2 commits March 13, 2026 17:59
For new uses of dispatchMainThreadTasks(), always put it before
loadTiles(). This behavior is essentially the same as when
dispatchMainThreadTasks() was included in loadTiles().
Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @timoore !

@j9liu j9liu merged commit 78c69fc into main Mar 16, 2026
28 checks passed
@j9liu j9liu deleted the main-thread-dispatch branch March 16, 2026 15:56
timoore added a commit to CesiumGS/cesium-unreal that referenced this pull request Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants