Space Engineers
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Sandbox.Game.Gui.MyHudNetgraph Class Reference

Classes

class  NetgraphLineData
 

Public Member Functions

 MyHudNetgraph ()
 
void UpdateNextBar (long byteCountReceived, long byteCountSent, List< Tuple< string, NetworkStat >> data)
 
void ClearNetgraph ()
 
NetgraphLineData GetNetgraphLineDataAtIndex (int i)
 
void GetProperFormatAndValueForBytes (float input, out float formattedValue, StringBuilder outFormat, bool perSecond=false)
 

Public Attributes

const int NUMBER_OF_VISIBLE_PACKETS = 1500
 
const int PACKET_SCALE_MAXIMUM = 25600
 
const int PACKET_SCALE_MINIMUM = 100
 
const float AVERAGE_SCALE_MAXIMUM = 20000.0f
 
const float AVERAGE_SCALE_MINIMUM = 100.0f
 
const float SCALE_CHANGE_DELAY = 3.0f
 
const int LINE_AVERAGE_COUNT = 30
 

Static Public Attributes

static readonly Vector2 OPTIMAL_LENGTH_BAR_NORMALIZED = new Vector2(0, 0.25f)
 
static readonly int PACKET_SCALE_MAXIMUM_MULTIPLIER = MathHelper.Log2(PACKET_SCALE_MAXIMUM / PACKET_SCALE_MINIMUM)
 
static readonly int AVERAGE_SCALE_MAXIMUM_MULTIPLIER = MathHelper.Log2((int)(AVERAGE_SCALE_MAXIMUM / AVERAGE_SCALE_MINIMUM))
 

Properties

int CurrentFirstIndex [get]
 
float AverageIncomingKBytes [get]
 
float AverageOutgoingKBytes [get]
 
long LastPacketBytesReceived [get]
 
long LastPacketBytesSent [get]
 
long UpdatesPerSecond [get, set]
 
long FramesPerSecond [get, set]
 
long Ping [get, set]
 
int CurrentPacketScaleMultiplier [get]
 
int CurrentAverageScaleMultiplier [get]
 
int CurrentPacketScaleMaximumValue [get]
 
float CurrentPacketScaleInvertedMaximumValue [get]
 
int CurrentPacketScaleMinimumValue [get]
 
float CurrentAverageScaleMaximumValue [get]
 
float CurrentAverageScaleInvertedMaximumValue [get]
 
float CurrentAverageScaleMinimumValue [get]
 

Detailed Description

Definition at line 11 of file MyHudNetgraph.cs.

Constructor & Destructor Documentation

Sandbox.Game.Gui.MyHudNetgraph.MyHudNetgraph ( )
inline

Definition at line 156 of file MyHudNetgraph.cs.

Member Function Documentation

void Sandbox.Game.Gui.MyHudNetgraph.ClearNetgraph ( )
inline

Definition at line 259 of file MyHudNetgraph.cs.

NetgraphLineData Sandbox.Game.Gui.MyHudNetgraph.GetNetgraphLineDataAtIndex ( int  i)
inline

Definition at line 274 of file MyHudNetgraph.cs.

void Sandbox.Game.Gui.MyHudNetgraph.GetProperFormatAndValueForBytes ( float  input,
out float  formattedValue,
StringBuilder  outFormat,
bool  perSecond = false 
)
inline

Definition at line 324 of file MyHudNetgraph.cs.

void Sandbox.Game.Gui.MyHudNetgraph.UpdateNextBar ( long  byteCountReceived,
long  byteCountSent,
List< Tuple< string, NetworkStat >>  data 
)
inline

Definition at line 170 of file MyHudNetgraph.cs.

Member Data Documentation

const float Sandbox.Game.Gui.MyHudNetgraph.AVERAGE_SCALE_MAXIMUM = 20000.0f

Definition at line 20 of file MyHudNetgraph.cs.

readonly int Sandbox.Game.Gui.MyHudNetgraph.AVERAGE_SCALE_MAXIMUM_MULTIPLIER = MathHelper.Log2((int)(AVERAGE_SCALE_MAXIMUM / AVERAGE_SCALE_MINIMUM))
static

Definition at line 22 of file MyHudNetgraph.cs.

