Class FpsDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.FpsDebugChart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final doubleFields inherited from class AbstractDebugChart
CHART_HEIGHT, font, LINE_WIDTH, sampleStorage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetSampleColor(long nanos) protected intgetSampleHeight(double nanos) protected voidrenderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) protected StringtoDisplayString(double nanos) private static doubletoMilliseconds(double nanos) Methods inherited from class AbstractDebugChart
drawAdditionalDimensions, drawChart, drawDimensions, drawMainDimension, drawStringWithShade, getFullHeight, getSampleColor, getValueForAggregation, getWidth
-
Field Details
-
CHART_TOP_FPS
private static final int CHART_TOP_FPS- See Also:
-
CHART_TOP_VALUE
private static final double CHART_TOP_VALUE- See Also:
-
-
Constructor Details
-
FpsDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics graphics, int left, int width, int bottom) - Overrides:
renderAdditionalLinesAndLabelsin classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayStringin classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double nanos) - Specified by:
getSampleHeightin classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long nanos) - Specified by:
getSampleColorin classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double nanos)
-