Documentation ¶
Overview ¶
Package fps can be used to keep track of framerate and delta time. Sample usage:
fps.Initialize() for { // game loop fps.Handler.Update() fmt.Println(fps.FPS()) // do game stuff }
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handler tracker
Handler is the singleton fps handler. It should be initialized with fps.Initialize(), and then all framerate and delta time checking can access it directly.
Functions ¶
func Initialize ¶
func Initialize()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.