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 p_298557_, SampleStorage p_332350_, Supplier<Float> p_309657_) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawAdditionalDimensions(GuiGraphics p_330453_, int p_332124_, int p_334033_, int p_330538_) protected intgetSampleColor(long p_300761_) protected intgetSampleHeight(double p_299260_) protected longgetValueForAggregation(int p_335820_) protected voidrenderAdditionalLinesAndLabels(GuiGraphics p_297354_, int p_298051_, int p_298343_, int p_299488_) protected StringtoDisplayString(double p_301254_) private static doubletoMilliseconds(double p_300655_) 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 p_297354_, int p_298051_, int p_298343_, int p_299488_) - Overrides:
renderAdditionalLinesAndLabelsin classAbstractDebugChart
-
drawAdditionalDimensions
protected void drawAdditionalDimensions(GuiGraphics p_330453_, int p_332124_, int p_334033_, int p_330538_) - Overrides:
drawAdditionalDimensionsin classAbstractDebugChart
-
getValueForAggregation
protected long getValueForAggregation(int p_335820_) - Overrides:
getValueForAggregationin classAbstractDebugChart
-
toDisplayString
- Specified by:
toDisplayStringin classAbstractDebugChart
-
getSampleHeight
protected int getSampleHeight(double p_299260_) - Specified by:
getSampleHeightin classAbstractDebugChart
-
getSampleColor
protected int getSampleColor(long p_300761_) - Specified by:
getSampleColorin classAbstractDebugChart
-
toMilliseconds
private static double toMilliseconds(double p_300655_)
-