diff options
author | Jonathan "Geenz" Goodman <geenz@lindenlab.com> | 2024-02-01 10:59:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-01 10:59:25 -0800 |
commit | 78b57a4bf2ee5205a1c064e7390f7bf04475db5f (patch) | |
tree | 6e4b6e5b6bae2b64236c725c57e4d6ebc0a33a90 /indra/newview/llviewerdisplay.cpp | |
parent | a4225663ac3feb641fb8fb416889fd46b52763f5 (diff) | |
parent | 78140786ce4a89a4ee252dabc74e3a28461e9c15 (diff) |
Merge pull request #717 from secondlife/geenz/mirror-stuttering
#689 Fix for mirror stuttering.
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r-- | indra/newview/llviewerdisplay.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index 6261f62fbe..1d168de80d 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -656,6 +656,14 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) if (!gDisconnected) { + // Render mirrors and associated hero probes before we render the rest of the scene. + // This ensures the scene state in the hero probes are exactly the same as the rest of the scene before we render it. + if (gPipeline.RenderMirrors && !gSnapshot) + { + LL_PROFILE_ZONE_NAMED_CATEGORY_DISPLAY("Update hero probes"); + gPipeline.mHeroProbeManager.update(); + } + LL_PROFILE_ZONE_NAMED_CATEGORY_DISPLAY("display - 1"); LLAppViewer::instance()->pingMainloopTimeout("Display:Update"); if (gPipeline.hasRenderType(LLPipeline::RENDER_TYPE_HUD)) @@ -696,7 +704,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) } gPipeline.updateGL(); - + stop_glerror(); LLAppViewer::instance()->pingMainloopTimeout("Display:Cull"); |