FPSSystem is a system for debugging that displays FPS to either the screen or the terminal.
| 15 | // FPSSystem is a system for debugging that displays FPS to either the screen or |
| 16 | // the terminal. |
| 17 | type 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 |
| 29 | func (f *FPSSystem) New(w *ecs.World) { |
nothing calls this directly
no outgoing calls
no test coverage detected