17 lines
341 B
Go
17 lines
341 B
Go
package sdl
|
|
|
|
// Frames to cache for FPS calculation.
|
|
const (
|
|
maxSamples = 100
|
|
TargetFPS = 1000 / 60
|
|
)
|
|
|
|
var (
|
|
fpsCurrentTicks uint32 // current time we get sdl.GetTicks()
|
|
fpsLastTime uint32 // last time we printed the fpsCurrentTicks
|
|
fpsCurrent int
|
|
fpsFrames int
|
|
fpsSkipped uint32
|
|
fpsInterval uint32 = 1000
|
|
)
|