is there a way to slow down animations in compose?...
# compose
g
is there a way to slow down animations in compose? (for debugging)
s
the dev settings for a device has an ablity to slow down or speed up animations. I would expect that compose respects those settings
g
i think those settings are independent of compose. (or at least they don’t seem to affect compose animations yet)
s
sounds like a bug 😞 The only other way that I could think of is to set a global variable that’s the animation duration factor, and you manually factor that in when setting animation times 😞
j
It would be nice to be able to inject a clock so that the window could keep rendering at 60fps but the clock progressed more slowly (or manually).
d
Lol I can't tell if that is sarcasm.
a
you can do that already - the Recomposer doesn't care about the timestamps, it just passes them through at whatever rate the clock ticks frames
keep the frames coming at framerate but skew the timestamps and you're there
c
a sample app with an animation and a clock would be dope…
j
so Adam you're saying all the animation stuff uses those timestamps?
Also, EPIC slack workspace crossover talk: How do you know someone is using the clock I provide and not the default platform clock?
😄 1
a
All of the animation stuff that isn't still using the obsolete
AnimationClockObservable
uses those timestamps, yes
👌 2
l
Is this documented somewhere? I am afraid I'd not remember when the UCT clock has advanced too much for me.
a
I'm not sure I understand the question. Is which part documented?
l
The different clocks in Compose, which controls what, and how to provide your own for different use cases like the one of this thread (slowing down animations).
👍 1