-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wasd-controls flies for tens of meters during framedrops with a single key press. #4241
Comments
Any steps to reproduce? I had tested the frame independence by throttling the render loop. |
I think the problem is in the incorrect handling of the The code refers to this post on Stack Overflow. In the SO post, the I have fixed the code according to the SO post in my copy of |
Furthermore, the current code has another problem that manifests itself when the browser schedules a new frame in quick succession to another frame (probably because it tries to compensate for a frame drop). In Firefox, on a Macbook with an integrated Intel Iris Pro, it often happens on my machine that two new frames are rendered in less than 3 msec after a longer frame drop (~100 msec), which brings |
Please share your fix. Thanks |
PR sent. I did not include my additional changes that implement movement along the Y axis with E/C as that is currently outside the scope of |
Description:
When wasd-controls became independent of frame rate, the behavior during frame drops worsened to flying at high-speeds across the world.
The text was updated successfully, but these errors were encountered: