Class Tracker

java.lang.Object
dev.prozilla.pine.core.state.Tracker

public class Tracker extends Object
Keeps track of the application's statistics.
  • Constructor Details

  • Method Details

    • getFps

      public int getFps()
      Returns the current amount of frames rendered per second.
      Returns:
      Frames per second
    • getUps

      public int getUps()
      Returns the current amount of updates per second.
      Returns:
      Updates per second
    • getTime

      public double getTime()
      Returns the time elapsed since glfwInit() in seconds.
      Returns:
      System time in seconds
    • setVertices

      public void setVertices(int rendered, int total)
      Parameters:
      rendered - Amount of vertices rendered on the screen
      total - Total amount of vertices
    • getRenderedVertices

      public int getRenderedVertices()
    • getTotalVertices

      public int getTotalVertices()
    • getVersion

      public String getVersion()
      Returns the version of the game, if the version.txt file is present, or an empty string.
    • addEntity

      public void addEntity()
    • removeEntity

      public void removeEntity()
    • getEntityCount

      public int getEntityCount()
    • addSystem

      public void addSystem()
    • removeSystem

      public void removeSystem()
    • getSystemCount

      public int getSystemCount()
    • addComponent

      public void addComponent()
    • removeComponent

      public void removeComponent()
    • getComponentCount

      public int getComponentCount()
    • getWindowSize

      public String getWindowSize()
    • getWindowWidth

      public int getWindowWidth()
    • getWindowHeight

      public int getWindowHeight()
    • reset

      public void reset()
    • printRenderInfo

      public void printRenderInfo()
    • printECSInfo

      public void printECSInfo()