amethyst / amethyst/bracket-lib

Only one key handled per tick?

Offen
#236 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @thebracket Auf GitHub ansehen
bug
Vorherrschende Sprache
Rust
Sterne
1.7k
Forks
126
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm working through _Hands On Rust_ and one thing I've noticed is that the game feels a little laggy. I think this is because it is sometimes dropping keypresses, e.g. if I press "up" followed quickly by "down", sometimes the "down" event isn't processed. I think this is due to the fact that the keyboard is only checked once per tick.

Is there some way to guarantee that the game processes every keyboard event that happens?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.