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

Remove previous bsp tree skipping optimization #5203

Merged
merged 3 commits into from Feb 19, 2023

Conversation

Baezon
Copy link
Member

@Baezon Baezon commented Feb 18, 2023

Reverts #1630. The collision tree is a very useful data structure, even if it isn't being used for literal collision its the primary source of of simple vertex position and vertex count look ups. Although FotG may have been fine, it immediately caused issues in models with no_collide detail0s #1708. #1733 was a decent enough band-aid, but we really should just have the tree if we've loaded the model. With this, all models should have collision trees, the tree is how polygons are provided in the first place in the pof, so this is a guarantee.

@Baezon Baezon added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. labels Feb 18, 2023
@Goober5000
Copy link
Contributor

Nice work. I wonder if this might help with #4089 as well.

@wookieejedi
Copy link
Member

Sounds good to me as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants