Cycles: Expose QBVH on/off switch to the UI.

We might remove this again in the future, but for testing purposes
during the release cycle, this will be useful.

The setting defaults to QBVH, and can be found in the Performance panel.
This commit is contained in:
Thomas Dinges 2014-12-25 02:19:14 +01:00
parent deb06c457d
commit 6e7c2d2e43
3 changed files with 7 additions and 1 deletions

@ -456,6 +456,11 @@ class CyclesRenderSettings(bpy.types.PropertyGroup):
description="Use BVH spatial splits: longer builder time, faster render",
default=False,
)
cls.use_qbvh = BoolProperty(
name="Use QBVH",
description="Use QBVH acceleration structure",
default=True,
)
cls.use_cache = BoolProperty(
name="Cache BVH",
description="Cache last built BVH to disk for faster re-render if no geometry changed",

@ -320,6 +320,7 @@ class CyclesRender_PT_performance(CyclesButtonsPanel, Panel):
col.label(text="Acceleration structure:")
col.prop(cscene, "debug_use_spatial_splits")
col.prop(cscene, "use_qbvh")
class CyclesRender_PT_layer_options(CyclesButtonsPanel, Panel):

@ -379,7 +379,7 @@ SceneParams BlenderSync::get_scene_params(BL::Scene b_scene, bool background, bo
params.persistent_data = false;
if(is_cpu) {
params.use_qbvh = system_cpu_support_sse2();
params.use_qbvh = system_cpu_support_sse2() && RNA_boolean_get(&cscene, "use_qbvh");
}
else {
params.use_qbvh = false;