diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-04 13:23:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-04 13:23:23 +0300 |
commit | 61a8d12ccdc1469f03e8fa1eee5fddfa4003d69e (patch) | |
tree | 6ecd721a19be60d894196b3fdfdec16aac76a447 /intern/cycles/bvh/bvh_build.cpp | |
parent | 8cc746049577bce0d5d54c4f6f4f807d4e119159 (diff) |
Cycles: Tweak to stack allocator used by BVH builder
In some files stack memory was overruning the pre-allocated stack.
Perhaps we should fall-back to a hep-allocated stack so release builds
don't crash in works case but just becoming slower.
Diffstat (limited to 'intern/cycles/bvh/bvh_build.cpp')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index 54ea28ac7d9..9f77ea3d201 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -513,7 +513,7 @@ BVHNode* BVHBuild::create_leaf_node(const BVHRange& range) * because re-allocation happens in chunks and size of those chunks we * can not control. */ - typedef StackAllocator<MAX_ITEMS_PER_LEAF * 8, int> LeafStackAllocator; + typedef StackAllocator<MAX_ITEMS_PER_LEAF * 16, int> LeafStackAllocator; vector<int, LeafStackAllocator> p_type[PRIMITIVE_NUM_TOTAL]; vector<int, LeafStackAllocator> p_index[PRIMITIVE_NUM_TOTAL]; |