EngineStats

OpenGL related engine stats.

Author

Colton Daily

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun bufferAllocated(bufferId: Long, size: Int)

Inform the engine stats that a new buffer has been allocated and the size of the buffer.

Link copied to clipboard
fun bufferDeleted(bufferId: Long)

Inform the engine stats that a buffer has been deleted.

Link copied to clipboard

Reset all counts to 0.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

Each buffer and it's size

Link copied to clipboard
var calls: Int = 0

The total OpenGL calls invoked.

Link copied to clipboard
var drawCalls: Int = 0

The total OpenGL draw calls invoked.

Link copied to clipboard

The total times a shader has been bound / switched.

Link copied to clipboard

The total textures bound.

Link copied to clipboard

THe total size of all buffers

Link copied to clipboard
var vertices: Int = 0

The total vertices rendered.