-
Notifications
You must be signed in to change notification settings - Fork 57
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
Feature detect to determine RAF timer size #40
Comments
Yes, I was thinking the same thing, just queue them up and start them all once we've worked it out. It'd make an assumption that |
Was anything done about this feature? Thanks. |
so far no work has been done on this. surely it wouldn't hurt to move the detection on page load instead of per frame |
I agree. Do you want to do it or should I? |
you can have a crack at it. i will gladly have a look since there's quite a few things on my plate at the moment |
I'll start looking into it in the next couple of days, I'll update here as I go |
FWIW, in my animation library.. I opted to ignore the https://github.com/BKWLD/tram/blob/f2ee789efa9cba498b2e96ff5f566eb8793c057e/src/tram.js#L60-L83 |
@rvagg, was thinking about your feature detect for the
window.performance
+rAF
timers.If it simplifies things, I would be fine with deferring all morpheus starts until the first frame had passed. Since it's usually <20ms, i'd call it a fair trade for not having to check on each frame.
Most browser-based animation seems to naturally defer at least 200ms anyways. I doubt most use cases would notice a frame difference on dom ready.
Thoughts?
The text was updated successfully, but these errors were encountered: