Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-01-30 17:52:38 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-01-30 23:49:41 +0300
commitcb2007906f902e4daeaf773833ef61da4020ea89 (patch)
tree6195a5f89ff508b1be6e032f48a718ccdbc3d490 /intern/cycles/bvh/bvh.h
parentd632ef7c66399bef4686673ae344cbad2a887c2a (diff)
Cycles: Use bool for is_lead array
This way we save 3 bytes per BVH node while building BVH, which overall gives 100Mb memory save when preparing Frank for render. It's not really much comparing to overall memory usage (which is 11Gb during scene preparation here) but still doesn't harm to have solved.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r--intern/cycles/bvh/bvh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h
index a4a12707768..d0b0ebe206a 100644
--- a/intern/cycles/bvh/bvh.h
+++ b/intern/cycles/bvh/bvh.h
@@ -63,7 +63,7 @@ struct PackedBVH {
array<int> prim_object;
/* quick array to lookup if a node is a leaf, not used for traversal, only
* for instance BVH merging */
- array<int> is_leaf;
+ array<bool> is_leaf;
/* index of the root node. */
int root_index;