Record Class GuiCompositorCacheStats
java.lang.Object
java.lang.Record
com.render.api.gui.GuiCompositorCacheStats
- Record Components:
hits- number of graph requests that reused the retained compilationcompilations- number of actual graph compilations, including bypassed requestsbypasses- number of compilations while a view transition was activereusedLastFrame- whether the latest graph request reused its compilationretainedGraphNodes- number of nodes in the one retained graph, or zero when no graph is retained
public record GuiCompositorCacheStats(long hits, long compilations, long bypasses, boolean reusedLastFrame, int retainedGraphNodes)
extends Record
Cumulative structural compositor-cache activity for one managed GUI runtime or one managed HUD element.
A reused graph retains immutable nodes and resolved effect transforms. Component paint, input hit testing, live backdrop capture, and GPU effect execution still run. These counters do not measure cached pixels or GPU work.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiCompositorCacheStats(long hits, long compilations, long bypasses, boolean reusedLastFrame, int retainedGraphNodes) Creates an instance of aGuiCompositorCacheStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbypasses()Returns the value of thebypassesrecord component.longReturns the value of thecompilationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longhits()Returns the value of thehitsrecord component.intReturns the value of theretainedGraphNodesrecord component.booleanReturns the value of thereusedLastFramerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
GuiCompositorCacheStats
public GuiCompositorCacheStats(long hits, long compilations, long bypasses, boolean reusedLastFrame, int retainedGraphNodes) Creates an instance of aGuiCompositorCacheStatsrecord class.- Parameters:
hits- the value for thehitsrecord componentcompilations- the value for thecompilationsrecord componentbypasses- the value for thebypassesrecord componentreusedLastFrame- the value for thereusedLastFramerecord componentretainedGraphNodes- the value for theretainedGraphNodesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
hits
-
compilations
public long compilations()Returns the value of thecompilationsrecord component.- Returns:
- the value of the
compilationsrecord component
-
bypasses
-
reusedLastFrame
public boolean reusedLastFrame()Returns the value of thereusedLastFramerecord component.- Returns:
- the value of the
reusedLastFramerecord component
-
retainedGraphNodes
public int retainedGraphNodes()Returns the value of theretainedGraphNodesrecord component.- Returns:
- the value of the
retainedGraphNodesrecord component
-