Cycles: Remove unused SAH from BVH pack

This commit is contained in:
Sergey Sharybin
2016-04-11 16:18:33 +02:00
parent 6cd13a221f
commit e4cdda548a
2 changed files with 0 additions and 13 deletions

View File

@@ -89,15 +89,6 @@ void BVH::build(Progress& progress)
return; return;
} }
/* compute SAH */
if(!params.top_level)
pack.SAH = root->computeSubtreeSAHCost(params);
if(progress.get_cancel()) {
root->deleteSubtree();
return;
}
/* pack triangles */ /* pack triangles */
progress.set_substatus("Packing BVH triangles and strands"); progress.set_substatus("Packing BVH triangles and strands");
pack_primitives(); pack_primitives();

View File

@@ -67,13 +67,9 @@ struct PackedBVH {
/* index of the root node. */ /* index of the root node. */
int root_index; int root_index;
/* surface area heuristic, for building top level BVH */
float SAH;
PackedBVH() PackedBVH()
{ {
root_index = 0; root_index = 0;
SAH = 0.0f;
} }
}; };