Opentek-Org / opentek

If it is about Open Source, it is on Opentek.
https://opentek.netlify.app/
MIT License
131 stars 151 forks source link

Request Animation Frame Fallback using setTimeout Accuracy" #607

Open Shiivvani opened 1 year ago

Shiivvani commented 1 year ago

Description

The current implementation of the animation frame fallback using setTimeout in the provided code snippet might lead to timing inaccuracies for achieving smooth 60 frames per second (FPS) animations. The value 1e3 / 60 (approximately 16.666... milliseconds) is used for setTimeout, which is very close to the ideal 1000 / 60 (16.67 milliseconds), but it's not precisely accurate.

Screenshots

No response

Additional information

No response

What browser are you seeing the problem on?

No response

Checklist

github-actions[bot] commented 1 year ago

HellošŸ‘‹ @Shiivvani, I hope you are doing well!
Thank you for raising an issue. We will will investigate into the issue and get back to you as soon as possible. Please make sure you have given us as much context as possible.
Feel free to join the community and collaborate ā¤
Join our Discord Community here and make sure to STAR the project.