#include <llviewerthrottle.h>

Public Member Functions | |
| LLViewerThrottle () | |
| void | setMaxBandwidth (F32 kbits_per_second, BOOL from_event=FALSE) |
| void | load () |
| void | save () const |
| void | sendToSim () const |
| F32 | getMaxBandwidth () const |
| F32 | getCurrentBandwidth () const |
| void | updateDynamicThrottle () |
| void | resetDynamicThrottle () |
| LLViewerThrottleGroup | getThrottleGroup (const F32 bandwidth_kbps) |
Static Public Attributes | |
| static const char * | sNames [TC_EOF] |
Protected Attributes | |
| F32 | mMaxBandwidth |
| F32 | mCurrentBandwidth |
| LLViewerThrottleGroup | mCurrent |
| std::vector < LLViewerThrottleGroup > | mPresets |
| LLFrameTimer | mUpdateTimer |
| F32 | mThrottleFrac |
Definition at line 61 of file llviewerthrottle.h.
| LLViewerThrottle::LLViewerThrottle | ( | ) |
Definition at line 200 of file llviewerthrottle.cpp.
References BW_PRESET_1000, BW_PRESET_300, BW_PRESET_50, BW_PRESET_500, and mPresets.
Definition at line 213 of file llviewerthrottle.cpp.
References gAgent, LLAgent::getRegion(), gSavedSettings, load(), sendToSim(), and LLControlGroup::setF32().
Referenced by handleBandwidthChanged(), LLBPSListener::handleEvent(), and idle_startup().


| void LLViewerThrottle::load | ( | ) |
Definition at line 227 of file llviewerthrottle.cpp.
References LLViewerThrottleGroup::dump(), LLControlGroup::getF32(), gSavedSettings, mCurrent, mMaxBandwidth, and resetDynamicThrottle().
Referenced by idle_startup(), and setMaxBandwidth().


| void LLViewerThrottle::save | ( | ) | const |
Definition at line 235 of file llviewerthrottle.cpp.
References gSavedSettings, mMaxBandwidth, and LLControlGroup::setF32().

| void LLViewerThrottle::sendToSim | ( | ) | const |
Definition at line 241 of file llviewerthrottle.cpp.
References mCurrent, and LLViewerThrottleGroup::sendToSim().
Referenced by process_agent_movement_complete(), and setMaxBandwidth().


| F32 LLViewerThrottle::getMaxBandwidth | ( | ) | const [inline] |
Definition at line 72 of file llviewerthrottle.h.
References mMaxBandwidth.
Referenced by idle_startup(), LLStatusBar::refresh(), and LLViewerStats::updateFrameStats().

| F32 LLViewerThrottle::getCurrentBandwidth | ( | ) | const [inline] |
Definition at line 73 of file llviewerthrottle.h.
References mCurrentBandwidth.
Referenced by LLViewerStats::updateFrameStats().

| void LLViewerThrottle::updateDynamicThrottle | ( | ) |
Definition at line 302 of file llviewerthrottle.cpp.
References DYNAMIC_UPDATE_DURATION, EASE_THROTTLE_THRESHOLD, LLFrameTimer::getElapsedTimeF32(), LLSingleton< LLViewerStats >::getInstance(), getThrottleGroup(), llendl, llinfos, llmax(), llmin(), MAX_BANDWIDTH, MAX_FRACTIONAL, mCurrent, mCurrentBandwidth, MIN_BANDWIDTH, MIN_FRACTIONAL, mMaxBandwidth, mThrottleFrac, mUpdateTimer, LLFrameTimer::reset(), LLViewerThrottleGroup::sendToSim(), STEP_FRACTIONAL, and TIGHTEN_THROTTLE_THRESHOLD.
Referenced by LLAppViewer::idleNetwork().


| void LLViewerThrottle::resetDynamicThrottle | ( | ) |
Definition at line 294 of file llviewerthrottle.cpp.
References getThrottleGroup(), MAX_FRACTIONAL, mCurrent, mCurrentBandwidth, mMaxBandwidth, and mThrottleFrac.
Referenced by load().


| LLViewerThrottleGroup LLViewerThrottle::getThrottleGroup | ( | const F32 | bandwidth_kbps | ) |
Definition at line 247 of file llviewerthrottle.cpp.
References LLViewerThrottleGroup::getTotal(), llclamp(), MAX_BANDWIDTH, MIN_BANDWIDTH, mPresets, and S32.
Referenced by resetDynamicThrottle(), and updateDynamicThrottle().


const char * LLViewerThrottle::sNames [static] |
Initial value:
{
"Resend",
"Land",
"Wind",
"Cloud",
"Task",
"Texture",
"Asset"
}
Definition at line 80 of file llviewerthrottle.h.
Referenced by LLViewerThrottleGroup::dump().
F32 LLViewerThrottle::mMaxBandwidth [protected] |
Definition at line 82 of file llviewerthrottle.h.
Referenced by getMaxBandwidth(), load(), resetDynamicThrottle(), save(), and updateDynamicThrottle().
F32 LLViewerThrottle::mCurrentBandwidth [protected] |
Definition at line 83 of file llviewerthrottle.h.
Referenced by getCurrentBandwidth(), resetDynamicThrottle(), and updateDynamicThrottle().
LLViewerThrottleGroup LLViewerThrottle::mCurrent [protected] |
Definition at line 85 of file llviewerthrottle.h.
Referenced by load(), resetDynamicThrottle(), sendToSim(), and updateDynamicThrottle().
std::vector<LLViewerThrottleGroup> LLViewerThrottle::mPresets [protected] |
Definition at line 87 of file llviewerthrottle.h.
Referenced by getThrottleGroup(), and LLViewerThrottle().
LLFrameTimer LLViewerThrottle::mUpdateTimer [protected] |
F32 LLViewerThrottle::mThrottleFrac [protected] |
Definition at line 90 of file llviewerthrottle.h.
Referenced by resetDynamicThrottle(), and updateDynamicThrottle().
1.5.5