Documentation ¶
Overview ¶
Package clock manages game timers.
There are two types of clocks internally:
System clock:
A clock offered by the OS.
Audio clock:
An audio clock that is used in the higher priority over the system clock. An audio clock might not exist when the audio is not used.
Index ¶
Constants ¶
View Source
const FPS = 60
Variables ¶
This section is empty.
Functions ¶
func CurrentFPS ¶
func CurrentFPS() float64
func ProceedAudioTimer ¶
func ProceedAudioTimer(num int64)
ProceedAudioTimer increments the audio time by the given number of frames.
func RegisterPing ¶
func RegisterPing(pingFunc func())
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.