forked from bartvdbraak/blender
Cycles: Remove the BVH cache feature
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.
This commit is contained in:
parent
6aed771fac
commit
3e59691df5
@ -463,11 +463,6 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
|
|||||||
description="Use BVH spatial splits: longer builder time, faster render",
|
description="Use BVH spatial splits: longer builder time, faster render",
|
||||||
default=False,
|
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(
|
cls.tile_order = EnumProperty(
|
||||||
name="Tile Order",
|
name="Tile Order",
|
||||||
description="Tile order for rendering",
|
description="Tile order for rendering",
|
||||||
|
@ -332,7 +332,6 @@ class CyclesRender_PT_performance(CyclesButtonsPanel, Panel):
|
|||||||
col.separator()
|
col.separator()
|
||||||
|
|
||||||
col.label(text="Final Render:")
|
col.label(text="Final Render:")
|
||||||
col.prop(cscene, "use_cache")
|
|
||||||
col.prop(rd, "use_persistent_data", text="Persistent Images")
|
col.prop(rd, "use_persistent_data", text="Persistent Images")
|
||||||
|
|
||||||
col.separator()
|
col.separator()
|
||||||
|
@ -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.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_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)
|
if(background && params.shadingsystem != SHADINGSYSTEM_OSL)
|
||||||
params.persistent_data = r.use_persistent_data();
|
params.persistent_data = r.use_persistent_data();
|
||||||
|
Loading…
Reference in New Issue
Block a user