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