summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-07-23 22:18:47 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-07-24 03:13:17 +0300
commitf80d62e6b202bb49a5b958183508854bae6d868f (patch)
treea50010affb10aae6c58359b081c6b5bfab3f9e7d /indra/newview/llappviewer.cpp
parent9df3b30479e35f0a301d8871582b95e4e2caab7c (diff)
#3851 Increase cache size
Increases default to 8GB and maximum to 32GB. Viewer now supports 2K textures which require more space, so altered disk cache vs textures space a little. Made spinner a bit wider to properly fit whole cache string.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 0581cbbee4..a896b210f4 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -4282,8 +4282,8 @@ bool LLAppViewer::initCache()
const std::string cache_dir_name = gSavedSettings.getString("DiskCacheDirName");
const U32 MB = 1024 * 1024;
- const uintmax_t MIN_CACHE_SIZE = 256 * MB;
- const uintmax_t MAX_CACHE_SIZE = 9984ll * MB;
+ const uintmax_t MIN_CACHE_SIZE = 896 * MB;
+ const uintmax_t MAX_CACHE_SIZE = 32768ll * MB;
const uintmax_t setting_cache_total_size = uintmax_t(gSavedSettings.getU32("CacheSize")) * MB;
const uintmax_t cache_total_size = llclamp(setting_cache_total_size, MIN_CACHE_SIZE, MAX_CACHE_SIZE);
const F64 disk_cache_percent = gSavedSettings.getF32("DiskCachePercentOfTotal");