Record Class WorldRenderStats

java.lang.Object
java.lang.Record
com.render.api.world.WorldRenderStats

public record WorldRenderStats(long frameId, int extractedObjects, int visibleObjects, int culledObjects, int commands, long triangles, int instances, int drawSubmissions, int fallbackSubmissions, long extractionNanos, long submissionNanos) extends Record
Per-frame extraction and submission counters.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final WorldRenderStats
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    WorldRenderStats(long frameId, int extractedObjects, int visibleObjects, int culledObjects, int commands, long triangles, int instances, int drawSubmissions, int fallbackSubmissions, long extractionNanos, long submissionNanos)
    Creates an instance of a WorldRenderStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the commands record component.
    int
    Returns the value of the culledObjects record component.
    int
    Returns the value of the drawSubmissions record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the extractedObjects record component.
    long
    Returns the value of the extractionNanos record component.
    int
    Returns the value of the fallbackSubmissions record component.
    long
    Returns the value of the frameId record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the instances record component.
    long
    Returns the value of the submissionNanos record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the triangles record component.
    int
    Returns the value of the visibleObjects record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • WorldRenderStats

      public WorldRenderStats(long frameId, int extractedObjects, int visibleObjects, int culledObjects, int commands, long triangles, int instances, int drawSubmissions, int fallbackSubmissions, long extractionNanos, long submissionNanos)
      Creates an instance of a WorldRenderStats record class.
      Parameters:
      frameId - the value for the frameId record component
      extractedObjects - the value for the extractedObjects record component
      visibleObjects - the value for the visibleObjects record component
      culledObjects - the value for the culledObjects record component
      commands - the value for the commands record component
      triangles - the value for the triangles record component
      instances - the value for the instances record component
      drawSubmissions - the value for the drawSubmissions record component
      fallbackSubmissions - the value for the fallbackSubmissions record component
      extractionNanos - the value for the extractionNanos record component
      submissionNanos - the value for the submissionNanos 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.
    • frameId

      public long frameId()
      Returns the value of the frameId record component.
      Returns:
      the value of the frameId record component
    • extractedObjects

      public int extractedObjects()
      Returns the value of the extractedObjects record component.
      Returns:
      the value of the extractedObjects record component
    • visibleObjects

      public int visibleObjects()
      Returns the value of the visibleObjects record component.
      Returns:
      the value of the visibleObjects record component
    • culledObjects

      public int culledObjects()
      Returns the value of the culledObjects record component.
      Returns:
      the value of the culledObjects record component
    • commands

      public int commands()
      Returns the value of the commands record component.
      Returns:
      the value of the commands record component
    • triangles

      public long triangles()
      Returns the value of the triangles record component.
      Returns:
      the value of the triangles record component
    • instances

      public int instances()
      Returns the value of the instances record component.
      Returns:
      the value of the instances record component
    • drawSubmissions

      public int drawSubmissions()
      Returns the value of the drawSubmissions record component.
      Returns:
      the value of the drawSubmissions record component
    • fallbackSubmissions

      public int fallbackSubmissions()
      Returns the value of the fallbackSubmissions record component.
      Returns:
      the value of the fallbackSubmissions record component
    • extractionNanos

      public long extractionNanos()
      Returns the value of the extractionNanos record component.
      Returns:
      the value of the extractionNanos record component
    • submissionNanos

      public long submissionNanos()
      Returns the value of the submissionNanos record component.
      Returns:
      the value of the submissionNanos record component