amethyst / amethyst/bracket-lib

Only one key handled per tick?

未关闭
#236 2 条评论 0 个 reaction 已指派 1 人 已被 @thebracket 认领 在 GitHub 查看
bug
主要语言
Rust
星标
1.7k
派生
126
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。