[Bf-blender-cvs] [7a492212135] cycles_embree: Cycles: Set the compact flag on Embree to save memory
Stefan Werner
noreply at git.blender.org
Sun Nov 26 23:11:34 CET 2017
Commit: 7a492212135d828cb4a4486f4c61c8f7cb7d8af2
Author: Stefan Werner
Date: Tue Oct 24 08:19:38 2017 +0200
Branches: cycles_embree
https://developer.blender.org/rB7a492212135d828cb4a4486f4c61c8f7cb7d8af2
Cycles: Set the compact flag on Embree to save memory
===================================================================
M intern/cycles/bvh/bvh_embree.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh_embree.cpp b/intern/cycles/bvh/bvh_embree.cpp
index a21f5efeb11..71fcf35cce9 100644
--- a/intern/cycles/bvh/bvh_embree.cpp
+++ b/intern/cycles/bvh/bvh_embree.cpp
@@ -312,7 +312,7 @@ void BVHEmbree::build(Progress& progress, Stats *stats_)
scene = NULL;
}
- RTCSceneFlags flags = (params.bvh_type == SceneParams::BVH_DYNAMIC ? RTC_SCENE_DYNAMIC : RTC_SCENE_STATIC) | RTC_SCENE_INCOHERENT | RTC_SCENE_ROBUST;
+ RTCSceneFlags flags = (params.bvh_type == SceneParams::BVH_DYNAMIC ? RTC_SCENE_DYNAMIC : RTC_SCENE_STATIC) | RTC_SCENE_COMPACT | RTC_SCENE_ROBUST;
if(params.use_spatial_split) {
flags = flags | RTC_SCENE_HIGH_QUALITY;
}
More information about the Bf-blender-cvs
mailing list