-
Notifications
You must be signed in to change notification settings - Fork 157
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
Use CADisplayLink.targetTimestamp to drive animations #293
Comments
CADisplayLink.targetTimestamp
to drive animations
CADisplayLink.targetTimestamp
to drive animations
https://developer.apple.com/documentation/quartzcore/optimizing_promotion_refresh_rates_for_iphone_13_pro_and_ipad_pro has some good explanation of how to use targetTimestamp |
https://developer.apple.com/videos/play/wwdc2021/10147/ is also helpful. One key takeaway is that switching to targetTimestamp isn't enough — we likely also need to use something like MTLCommandBuffer.present(_:atTime:) so that our content is drawn at the expected time when our display link is using a lower frame rate than the screen's actual refresh rate. |
Still actual
|
The new flyTo implementation uses
Date()
directly. Which is not the most sophisticated way of handling timing in animations. We should useCADisplayLink.targetTimestamp
instead.Also applies to
GestureDecelerationCameraAnimator
. See #692 (comment)Also applies to
InterpolatedLocationProducer
Originally posted by @julianrex in #282 (comment)
The text was updated successfully, but these errors were encountered: