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

Add forEachRenderableTile #1497

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Add forEachRenderableTile #1497

merged 4 commits into from
Aug 29, 2024

Conversation

j9liu
Copy link
Contributor

@j9liu j9liu commented Aug 14, 2024

I noticed that Cesium3DTileset.cpp has a lot of duplication when iterating over tiles with UCesiumGltfComponent. So, for convenience / reusability, I added a forEachRenderableTile template function that allows for a callback on each UCesiumGltfComponent in a collection of tiles.

I've updated a handful of functions to use this call. It can also be reused if we ever need to collectively transform / iterate over tiles in future functionality. I haven't noticed any clear performance differences, but let me know if something here is in bad form.

@j9liu
Copy link
Contributor Author

j9liu commented Aug 14, 2024

Forgot that only Unreal 5.4 is on C++ 20 🤦 I'll add overloads for the time being.

@kring
Copy link
Member

kring commented Aug 14, 2024

Forgot that only Unreal 5.4 is on C++ 20

#1447 moves all UE versions to C++20.

@j9liu j9liu changed the base branch from main to vcpkg August 15, 2024 18:50
Base automatically changed from vcpkg to main August 16, 2024 14:40
@j9liu
Copy link
Contributor Author

j9liu commented Aug 16, 2024

Merged with main. This is ready for a look!

@kring kring added this to the September 2024 Release milestone Aug 29, 2024
@kring
Copy link
Member

kring commented Aug 29, 2024

Thanks @j9liu!

@kring kring merged commit 6dc1d24 into main Aug 29, 2024
23 checks passed
@kring kring deleted the for-each-renderable-tile branch August 29, 2024 05:35
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