Package dev.prozilla.pine.core.state
Class Tracker
java.lang.Object
dev.prozilla.pine.core.state.Tracker
Keeps track of the application's statistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidintintintgetFps()Returns the current amount of frames rendered per second.intintdoublegetTime()Returns the time elapsed sinceglfwInit()in seconds.intintgetUps()Returns the current amount of updates per second.Returns the version of the game, if theversion.txtfile is present, or an empty string.intintvoidvoidvoidvoidvoidvoidreset()voidsetVertices(int rendered, int total)
-
Constructor Details
-
Tracker
-
-
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 sinceglfwInit()in seconds.- Returns:
- System time in seconds
-
setVertices
public void setVertices(int rendered, int total) - Parameters:
rendered- Amount of vertices rendered on the screentotal- Total amount of vertices
-
getRenderedVertices
public int getRenderedVertices() -
getTotalVertices
public int getTotalVertices() -
getVersion
Returns the version of the game, if theversion.txtfile 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
-
getWindowWidth
public int getWindowWidth() -
getWindowHeight
public int getWindowHeight() -
reset
public void reset() -
printRenderInfo
public void printRenderInfo() -
printECSInfo
public void printECSInfo()
-