const float Sandbox.Game.Gui.MyHudNetgraph.AVERAGE_SCALE_MINIMUM = 100.0f

Definition at line 21 of file MyHudNetgraph.cs.

const int Sandbox.Game.Gui.MyHudNetgraph.LINE_AVERAGE_COUNT = 30

Definition at line 27 of file MyHudNetgraph.cs.

const int Sandbox.Game.Gui.MyHudNetgraph.NUMBER_OF_VISIBLE_PACKETS = 1500

Definition at line 13 of file MyHudNetgraph.cs.

readonly Vector2 Sandbox.Game.Gui.MyHudNetgraph.OPTIMAL_LENGTH_BAR_NORMALIZED = new Vector2(0, 0.25f)
static

Definition at line 14 of file MyHudNetgraph.cs.

const int Sandbox.Game.Gui.MyHudNetgraph.PACKET_SCALE_MAXIMUM = 25600

Definition at line 17 of file MyHudNetgraph.cs.

readonly int Sandbox.Game.Gui.MyHudNetgraph.PACKET_SCALE_MAXIMUM_MULTIPLIER = MathHelper.Log2(PACKET_SCALE_MAXIMUM / PACKET_SCALE_MINIMUM)
static

Definition at line 19 of file MyHudNetgraph.cs.

const int Sandbox.Game.Gui.MyHudNetgraph.PACKET_SCALE_MINIMUM = 100

Definition at line 18 of file MyHudNetgraph.cs.

const float Sandbox.Game.Gui.MyHudNetgraph.SCALE_CHANGE_DELAY = 3.0f

Definition at line 24 of file MyHudNetgraph.cs.

Property Documentation

float Sandbox.Game.Gui.MyHudNetgraph.AverageIncomingKBytes
get

Definition at line 75 of file MyHudNetgraph.cs.

float Sandbox.Game.Gui.MyHudNetgraph.AverageOutgoingKBytes
get

Definition at line 81 of file MyHudNetgraph.cs.

float Sandbox.Game.Gui.MyHudNetgraph.CurrentAverageScaleInvertedMaximumValue
get

Definition at line 147 of file MyHudNetgraph.cs.

float Sandbox.Game.Gui.MyHudNetgraph.CurrentAverageScaleMaximumValue
get

Definition at line 142 of file MyHudNetgraph.cs.

float Sandbox.Game.Gui.MyHudNetgraph.CurrentAverageScaleMinimumValue
get

Definition at line 152 of file MyHudNetgraph.cs.

int Sandbox.Game.Gui.MyHudNetgraph.CurrentAverageScaleMultiplier
get

Definition at line 121 of file MyHudNetgraph.cs.

int Sandbox.Game.Gui.MyHudNetgraph.CurrentFirstIndex
get

Definition at line 70 of file MyHudNetgraph.cs.

float Sandbox.Game.Gui.MyHudNetgraph.CurrentPacketScaleInvertedMaximumValue
get

Definition at line 132 of file MyHudNetgraph.cs.

int Sandbox.Game.Gui.MyHudNetgraph.CurrentPacketScaleMaximumValue
get

Definition at line 127 of file MyHudNetgraph.cs.

int Sandbox.Game.Gui.MyHudNetgraph.CurrentPacketScaleMinimumValue
get

Definition at line 137 of file MyHudNetgraph.cs.

int Sandbox.Game.Gui.MyHudNetgraph.CurrentPacketScaleMultiplier
get

Definition at line 115 of file MyHudNetgraph.cs.

long Sandbox.Game.Gui.MyHudNetgraph.FramesPerSecond
getset

Definition at line 103 of file MyHudNetgraph.cs.

long Sandbox.Game.Gui.MyHudNetgraph.LastPacketBytesReceived
get

Definition at line 87 of file MyHudNetgraph.cs.

long Sandbox.Game.Gui.MyHudNetgraph.LastPacketBytesSent
get

Definition at line 92 of file MyHudNetgraph.cs.

long Sandbox.Game.Gui.MyHudNetgraph.Ping
getset

Definition at line 109 of file MyHudNetgraph.cs.

long Sandbox.Game.Gui.MyHudNetgraph.UpdatesPerSecond
getset

Definition at line 97 of file MyHudNetgraph.cs.


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