[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54126] trunk/blender: BGE UI: removing " use_occlusion_culling" from the ui

Dalai Felinto dfelinto at gmail.com
Sun Jan 27 20:57:48 CET 2013


Revision: 54126
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54126
Author:   dfelinto
Date:     2013-01-27 19:57:47 +0000 (Sun, 27 Jan 2013)
Log Message:
-----------
BGE UI: removing "use_occlusion_culling" from the ui
(and marking rna as deprecated)

I talked with Benoit Bolsee and Mitchell Stokes and they both agreed that
the feature should be removed.

In case someone was actually using it the rna is still available. But next
release we remove both the rna, the DNA and the flag in the code.

I did a simple benchmark with tons of cubes, and the DBVT culling (use_occlusion_culling=True)
always perform better than when it's off. Even when no occluder objects are in the scene.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_game.py
    trunk/blender/source/blender/makesrna/intern/rna_scene.c

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_game.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2013-01-27 18:17:10 UTC (rev 54125)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_game.py	2013-01-27 19:57:47 UTC (rev 54126)
@@ -621,7 +621,9 @@
 
         layout.prop(gs, "physics_engine")
         if gs.physics_engine != 'NONE':
-            layout.prop(gs, "physics_gravity", text="Gravity")
+            col = layout.column()
+            col.prop(gs, "physics_gravity", text="Gravity")
+            col.prop(gs, "occlusion_culling_resolution", text="Culling Resolution")
 
             split = layout.split()
 
@@ -644,12 +646,6 @@
             sub = col.row()
             sub.prop(gs, "deactivation_time", text="Time")
 
-            col = layout.column()
-            col.prop(gs, "use_occlusion_culling", text="Occlusion Culling")
-            sub = col.column()
-            sub.active = gs.use_occlusion_culling
-            sub.prop(gs, "occlusion_culling_resolution", text="Resolution")
-
         else:
             split = layout.split()
 

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c	2013-01-27 18:17:10 UTC (rev 54125)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c	2013-01-27 19:57:47 UTC (rev 54126)
@@ -2686,10 +2686,12 @@
 	RNA_def_property_update(prop, NC_SCENE, NULL);
 
 	/* mode */
+	/* not used  *//* deprecated !!!!!!!!!!!!! */
 	prop = RNA_def_property(srna, "use_occlusion_culling", PROP_BOOLEAN, PROP_NONE);
 	RNA_def_property_boolean_sdna(prop, NULL, "mode", WO_DBVT_CULLING);
-	RNA_def_property_ui_text(prop, "DBVT culling",
-	                         "Use optimized Bullet DBVT tree for view frustum and occlusion culling");
+	RNA_def_property_ui_text(prop, "DBVT Culling",
+	                         "Use optimized Bullet DBVT tree for view frustum and occlusion culling "
+	                         "(more efficient, but it can waste unecessary CPU if the scene doesn't have Occluder objects");
 	
 	/* not used  *//* deprecated !!!!!!!!!!!!! */
 	prop = RNA_def_property(srna, "use_activity_culling", PROP_BOOLEAN, PROP_NONE);




More information about the Bf-blender-cvs mailing list