diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-02-22 18:25:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-03-31 11:06:21 +0300 |
commit | d9b729e342b72bfe31e7932723a149db3b7aa77c (patch) | |
tree | cc1de21b2999dea8ad4be41752e030758f280b09 /intern/cycles/bvh/bvh_params.h | |
parent | bbbbe68473e02567a902a6405ca09de216674615 (diff) |
Cycles: Only sort indices when finding a best dimension to split
This reduces amount of data being moved back and forth, which should
have positive effect on the performance.
Diffstat (limited to 'intern/cycles/bvh/bvh_params.h')
-rw-r--r-- | intern/cycles/bvh/bvh_params.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_params.h b/intern/cycles/bvh/bvh_params.h index c9b4f2b39e5..2b280d66e4a 100644 --- a/intern/cycles/bvh/bvh_params.h +++ b/intern/cycles/bvh/bvh_params.h @@ -185,6 +185,7 @@ struct BVHSpatialBin struct BVHSpatialStorage { vector<BoundBox> spatial_right_bounds; BVHSpatialBin spatial_bins[3][BVHParams::NUM_SPATIAL_BINS]; + vector<int> spatial_indices; }; CCL_NAMESPACE_END |