forked from bartvdbraak/blender
Cycles: Log allocation slop factor for BVH arrays
Currently they're staying at 1 (actual size over capacity), but we will be changing it quite soon in order to avoid having too much memory re-allocation happening at a BVH build time and will be playing with different policies for that.
This commit is contained in:
parent
5d25579602
commit
ba7c2b7b73
@ -293,7 +293,11 @@ BVHNode* BVHBuild::run()
|
||||
<< " Number of inner nodes: "
|
||||
<< rootnode->getSubtreeSize(BVH_STAT_INNER_COUNT) << "\n"
|
||||
<< " Number of leaf nodes: "
|
||||
<< rootnode->getSubtreeSize(BVH_STAT_LEAF_COUNT) << "\n";
|
||||
<< rootnode->getSubtreeSize(BVH_STAT_LEAF_COUNT) << "\n"
|
||||
<< " Allocation slop factor: "
|
||||
<< ((prim_type.capacity() != 0)
|
||||
? (float)prim_type.size() / prim_type.capacity()
|
||||
: 1.0f) << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user