Cycles: Remove the BVH cache feature
authorThomas Dinges <blender@dingto.org>
Thu, 24 Sep 2015 13:30:15 +0000 (15:30 +0200)
committerThomas Dinges <blender@dingto.org>
Thu, 24 Sep 2015 13:30:15 +0000 (15:30 +0200)
This removes the BVH cache feature from the UI, underlying code will be removed in a separate commit.

The BVH cache was added before we had a multi-threaded BVH build, and a lot of other optimizations were done since then, which makes this not useful anymore.

Fix T46162.

intern/cycles/blender/addon/properties.py
intern/cycles/blender/addon/ui.py
intern/cycles/blender/blender_sync.cpp

index 23d0d850cdea0acbecaf56e7155607fc65e422b6..5f65fd7506b7802116233f24e37feafeffdc27c3 100644 (file)
@@ -463,11 +463,6 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
                 description="Use BVH spatial splits: longer builder time, faster render",
                 default=False,
                 )
-        cls.use_cache = BoolProperty(
-                name="Cache BVH",
-                description="Cache last built BVH to disk for faster re-render if no geometry changed",
-                default=False,
-                )
         cls.tile_order = EnumProperty(
                 name="Tile Order",
                 description="Tile order for rendering",
index b4a061424b29efbdce21b46d75c47cba05e777dd..ecd9855174730b0b68a11b7221cb6057b9ab736e 100644 (file)
@@ -332,7 +332,6 @@ class CyclesRender_PT_performance(CyclesButtonsPanel, Panel):
         col.separator()
 
         col.label(text="Final Render:")
-        col.prop(cscene, "use_cache")
         col.prop(rd, "use_persistent_data", text="Persistent Images")
 
         col.separator()
index 8888d219aac35ea346b6505a19b48e31af1b0505..aed1b6de1388a57608c8b082318ff9ad8bdfad94 100644 (file)
@@ -427,7 +427,6 @@ SceneParams BlenderSync::get_scene_params(BL::Scene b_scene, bool background, bo
                params.bvh_type = (SceneParams::BVHType)RNA_enum_get(&cscene, "debug_bvh_type");
 
        params.use_bvh_spatial_split = RNA_boolean_get(&cscene, "debug_use_spatial_splits");
-       params.use_bvh_cache = (background)? RNA_boolean_get(&cscene, "use_cache"): false;
 
        if(background && params.shadingsystem != SHADINGSYSTEM_OSL)
                params.persistent_data = r.use_persistent_data();