diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-04-19 19:52:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-04-19 19:52:38 +0300 |
commit | 3368df4ab6eab69cc7aec30fccb2ac806c45bbe4 (patch) | |
tree | 715f82a4b6909f427e283b870199ea3d7b340c35 /source/blender/blenloader | |
parent | 7e4db169f2ab8dd62281f0b42a6f7e33be5f32d6 (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/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_userdef.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c index bf88eddc145..65a19ca80c1 100644 --- a/source/blender/blenloader/intern/versioning_userdef.c +++ b/source/blender/blenloader/intern/versioning_userdef.c @@ -496,6 +496,10 @@ void BLO_version_defaults_userpref_blend(Main *bmain, UserDef *userdef) */ { /* (keep this block even if it becomes empty). */ + if (userdef->vbotimeout == 0) { + userdef->vbocollectrate = 60; + userdef->vbotimeout = 120; + } } if (userdef->pixelsize == 0.0f) |