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

Function BenchmarkInputMgr_AxisFilledState

axis_test.go:482–494  ·  view source on GitHub ↗

Benchmark values checks with a full key manager.

(b *testing.B)

Source from the content-addressed store, hash-verified

480
481// Benchmark values checks with a full key manager.
482func BenchmarkInputMgr_AxisFilledState(b *testing.B) {
483 Input = NewInputManager()
484 keyFillManager(Input.keys)
485
486 for _, cfg := range axSimpleCfg {
487 Input.RegisterAxis(cfg.Name, cfg.Pairs[0], cfg.Pairs[1])
488 }
489
490 b.ResetTimer()
491 for n := 0; n < b.N; n++ {
492 checkAxisConfigValue(b)
493 }
494}
495
496// Disabled but around when needed
497

Callers

nothing calls this directly

Calls 4

NewInputManagerFunction · 0.85
keyFillManagerFunction · 0.85
checkAxisConfigValueFunction · 0.85
RegisterAxisMethod · 0.80

Tested by

no test coverage detected