diff options
| author | mobserveur <mobserveur@gmail.com> | 2025-09-16 16:46:51 +0200 |
|---|---|---|
| committer | mobserveur <mobserveur@gmail.com> | 2025-09-16 16:46:51 +0200 |
| commit | 7aa203297435674b7b598eb2764a6db7edbb4bc3 (patch) | |
| tree | 26a1cd40dc4205ab5640f9066d5c768583c8226a /indra/newview/llviewerdisplay.cpp | |
| parent | 56c5cfa9fd9685180e0ba90625dfdc5475d0dc9a (diff) | |
Fixes the slow down related to the attached huds rendering
This commit fixes the long time issue with attached huds rendering,
which was causing important slow down with certain combinations of
post processing settings.
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
| -rw-r--r-- | indra/newview/llviewerdisplay.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index ac0147002e..8f5585b6b1 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -1388,7 +1388,7 @@ void render_hud_attachments() gPipeline.stateSort(hud_cam, result); - gPipeline.renderGeomPostDeferred(hud_cam); + gPipeline.renderGeomPostDeferredOnlyHud(hud_cam); LLSpatialGroup::sNoDelete = false; //gPipeline.clearReferences(); @@ -1533,6 +1533,7 @@ void render_ui(F32 zoom_factor, int subfield) { LLGLState::checkStates(); + gPipeline.disableLights(); LL_PROFILE_ZONE_NAMED_CATEGORY_UI("HUD"); render_hud_elements(); @@ -1552,7 +1553,8 @@ void render_ui(F32 zoom_factor, int subfield) { if (!gDisconnected) { - LL_PROFILE_ZONE_NAMED_CATEGORY_UI("UI 3D"); //LL_RECORD_BLOCK_TIME(FTM_RENDER_UI_3D); + LL_PROFILE_ZONE_NAMED_CATEGORY_UI("UI 3D"); + LL_RECORD_BLOCK_TIME(FTM_RENDER_UI_3D); LLGLState::checkStates(); render_ui_3d(); LLGLState::checkStates(); @@ -1565,7 +1567,8 @@ void render_ui(F32 zoom_factor, int subfield) if (render_ui) { - LL_PROFILE_ZONE_NAMED_CATEGORY_UI("UI 2D"); //LL_RECORD_BLOCK_TIME(FTM_RENDER_UI_2D); + LL_PROFILE_ZONE_NAMED_CATEGORY_UI("UI 2D"); + LL_RECORD_BLOCK_TIME(FTM_RENDER_UI_2D); LLHUDObject::renderAll(); render_ui_2d(); } |
