CPRenderStats

org.cosplay.CPRenderStats
case class CPRenderStats(frameCount: Long, sceneFrameCount: Long, fps: Int, avgFps: Int, low1PctFps: Int, userTimeNs: Long, sysTimeNs: Long, objCount: Long, visObjCount: Long, kbEvent: Option[CPKeyboardEvent])

Container for rendering statistics.

Value parameters

avgFps

Average frames-per-second (FPS) over the last 500 frames.

fps

Current frames-per-second (FPS) rate.

frameCount

Current frame number since the beginning of the game.

kbEvent

Keyboard event, if any, for the current frame.

low1PctFps

Average frames-per-second (FPS) value across lowest 1% of all FPS values for the last 500 frames.

objCount

Total count of scene objects (including visible and invisible ones).

sceneFrameCount

Current frame number since the start of the current scene.

sysTimeNs

Average time in nanoseconds spent by the CosPlay game engine for the processing and rendering the current frame.

userTimeNs

Time in nanoseconds spent in user logic for the current frame.

visObjCount

Total count of visible scene objects.

Attributes

See also
Source
CPRenderStats.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product