Skip to content
Snippets Groups Projects
Commit 9fd21189 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

More attempts to reduce crashes

parent e9be93f3
No related branches found
No related tags found
No related merge requests found
......@@ -4380,7 +4380,7 @@ bool LLAppViewer::initCache()
// Init the texture cache
const S32 MB = 1024 * 1024;
const S64 MIN_CACHE_SIZE = 512 * MB;
const S64 MAX_CACHE_SIZE = 9984ll * MB;
const S64 MAX_CACHE_SIZE = 8192ll * MB;
S64 texture_cache_size = (S64)(gSavedSettings.getU32("TextureCacheSize")) * MB;
texture_cache_size = llclamp(texture_cache_size, MIN_CACHE_SIZE, MAX_CACHE_SIZE);
......
......@@ -62,10 +62,10 @@
height="15"
increment="64"
initial_value="1024"
label="Texture Cache size (1024 - 9984MB)"
label="Texture Cache size (1024 - 8192MB)"
layout="topleft"
left="20"
max_val="9984"
max_val="8192"
min_val="1024"
top_pad="10"
name="texture_cache_size"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment