Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-04-19 19:52:38 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-04-19 19:52:38 +0300
commit3368df4ab6eab69cc7aec30fccb2ac806c45bbe4 (patch)
tree715f82a4b6909f427e283b870199ea3d7b340c35 /source/blender/makesrna/intern
parent7e4db169f2ab8dd62281f0b42a6f7e33be5f32d6 (diff)
DRW: Expose VBO garbage collection timings
This adds user side options to tweak the behavior of the vbo garbage collection.
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 5a017e96fa7..d81ae82fbc5 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -4766,6 +4766,23 @@ static void rna_def_userdef_system(BlenderRNA *brna)
"Texture Collection Rate",
"Number of seconds between each run of the GL texture garbage collector");
+ prop = RNA_def_property(srna, "vbo_time_out", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "vbotimeout");
+ RNA_def_property_range(prop, 0, 3600);
+ RNA_def_property_ui_text(
+ prop,
+ "VBO Time Out",
+ "Time since last access of a GL Vertex buffer object in seconds after which it is freed "
+ "(set to 0 to keep vbo allocated)");
+
+ prop = RNA_def_property(srna, "vbo_collection_rate", PROP_INT, PROP_NONE);
+ RNA_def_property_int_sdna(prop, NULL, "vbocollectrate");
+ RNA_def_property_range(prop, 1, 3600);
+ RNA_def_property_ui_text(
+ prop,
+ "VBO Collection Rate",
+ "Number of seconds between each run of the GL Vertex buffer object garbage collector");
+
/* Select */
prop = RNA_def_property(srna, "use_select_pick_depth", PROP_BOOLEAN, PROP_NONE);