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 compilation
compilations - number of actual graph compilations, including bypassed requests
bypasses - number of compilations while a view transition was active
reusedLastFrame - whether the latest graph request reused its compilation
retainedGraphNodes - 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 Details

  • Constructor Details

    • GuiCompositorCacheStats

      public GuiCompositorCacheStats(long hits, long compilations, long bypasses, boolean reusedLastFrame, int retainedGraphNodes)
      Creates an instance of a GuiCompositorCacheStats record class.
      Parameters:
      hits - the value for the hits record component
      compilations - the value for the compilations record component
      bypasses - the value for the bypasses record component
      reusedLastFrame - the value for the reusedLastFrame record component
      retainedGraphNodes - the value for the retainedGraphNodes record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hits

      public long hits()
      Returns the value of the hits record component.
      Returns:
      the value of the hits record component
    • compilations

      public long compilations()
      Returns the value of the compilations record component.
      Returns:
      the value of the compilations record component
    • bypasses

      public long bypasses()
      Returns the value of the bypasses record component.
      Returns:
      the value of the bypasses record component
    • reusedLastFrame

      public boolean reusedLastFrame()
      Returns the value of the reusedLastFrame record component.
      Returns:
      the value of the reusedLastFrame record component
    • retainedGraphNodes

      public int retainedGraphNodes()
      Returns the value of the retainedGraphNodes record component.
      Returns:
      the value of the retainedGraphNodes record component