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

Function BenchmarkInputMgr_ButtonFilledState

button_test.go:265–277  ·  view source on GitHub ↗

Benchmark sub-optimal state checks

(b *testing.B)

Source from the content-addressed store, hash-verified

263
264// Benchmark sub-optimal state checks
265func BenchmarkInputMgr_ButtonFilledState(b *testing.B) {
266 Input = NewInputManager()
267 keyFillManager(Input.keys)
268
269 for _, cfg := range btnSimpleCfg {
270 Input.RegisterButton(cfg.Name, cfg.Triggers[0], cfg.Triggers[1])
271 }
272
273 b.ResetTimer()
274 for n := 0; n < b.N; n++ {
275 checkBtnConfigOptimal(b)
276 }
277}
278
279// Disabled but around when needed
280

Callers

nothing calls this directly

Calls 4

NewInputManagerFunction · 0.85
keyFillManagerFunction · 0.85
checkBtnConfigOptimalFunction · 0.85
RegisterButtonMethod · 0.80

Tested by

no test coverage detected