public final class GameMetrics extends java.lang.Object implements IRenderable
Modifier and Type | Class and Description |
---|---|
static class |
GameMetrics.RenderInfo |
class |
GameMetrics.RenderMetrics |
Modifier and Type | Method and Description |
---|---|
float |
getDownStreamInBytes() |
int |
getFramesPerSecond() |
int |
getPackagesReceived() |
int |
getPackagesSent() |
long |
getPing() |
java.awt.Color |
getRenderColor() |
long |
getUpdatesPerSecond() |
float |
getUpStreamInBytes() |
float |
getUsedMemory() |
void |
packageReceived(long size) |
void |
packageSent(long size) |
void |
render(java.awt.Graphics2D g) |
void |
setEstimatedMaxFramesPerSecond(int maxFrames) |
void |
setFramesPerSecond(int currentFramesPerSecond) |
void |
setPing(long ping) |
void |
setRenderColor(java.awt.Color color)
Sets the color that is used when rendering the metrics if
cl_showGameMetrics = true . |
void |
setUpdatesPerSecond(int updatesPerSecond) |
void |
trackRenderTime(java.lang.String name,
double renderTime,
GameMetrics.RenderInfo... infos) |
public float getDownStreamInBytes()
public int getFramesPerSecond()
public int getPackagesReceived()
public int getPackagesSent()
public long getPing()
public long getUpdatesPerSecond()
public float getUpStreamInBytes()
public float getUsedMemory()
public java.awt.Color getRenderColor()
public void packageReceived(long size)
public void packageSent(long size)
public void trackRenderTime(java.lang.String name, double renderTime, GameMetrics.RenderInfo... infos)
public void render(java.awt.Graphics2D g)
render
in interface IRenderable
public void setFramesPerSecond(int currentFramesPerSecond)
public void setEstimatedMaxFramesPerSecond(int maxFrames)
public void setPing(long ping)
public void setUpdatesPerSecond(int updatesPerSecond)
public void setRenderColor(java.awt.Color color)
cl_showGameMetrics = true
.color
- The color for rendering the metrics.ClientConfiguration.showGameMetrics()
,
render(Graphics2D)