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 voidextractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom) protected intgetSampleColor(long nanos) protected intgetSampleHeight(double nanos) protected StringtoDisplayString(double nanos) private static doubletoMilliseconds(double nanos) Methods inherited from class AbstractDebugChart
extractAdditionalSampleBars, extractMainSampleBar, extractRenderState, extractSampleBars, extractStringWithShade, 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
-
extractAdditionalLinesAndLabels
protected void extractAdditionalLinesAndLabels(GuiGraphicsExtractor graphics, int left, int width, int bottom) - Overrides:
extractAdditionalLinesAndLabelsin 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)
-