summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-06-19 01:33:38 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-06-19 15:55:33 +0300
commit550ed6ded17531aff5cc922ec60763bb508dcc0c (patch)
treefe738f9d3f030feb463f4992cd0b6a6ac294e630 /indra
parent02c7ee34d4640bef3204ccd4207cfae1fd2a9e27 (diff)
p#626 Freeze detection on gl oclusion logic
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llvieweroctree.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llvieweroctree.cpp b/indra/newview/llvieweroctree.cpp
index b1673d2232..3b79666f7c 100644
--- a/indra/newview/llvieweroctree.cpp
+++ b/indra/newview/llvieweroctree.cpp
@@ -1143,6 +1143,8 @@ void LLOcclusionCullingGroup::checkOcclusion()
GLuint query_result; // Will be # samples drawn, or a boolean depending on mHasOcclusionQuery2 (both are type GLuint)
{
LL_PROFILE_ZONE_NAMED_CATEGORY_OCTREE("co - query result");
+ // Ping watchdog before a blocking GL_QUERY_RESULT GPU call
+ LLAppViewer::instance()->pingMainloopTimeout("Display:CullQueryResult");
glGetQueryObjectuiv(mOcclusionQuery[LLViewerCamera::sCurCameraID], GL_QUERY_RESULT, &query_result);
}
#if LL_TRACK_PENDING_OCCLUSION_QUERIES