Replies: 2 comments 4 replies
-
@mattgperry any thoughts on this? Apologies for tagging you - just want to see if you think this would make sense to be converted into an issue or not (as the more I think about it, the more this seems like it could be a bug)? |
Beta Was this translation helpful? Give feedback.
-
Hey @joealden sorry I have never seen this, I think notifications here are going to my framer email which I have basically never looked at. I actually stumbled here via Google looking for ways to disable hw acceleration in WAAPI 😅 This was the top result. Can you open a feature request for a |
Beta Was this translation helpful? Give feedback.
-
Hey,
I understand that shifting animations (that can be) to the GPU (presumably via WAAPI) has its pros regarding performance, but when I went to update our
framer-motion
dependency at work from7.6.9
to8.4.2
, I noticed some problems that I believe are likely due to the recent changes regarding hardware acceleration, and I'm thinking that they might just inherently be problems with the extra "work" of shifting stuff CPU <---> GPU?For this reason, I'm wondering if there is a way (or a way would be considered) to disable hardware acceleration for certain animations, or just globally?
To document the issues we were seeing, it was mainly around a
Tooltip
component we have that uses theMotionValue
returned fromuseSpring
as an opacity value, as well as to nicely mount and unmount the tooltip contents (only unmounting after the animation is complete via anonChange
handler).When updating from
7.6.9
to8.4.2
, we saw the following differences/problems:duration
value of150
, which worked fine on7.6.9
, but resulted in no visible animation occurring on8.4.2
(it was just popping in and out like no animation was happening). Increasing theduration
to around500
seemed to mimic the previously set150
value, so this does seem like a possible workaround, but this then makes me worry about other animation timings in our app (and that they could change depending on what properties are animated).As mentioned above, I'm thinking this might be a WAAPI issue more so than a
framer-motion
issue (do note that I did test this in both Firefox and Chrome, so it doesn't seem browser specific), so although it'd be great to have this work as it did before but be hardware accelerated, I'd also be happy to be able to opt-out of hardware acceleration (but be able to access the latest features offramer-motion
by being on the latest version).Let me know if anyone wants minimum reproductions of this!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions