We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5355b0f + 1936ce9 commit 7b97d19Copy full SHA for 7b97d19
include/geode/geometry/detail/aabb_impl.hpp
@@ -95,9 +95,15 @@ namespace geode
95
bboxes, ROOT_INDEX, 0, bboxes.size() );
96
}
97
const auto grain = async::detail::auto_grain_size( bboxes.size() );
98
- const auto nb_async_depth = std::log2( grain );
99
- async_depth_ =
100
- depth_ > nb_async_depth ? depth_ - nb_async_depth : depth_;
+ if( grain < 8 )
+ {
+ async_depth_ = 0;
101
+ }
102
+ else
103
104
+ const auto nb_async_depth = std::log2( grain );
105
+ async_depth_ = depth_ - nb_async_depth;
106
107
108
109
[[nodiscard]] index_t nb_bboxes() const
0 commit comments