diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-11 17:18:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-11 18:18:14 +0300 |
commit | e4cdda548a582b626f4a42bb702f166178a083e5 (patch) | |
tree | 758961376b02806cb7613ccef7810d09d1f7430d /intern/cycles/bvh | |
parent | 6cd13a221f374091203dd38ea0f9fc649a2b9a7f (diff) |
Cycles: Remove unused SAH from BVH pack
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 9 | ||||
-rw-r--r-- | intern/cycles/bvh/bvh.h | 4 |
2 files changed, 0 insertions, 13 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp index b1273d64098..9e63485c04e 100644 --- a/intern/cycles/bvh/bvh.cpp +++ b/intern/cycles/bvh/bvh.cpp @@ -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(); diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h index 4b9f1bae801..6076c25ca31 100644 --- a/intern/cycles/bvh/bvh.h +++ b/intern/cycles/bvh/bvh.h @@ -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; } }; |