All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.opengl.renderer.OpenGlRendererStatistic.kt Maven / Gradle / Ivy

package ru.casperix.opengl.renderer


class FrameStatistic(
    var frameIndex:Long,
    var triangles:Int = 0,
    var batches:Int = 0,
    var states:Int = 0,
    var static:Int = 0,
    var dynamicBufferAmount:Int = 0,
    var staticBufferAmount:Int = 0,
)

class OpenGlRendererStatistic {
    var frameIndex = 0L

    var current = FrameStatistic(frameIndex)
    var last = FrameStatistic(frameIndex)

    fun nextFrame() {
        last = current
        current = FrameStatistic(++frameIndex)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy