Temporarily add old bandwidth throttle method back.

This commit is contained in:
Aleric Inglewood
2013-04-08 22:56:57 +02:00
parent 748d339ee6
commit 3af89dd685
3 changed files with 6 additions and 8 deletions

View File

@@ -1271,7 +1271,8 @@ bool LLTextureFetchWorker::doWork(S32 param)
}
// Let AICurl decide if we can process more HTTP requests at the moment or not.
if (!AIPerHostRequestQueue::wantsMoreHTTPRequestsFor(mPerHostPtr))
static const LLCachedControl<F32> throttle_bandwidth("HTTPThrottleBandwidth", 2000);
if (!AIPerHostRequestQueue::wantsMoreHTTPRequestsFor(mPerHostPtr, mFetcher->getTextureBandwidth() > throttle_bandwidth))
{
return false ; //wait.
}