Skip to content
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

Make code that uses vmath.lerp frametime-independent. #16

Open
aglitchman opened this issue Feb 16, 2022 · 1 comment
Open

Make code that uses vmath.lerp frametime-independent. #16

aglitchman opened this issue Feb 16, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@aglitchman
Copy link
Member

Describe the bug
Current, the code has lots of vmath.lerp calls. It assumes that the user has the constant 60 FPS.

To Reproduce
Run the examples on higher or lower framerates.

Expected behavior
The code should be deltatime-independent.

Additional context (optional)
Using lerp with delta-time

@aglitchman aglitchman added the bug Something isn't working label Feb 16, 2022
@subsoap
Copy link
Contributor

subsoap commented Feb 21, 2022

Use socket.gettime() differences between frames to calculate accurate dt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants