Cycles: Remove unused SAH from BVH pack
This commit is contained in:
@@ -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();
|
||||||
|
@@ -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;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user