SetFPSLimit can be used to change the value in the given `RunOpts` after already having called `engo.Run`.
(limit int)
| 243 | |
| 244 | // SetFPSLimit can be used to change the value in the given `RunOpts` after already having called `engo.Run`. |
| 245 | func SetFPSLimit(limit int) error { |
| 246 | if limit <= 0 { |
| 247 | return fmt.Errorf("FPS Limit out of bounds. Requires > 0") |
| 248 | } |
| 249 | opts.FPSLimit = limit |
| 250 | resetLoopTicker <- true |
| 251 | return nil |
| 252 | } |
| 253 | |
| 254 | // Headless indicates whether or not OpenGL-calls should be made |
| 255 | func Headless() bool { |
no outgoing calls