-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Replace Octree by DynamicBVH in cull code #44623
Conversation
1daebc5
to
4ccf813
Compare
Does this PR fix the issue where hidden nodes are still counted in the culling code, therefore decreasing performance? |
0f7e4f4
to
aa4792c
Compare
I think so, hidden nodes are no longer part of the culling nor inserted into the bvh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed for obvious typos and errors.
-Much greater pairing/unpairing performance -For now, using it for culling too, but this will change in a couple of days. -Added a paged allocator, to efficiently alloc/free some types of objects.
aa4792c
to
8305859
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved so we can get this merged.
I don't have IRC logs so I don't know if any changes were since but this was for the version from 14 hours ago: I added some basic debug print of the bvh tree:
I'll take another look now and see if I can figure out why it is not balancing. |
Further debugging shows the reason why balance isn't working:
This is showing the volumes for each node. The volumes are incorrect. Presumably they are in local space, perhaps before local transform, not in world space. |
renderer_scene_cull, line 1073 (
The |
-Much greater pairing/unpairing performance
-For now, using it for culling too, but this will change in a couple of days.
-Added a paged allocator, to efficiently alloc/free some types of objects.