summaryrefslogtreecommitdiff
path: root/indra/newview/llaisapi.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-03-12 19:09:06 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2026-03-12 19:09:06 +0200
commit82d018806a79553cc53a91027760eed5282f2d6b (patch)
tree06ccac7daa2abbb3ec39ff34c1ce161dfc4e823f /indra/newview/llaisapi.cpp
parent28958ab7ae368d53b21888d178a9eb04ac6d82d2 (diff)
parent18db816ef7552785ffa26d6d0397efbb341a999f (diff)
Merge branch 'main' into marchcat/slua-26.1
# Conflicts: # autobuild.xml # indra/llwindow/llwindowwin32.cpp # indra/newview/llappviewer.cpp # indra/newview/llinventorygallerymenu.cpp
Diffstat (limited to 'indra/newview/llaisapi.cpp')
-rw-r--r--indra/newview/llaisapi.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp
index 1da1647fe8..9c76f56ef3 100644
--- a/indra/newview/llaisapi.cpp
+++ b/indra/newview/llaisapi.cpp
@@ -1060,7 +1060,12 @@ void AISUpdate::checkTimeout()
{
if (mTimer.hasExpired())
{
- llcoro::suspend();
+ // If we are taking too long, don't starve other tasks,
+ // yield to mainloop.
+ // If we use normal suspend(), there will be a chance of
+ // waking up from other suspends, before main coro had
+ // a chance, so wait for a frame tick instead.
+ llcoro::suspendUntilNextFrame();
LLCoros::checkStop();
mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS);
}