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

to change the duration from frames to seconds! #72

Closed
Melaga opened this issue Oct 29, 2015 · 1 comment
Closed

to change the duration from frames to seconds! #72

Melaga opened this issue Oct 29, 2015 · 1 comment

Comments

@Melaga
Copy link

Melaga commented Oct 29, 2015

Hi Maxwellito!
Is that easy to change draw function's duration to seconds?!

@maxwellito
Copy link
Owner

Hi there,

I'm sorry this won't be possible because Vivus is using requestAnimationFrame which allow smooth animation and avoid frame drop. So depending on the client machine it can be very fast of very slow. There's not way to calculate it. You can keep in mind an average score of 30 frames per second and adapt your instance with it.

Sorry about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants