forked from bartvdbraak/blender
Cycles: Remove unused SAH from BVH pack
This commit is contained in:
parent
6cd13a221f
commit
e4cdda548a
@ -89,15 +89,6 @@ void BVH::build(Progress& progress)
|
||||
return;
|
||||
}
|
||||
|
||||
/* compute SAH */
|
||||
if(!params.top_level)
|
||||
pack.SAH = root->computeSubtreeSAHCost(params);
|
||||
|
||||
if(progress.get_cancel()) {
|
||||
root->deleteSubtree();
|
||||
return;
|
||||
}
|
||||
|
||||
/* pack triangles */
|
||||
progress.set_substatus("Packing BVH triangles and strands");
|
||||
pack_primitives();
|
||||
|
@ -67,13 +67,9 @@ struct PackedBVH {
|
||||
/* index of the root node. */
|
||||
int root_index;
|
||||
|
||||
/* surface area heuristic, for building top level BVH */
|
||||
float SAH;
|
||||
|
||||
PackedBVH()
|
||||
{
|
||||
root_index = 0;
|
||||
SAH = 0.0f;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user