From 0e954a9afd7cc300bdd4cadfc25baa7f2607e5a4 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Wed, 9 Mar 2022 12:48:52 -0600 Subject: SL-16972 Per feedback from Ansariel, only bump up max heap size on 64-bit builds. --- indra/newview/app_settings/settings.xml | 15 +++++++++++++-- indra/newview/llappviewer.cpp | 9 ++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index ebf9bfcfe8..17071d4a65 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -6481,13 +6481,24 @@ MaxHeapSize Comment - Maximum heap size (GB) + Maximum heap size on 32-bit builds (GB) Persist 1 Type F32 Value - 4.0 + 1.6 + + MaxHeapSize64 + + Comment + Maximum heap size on 64-bit builds (GB) + Persist + 1 + Type + F32 + Value + 16.0 MaxPersistentNotifications diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 66c44ef6a6..61fc693b99 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1309,10 +1309,13 @@ void LLAppViewer::initMaxHeapSize() //------------------------------------------------------------------------------------------ //currently SL is built under 32-bit setting, we set its max heap size no more than 1.6 GB. - //F32 max_heap_size_gb = llmin(1.6f, (F32)gSavedSettings.getF32("MaxHeapSize")) ; - F32Gigabytes max_heap_size_gb = (F32Gigabytes)gSavedSettings.getF32("MaxHeapSize") ; + #ifndef LL_X86_64 + F32Gigabytes max_heap_size_gb = (F32Gigabytes)gSavedSettings.getF32("MaxHeapSize") ; +#else + F32Gigabytes max_heap_size_gb = (F32Gigabytes)gSavedSettings.getF32("MaxHeapSize64"); +#endif - LLMemory::initMaxHeapSizeGB(max_heap_size_gb); + LLMemory::initMaxHeapSizeGB(max_heap_size_gb); } static LLTrace::BlockTimerStatHandle FTM_MESSAGES("System Messages"); -- cgit v1.2.3