From e4cdda548a582b626f4a42bb702f166178a083e5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 11 Apr 2016 16:18:33 +0200 Subject: [PATCH] Cycles: Remove unused SAH from BVH pack --- intern/cycles/bvh/bvh.cpp | 9 --------- intern/cycles/bvh/bvh.h | 4 ---- 2 files changed, 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; } };