MCPcopy Index your code
hub / github.com/EngoEngine/engo / DisplayString

Method DisplayString

common/fps.go:95–100  ·  view source on GitHub ↗

DisplayString returns the display string in the format FPS: 60

()

Source from the content-addressed store, hash-verified

93
94// DisplayString returns the display string in the format FPS: 60
95func (f *FPSSystem) DisplayString() string {
96 if engo.Time == nil {
97 return ""
98 }
99 return fmt.Sprintf("FPS: %g", engo.Time.FPS())
100}

Callers 2

NewMethod · 0.95
UpdateMethod · 0.95

Calls 1

FPSMethod · 0.80

Tested by

no test coverage detected