fps

package
v0.0.0-...-1050381 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2017 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL