LLViewerThrottle Class Reference

#include <llviewerthrottle.h>

Collaboration diagram for LLViewerThrottle:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Definition at line 61 of file llviewerthrottle.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void LLViewerThrottle::setMaxBandwidth ( F32  kbits_per_second,
BOOL  from_event = FALSE 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewerThrottle::save (  )  const

Definition at line 235 of file llviewerthrottle.cpp.

References gSavedSettings, mMaxBandwidth, and LLControlGroup::setF32().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

F32 LLViewerThrottle::getMaxBandwidth (  )  const [inline]

Definition at line 72 of file llviewerthrottle.h.

References mMaxBandwidth.

Referenced by idle_startup(), LLStatusBar::refresh(), and LLViewerStats::updateFrameStats().

Here is the caller graph for this function:

F32 LLViewerThrottle::getCurrentBandwidth (  )  const [inline]

Definition at line 73 of file llviewerthrottle.h.

References mCurrentBandwidth.

Referenced by LLViewerStats::updateFrameStats().

Here is the caller graph for this function:

void LLViewerThrottle::updateDynamicThrottle (  ) 

void LLViewerThrottle::resetDynamicThrottle (  ) 

Definition at line 294 of file llviewerthrottle.cpp.

References getThrottleGroup(), MAX_FRACTIONAL, mCurrent, mCurrentBandwidth, mMaxBandwidth, and mThrottleFrac.

Referenced by load().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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().

Definition at line 85 of file llviewerthrottle.h.

Referenced by load(), resetDynamicThrottle(), sendToSim(), and updateDynamicThrottle().

Definition at line 87 of file llviewerthrottle.h.

Referenced by getThrottleGroup(), and LLViewerThrottle().

Definition at line 89 of file llviewerthrottle.h.

Referenced by updateDynamicThrottle().

Definition at line 90 of file llviewerthrottle.h.

Referenced by resetDynamicThrottle(), and updateDynamicThrottle().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:34:11 2008 for SecondLife by  doxygen 1.5.5