summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerthrottle.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llviewerthrottle.h')
-rw-r--r--indra/newview/llviewerthrottle.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llviewerthrottle.h b/indra/newview/llviewerthrottle.h
index 28a24d04fc..7ff0a7d1f0 100644
--- a/indra/newview/llviewerthrottle.h
+++ b/indra/newview/llviewerthrottle.h
@@ -64,18 +64,22 @@ public:
void save() const;
void sendToSim() const;
+ static F32 getMaxBandwidthKbps();
F32 getMaxBandwidth()const { return mMaxBandwidth; }
F32 getCurrentBandwidth() const { return mCurrentBandwidth; }
void updateDynamicThrottle();
void resetDynamicThrottle();
+ void setBufferLoadRate(F32 rate) { mBufferLoadRate = llmax(mBufferLoadRate, rate); }
+
LLViewerThrottleGroup getThrottleGroup(const F32 bandwidth_kbps);
static const std::string sNames[TC_EOF];
protected:
- F32 mMaxBandwidth;
- F32 mCurrentBandwidth;
+ F32 mMaxBandwidth; // bps
+ F32 mCurrentBandwidth; // bps
+ F32 mBufferLoadRate = 0;
LLViewerThrottleGroup mCurrent;