diff options
author | mobserveur <mobserveur@gmail.co[alias]> | 2024-11-06 01:28:26 +0100 |
---|---|---|
committer | mobserveur <mobserveur@gmail.co[alias]> | 2024-11-06 01:28:26 +0100 |
commit | 569fc58358a49d6eb8007ea987969c449db43834 (patch) | |
tree | d39e6870abc0a487b47774bbab7a6c7fca0ffd35 /indra/newview/llappviewer.cpp | |
parent | 76d31ddf9a4f8bdd94dd86053dd1296912f9c9ac (diff) |
Re-introduction of the "smoothie" optimization
This commit replaces the LL optimizations for Macs with Apple gpus by the "Smoothie" optimizations, and replaces the tuning panel with a simple fps limiter panel.
This should fix the crash occurring in extraFPS when the viewer goes in the background.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 41cd05f828..c12cb74b7c 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1388,7 +1388,8 @@ bool LLAppViewer::frame() bool LLAppViewer::doFrame() { - static LLCachedControl<U32> fpsLimitMaxFps(gSavedSettings, "MaxFPS", 0); + U32 fpsLimitMaxFps = (U32)gSavedSettings.getU32("MaxFPS"); + if(fpsLimitMaxFps>120) fpsLimitMaxFps=0; using TimePoint = std::chrono::steady_clock::time_point; |