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 -
Constructor Summary
ConstructorsConstructorDescriptionWorldRenderStats(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 aWorldRenderStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcommands()Returns the value of thecommandsrecord component.intReturns the value of theculledObjectsrecord component.intReturns the value of thedrawSubmissionsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theextractedObjectsrecord component.longReturns the value of theextractionNanosrecord component.intReturns the value of thefallbackSubmissionsrecord component.longframeId()Returns the value of theframeIdrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinstancesrecord component.longReturns the value of thesubmissionNanosrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetrianglesrecord component.intReturns the value of thevisibleObjectsrecord component.
-
Field Details
-
EMPTY
-
-
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 aWorldRenderStatsrecord class.- Parameters:
frameId- the value for theframeIdrecord componentextractedObjects- the value for theextractedObjectsrecord componentvisibleObjects- the value for thevisibleObjectsrecord componentculledObjects- the value for theculledObjectsrecord componentcommands- the value for thecommandsrecord componenttriangles- the value for thetrianglesrecord componentinstances- the value for theinstancesrecord componentdrawSubmissions- the value for thedrawSubmissionsrecord componentfallbackSubmissions- the value for thefallbackSubmissionsrecord componentextractionNanos- the value for theextractionNanosrecord componentsubmissionNanos- the value for thesubmissionNanosrecord 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. -
frameId
public long frameId()Returns the value of theframeIdrecord component.- Returns:
- the value of the
frameIdrecord component
-
extractedObjects
public int extractedObjects()Returns the value of theextractedObjectsrecord component.- Returns:
- the value of the
extractedObjectsrecord component
-
visibleObjects
public int visibleObjects()Returns the value of thevisibleObjectsrecord component.- Returns:
- the value of the
visibleObjectsrecord component
-
culledObjects
public int culledObjects()Returns the value of theculledObjectsrecord component.- Returns:
- the value of the
culledObjectsrecord component
-
commands
public int commands()Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-
triangles
public long triangles()Returns the value of thetrianglesrecord component.- Returns:
- the value of the
trianglesrecord component
-
instances
public int instances()Returns the value of theinstancesrecord component.- Returns:
- the value of the
instancesrecord component
-
drawSubmissions
public int drawSubmissions()Returns the value of thedrawSubmissionsrecord component.- Returns:
- the value of the
drawSubmissionsrecord component
-
fallbackSubmissions
public int fallbackSubmissions()Returns the value of thefallbackSubmissionsrecord component.- Returns:
- the value of the
fallbackSubmissionsrecord component
-
extractionNanos
public long extractionNanos()Returns the value of theextractionNanosrecord component.- Returns:
- the value of the
extractionNanosrecord component
-
submissionNanos
public long submissionNanos()Returns the value of thesubmissionNanosrecord component.- Returns:
- the value of the
submissionNanosrecord component
-