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_sort.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_sort.h')
-rw-r--r-- | intern/cycles/bvh/bvh_sort.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_sort.h b/intern/cycles/bvh/bvh_sort.h index 18aafb5f1ff..ec6edc42c74 100644 --- a/intern/cycles/bvh/bvh_sort.h +++ b/intern/cycles/bvh/bvh_sort.h @@ -21,6 +21,11 @@ CCL_NAMESPACE_BEGIN void bvh_reference_sort(int start, int end, BVHReference *data, int dim); +void bvh_reference_sort_indices(int start, + int end, + const BVHReference *data, + int *indices, + int dim); CCL_NAMESPACE_END |