summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-05-17 19:49:30 -0700
committerGraham Linden <graham@lindenlab.com>2019-05-17 19:49:30 -0700
commitfa7547c6ebbad5e227613e76927db6e20f34624c (patch)
treed7efeb0bd721245b6e147ac3d28f560633092299
parent7f3f69002b7c7612fc89a3c5c571066a34e5baff (diff)
SL-10625
Revert perf optimization to not wait for occlusion queries until there's a good chance they're complete because Intel HD driver versions between 6471 and 6577 are broken and hang forever (6709 and 6861 are fixed).
-rw-r--r--indra/newview/llvieweroctree.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llvieweroctree.cpp b/indra/newview/llvieweroctree.cpp
index 459ee1f35c..6365df09e1 100644
--- a/indra/newview/llvieweroctree.cpp
+++ b/indra/newview/llvieweroctree.cpp
@@ -1110,10 +1110,9 @@ void LLOcclusionCullingGroup::checkOcclusion()
static LLCachedControl<bool> wait_for_query(gSavedSettings, "RenderSynchronousOcclusion", true);
- U32 target_read_frame = (gFrameCount > 2) ? (gFrameCount - 2) : 0;
- if (wait_for_query && (mOcclusionIssued[LLViewerCamera::sCurCameraID] < target_read_frame))
+ if (wait_for_query && mOcclusionIssued[LLViewerCamera::sCurCameraID] < gFrameCount)
{ //query was issued last frame, wait until it's available
- S32 max_loop = 64;
+ S32 max_loop = 1024;
LL_RECORD_BLOCK_TIME(FTM_OCCLUSION_WAIT);
while (!available && max_loop-- > 0)
{