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 frustum culling #84

Merged
merged 5 commits into from
Jul 24, 2022
Merged

Add frustum culling #84

merged 5 commits into from
Jul 24, 2022

Conversation

JamesTKhan
Copy link
Owner

@JamesTKhan JamesTKhan commented Jul 19, 2022

Adds frustum culling for Models, Terrains, and Water to help with performance. If shadows are enabled, the shadow map camera frustum is also factored in for culling. Also adds a SceneSettings object and water settings were moved into that object. Also adds a performance settings area for frustum culling toggling per scene.

Observe profiler stats with objects in view:
image

Turning the camera away and observe profiler stats with frustum culling enabled
image

image

@JamesTKhan JamesTKhan linked an issue Jul 19, 2022 that may be closed by this pull request
# Conflicts:
#	commons/src/main/com/mbrlabs/mundus/commons/Scene.java
#	commons/src/main/com/mbrlabs/mundus/commons/scene3d/components/ModelComponent.java
@JamesTKhan JamesTKhan merged commit dee18f7 into master Jul 24, 2022
@JamesTKhan JamesTKhan deleted the frustum-culling branch July 24, 2022 00:19
@JamesTKhan JamesTKhan added this to the 0.4.0 Release milestone Jul 24, 2022
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.

Add frustum culling for model rendering
1 participant