diff options
author | Dave Parks <davep@lindenlab.com> | 2022-11-29 09:15:02 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-11-29 09:15:02 -0600 |
commit | b5db671f7c28eb2a9f9974df1c34cf8c025fb8cc (patch) | |
tree | 4e575a103f4d8cc8873e24840ad2dd6804ead093 /indra/newview/llviewerwindow.cpp | |
parent | 159d4f9cd0537cab5a87a873a172c571d02d4afc (diff) |
SL-18682 WIP -- Add debug settings that aid in emulating low end hardware.
Diffstat (limited to 'indra/newview/llviewerwindow.cpp')
-rw-r--r-- | indra/newview/llviewerwindow.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 88058d1137..5bbb18ed30 100644 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -1878,6 +1878,11 @@ LLViewerWindow::LLViewerWindow(const Params& p) U32 fsaa_samples) */ // create window + + U32 max_core_count = gSavedSettings.getU32("EmulateCoreCount"); + U32 max_vram = gSavedSettings.getU32("RenderMaxVRAMBudget"); + F32 max_gl_version = gSavedSettings.getF32("RenderMaxOpenGLVersion"); + mWindow = LLWindowManager::createWindow(this, p.title, p.name, p.x, p.y, p.width, p.height, 0, p.fullscreen, @@ -1885,7 +1890,10 @@ LLViewerWindow::LLViewerWindow(const Params& p) gSavedSettings.getBOOL("RenderVSyncEnable"), !gHeadlessClient, p.ignore_pixel_depth, - 0); //don't use window level anti-aliasing + 0, + max_core_count, + max_vram, + max_gl_version); //don't use window level anti-aliasing if (NULL == mWindow) { |