MCPcopy
hub / github.com/EngoEngine/engo / FPSSystem

Struct FPSSystem

common/fps.go:17–26  ·  view source on GitHub ↗

FPSSystem is a system for debugging that displays FPS to either the screen or the terminal.

Source from the content-addressed store, hash-verified

15// FPSSystem is a system for debugging that displays FPS to either the screen or
16// the terminal.
17type FPSSystem struct {
18 Display, Terminal bool
19 entity struct {
20 *ecs.BasicEntity
21 *RenderComponent
22 *SpaceComponent
23 }
24 elapsed float32
25 Font *Font // Font used to display the FPS to the screen, defaults to gomonobold
26}
27
28// New is called when FPSSystem is added to the world
29func (f *FPSSystem) New(w *ecs.World) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected