Skip to content

Remove the need to call registerAllConverterTypes - #1511

Open
j9liu wants to merge 3 commits into
mainfrom
no-register
Open

j9liu wants to merge 3 commits into
mainfrom
no-register

Conversation

@j9liu

@j9liu j9liu commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Description

This change removes the requirement of calling registerAllConverterTypes before streaming 3D Tiles. The std::call_once solution was introduced by Copilot with some manual cleanup from my end.

Issue number or link

Closes #1487.

Author checklist

  • I have submitted a Contributor License Agreement (only needed once).
  • I have done a full self-review of my code.
  • I have updated CHANGES.md with a short summary of my change (for user-facing changes).
  • I have added or updated unit tests to ensure consistent code coverage as necessary.
  • I have updated the documentation as necessary.

Testing plan

Tests should pass as expected, but I'll also open branches on Unreal / Unity side to ensure tilesets still stream as expected.

Reviewer checklist

Thank you for taking the time to review this PR. By approving a PR you are taking as much responsibility for these changes as the author.

As you review, please go through the checklist below:

  • Review and run all parts of the test plan on this branch and verify it matches expectations.
    • If the issue is a bug please make sure you can reproduce the bug in the main branch and then checkout this branch to make sure it actually solved the issue.
  • Review the code and make sure you do not have any remaining questions or concerns. You should understand the code change and the chosen approach. If you are not confident or have doubts about the code, please do not hesitate to ask questions.
  • Review the unit tests and make sure there are no missing tests or edge cases.
  • Review documentation changes and updates to CHANGES.md to make sure they accurately cover the work in this PR.
  • Verify that the Contributor License Agreement has been submitted, if needed.

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Thank you for the pull request, @j9liu!

✅ We can confirm we have a CLA on file for you.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

A non-inline function definition in a public header breaks multi-translation-unit linking and Windows shared-library consumers, while lazy initialization overwrites custom converter registrations.

2 open issues
What changed in this PR

Makes Cesium Native’s built-in glTF converters initialize automatically before loading content, removing the manual setup requirement for streaming 3D Tiles and addressing #1487.

Changes:

  • Registers built-in converters on first lookup using std::call_once.
  • Deprecates registerAllConverterTypes as a no-op and documents the change.
  • Removes explicit registration calls and includes from existing tests.
File Description
CHANGES.md Documents automatic registration and deprecation.
CesiumVectorOverlays/​test/​TestVectorTilesRasterOverlay.cpp Removes manual registration from overlay tests.
CesiumQuantizedMeshTerrain/​test/​TestQuantizedMeshContent.cpp Removes manual registration from terrain conversion tests.
CesiumGltfConverters/​src/​registerAllConverterTypes.cpp Deletes the standalone registration implementation.
CesiumGltfConverters/​src/​GltfConverters.cpp Adds one-time initialization to magic and extension lookups.
CesiumGltfConverters/​include/​CesiumGltfConverters/​registerAllConverterTypes.h Replaces the legacy declaration with a deprecated no-op definition.
Cesium3DTilesSelection/​test/​TestTilesetSelectionAlgorithm.cpp Removes manual registration from selection tests.
Cesium3DTilesSelection/​test/​TestTilesetJsonLoader.cpp Removes manual registration from JSON loader tests.
Cesium3DTilesSelection/​test/​TestTilesetHeightQueries.cpp Removes manual registration from height-query tests.
Cesium3DTilesSelection/​test/​TestTilesetGltfLoader.cpp Removes manual registration from glTF loader tests.
Cesium3DTilesSelection/​test/​TestTilesetContentManager.cpp Removes manual registration from content-manager tests.
Cesium3DTilesSelection/​test/​TestLayerJsonTerrainLoader.cpp Removes manual registration from terrain-loader tests.
Cesium3DTilesSelection/​test/​TestImplicitQuadtreeLoader.cpp Removes manual registration from implicit quadtree tests.
Cesium3DTilesSelection/​test/​TestImplicitOctreeLoader.cpp Removes manual registration from implicit octree tests.
Cesium3DTilesSelection/​test/​TestContentGroup.cpp Removes manual registration from content-group tests.

Review effort: Balanced

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.

Remove need for clients to call registerAllTileContentTypes

2 participants