diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-10-04 00:01:51 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-10-04 00:01:51 +0300 |
commit | 5d7b1b09ff195611548bababf36d412ef76ed924 (patch) | |
tree | 812ee9c00133ec5b01fe0bb8e00ab33558488e10 | |
parent | 5566f28b039e2f3999e397a26243707affc80991 (diff) |
MacOS build fix
-rw-r--r-- | indra/newview/llaisapi.cpp | 4 | ||||
-rw-r--r-- | indra/newview/llaisapi.h | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp index b7d0b1ef1a..17e1a27934 100644 --- a/indra/newview/llaisapi.cpp +++ b/indra/newview/llaisapi.cpp @@ -1036,7 +1036,7 @@ AISUpdate::AISUpdate(const LLSD& update, AISAPI::COMMAND_TYPE type, const LLSD& mFetchDepth = request_body["depth"].asInteger(); } - mTimer.setTimerExpirySec(EXPIRY_SECONDS_LIVE); + mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS); mTimer.start(); parseUpdate(update); } @@ -1062,7 +1062,7 @@ void AISUpdate::checkTimeout() { llcoro::suspend(); LLCoros::checkStop(); - mTimer.setTimerExpirySec(EXPIRY_SECONDS_LIVE); + mTimer.setTimerExpirySec(AIS_EXPIRY_SECONDS); } } diff --git a/indra/newview/llaisapi.h b/indra/newview/llaisapi.h index 0fdf4a0b74..f254f21e42 100644 --- a/indra/newview/llaisapi.h +++ b/indra/newview/llaisapi.h @@ -130,10 +130,9 @@ private: void clearParseResults(); void checkTimeout(); - // Debug is very log-heavy, give it more time or it will take forever to process - // Todo: find a way to make throttle static isntead of per-request - const F32 EXPIRY_SECONDS_DEBUG = 1.f; - const F32 EXPIRY_SECONDS_LIVE = 0.008f; + // Fetch can return large packets of data, throttle it to not cause lags + // Todo: make throttle work over all fetch requests isntead of per-request + const F32 AIS_EXPIRY_SECONDS = 0.008f; typedef std::map<LLUUID,S32> uuid_int_map_t; uuid_int_map_t mCatDescendentDeltas; |