diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-22 22:58:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-25 00:50:49 +0300 |
commit | 57d235d9f496fd71f5b57cef36d34fae5bf9d9ce (patch) | |
tree | 53503cc066cdbbbfcfd77b84b53c1c3270aa40ee /intern/cycles/bvh/bvh.h | |
parent | a888b8beaf7605bad36926cbe26f0828620a4004 (diff) |
Cycles: Optimize storage of QBVH node by one float4
The idea is to store visibility flags for leaf nodes only since visibility check
for inner nodes costs too much for QBVH hence it is not optimal to perform.
Leaf QBVH nodes have plenty of space to store all sort of flags, so we can make
nodes one element smaller, saving noticeable amount of memory.
Diffstat (limited to 'intern/cycles/bvh/bvh.h')
-rw-r--r-- | intern/cycles/bvh/bvh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh.h b/intern/cycles/bvh/bvh.h index 58faaccee7d..ef4575ad7ee 100644 --- a/intern/cycles/bvh/bvh.h +++ b/intern/cycles/bvh/bvh.h @@ -36,7 +36,7 @@ class Object; class Progress; #define BVH_NODE_SIZE 4 -#define BVH_QNODE_SIZE 8 +#define BVH_QNODE_SIZE 7 #define BVH_ALIGN 4096 #define TRI_NODE_SIZE 3 |