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

Reduce cull check matrix calcs #158

Merged
merged 3 commits into from
May 1, 2023
Merged

Reduce cull check matrix calcs #158

merged 3 commits into from
May 1, 2023

Conversation

JamesTKhan
Copy link
Owner

Minor optimization to frustum cull checks. Frustum cull checks use 1 to 2 matrix multiplications every time. With this change, items that are not culled will only be checked every 15 frames instead of every frame. Also, added a return statement to modelCache culling logic that seems to be missing.

@JamesTKhan JamesTKhan merged commit 7b7396d into master May 1, 2023
@JamesTKhan JamesTKhan deleted the cull-optimization branch June 5, 2023 21:00
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