Class TpsDebugChart
java.lang.Object
net.minecraft.client.gui.components.debugchart.AbstractDebugChart
net.minecraft.client.gui.components.debugchart.TpsDebugChart
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intFields inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
CHART_HEIGHT, COLOR_GREY, font, LINE_WIDTH, sampleStorage -
Constructor Summary
ConstructorsConstructorDescriptionTpsDebugChart(Font font, SampleStorage sampleStorage, Supplier<Float> msptSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawAdditionalDimensions(GuiGraphics guiGraphics, int height, int x, int index) protected intgetSampleColor(long value) protected intgetSampleHeight(double value) protected longgetValueForAggregation(int index) protected voidrenderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int x, int width, int height) protected StringtoDisplayString(double value) private static doubletoMilliseconds(double value) Methods inherited from class net.minecraft.client.gui.components.debugchart.AbstractDebugChart
drawChart, drawDimensions, drawMainDimension, drawStringWithShade, getSampleColor, getWidth
-
Field Details
-
RED
private static final int RED- See Also:
-
YELLOW
private static final int YELLOW- See Also:
-
GREEN
private static final int GREEN- See Also:
-
TICK_METHOD_COLOR
private static final int TICK_METHOD_COLOR- See Also:
-
TASK_COLOR
private static final int TASK_COLOR- See Also:
-
OTHER_COLOR
private static final int OTHER_COLOR- See Also:
-
msptSupplier
-
-
Constructor Details
-
TpsDebugChart
-
-
Method Details
-
renderAdditionalLinesAndLabels
protected void renderAdditionalLinesAndLabels(GuiGraphics guiGraphics, int x, int width, int height) - Overrides:
renderAdditionalLinesAndLabelsin classAbstractDebugChart
-
drawAdditionalDimensions
- Overrides:
drawAdditionalDimensionsin classAbstractDebugChart
-
getValueForAggregation
protected long getValueForAggregation(int index) - Overrides:
getValueForAggregationin classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayStringin classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double value) - Specified by:
getSampleHeightin classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long value) - Specified by:
getSampleColorin classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double value)
-