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/blenlib/BLI_system.h | |
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/blenlib/BLI_system.h')
-rw-r--r-- | source/blender/blenlib/BLI_system.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_system.h b/source/blender/blenlib/BLI_system.h index 93ad0e1e70f..f4c0399e959 100644 --- a/source/blender/blenlib/BLI_system.h +++ b/source/blender/blenlib/BLI_system.h @@ -41,6 +41,10 @@ char *BLI_cpu_brand_string(void); */ void BLI_hostname_get(char *buffer, size_t bufsize); +/* Get maximum addressable memory in megabytes. */ +size_t BLI_system_memory_max_in_megabytes(void); +int BLI_system_memory_max_in_megabytes_int(void); + /* getpid */ #ifdef WIN32 # define BLI_SYSTEM_PID_H <process.h> |