diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-17 16:02:12 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-17 16:02:12 +0300 |
commit | fccb42c41f89d64bf0c7ebd75d315adba4a9a927 (patch) | |
tree | 3f02e6d2daca4d3b96248b04d6c955021978073c /source/blender/blenloader/intern | |
parent | 34d67601b716046cf15f3e808a92bc91d0af804f (diff) |
Fix T63981: Factory default memory cache limit is 4096 MB (32bit builds)
very straightforward: initialize default to the same hard limit as the
RNA properties.
Annoying part is that it's not trivial to make RNA to use same BLI functions,
so leaving that behind for now.
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r-- | source/blender/blenloader/intern/versioning_defaults.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c index 61623a0cade..0e5e37e54a9 100644 --- a/source/blender/blenloader/intern/versioning_defaults.c +++ b/source/blender/blenloader/intern/versioning_defaults.c @@ -96,7 +96,7 @@ void BLO_update_defaults_userpref_blend(void) /* Only enable tooltips translation by default, * without actually enabling translation itself, for now. */ U.transopts = USER_TR_TOOLTIPS; - U.memcachelimit = 4096; + U.memcachelimit = min_ii(BLI_system_memory_max_in_megabytes_int() / 2, 4096); /* Auto perspective. */ U.uiflag |= USER_AUTOPERSP; |