Hi, I've found the main cause of frame dropping when clicking, it's the Android ripple. When I disabled the ripple the lag went away. I wrote a simple ripple using the compose layer and it doesn't lag. Why don't we write a compose ripple instead of falling back to the Android one?
r
romainguy
06/09/2024, 4:59 PM
The platform's ripple can run its animation on a separate thread. So if you click a button that takes time to execute its action (starting a new activity for instance), the platform ripple animation will keep playing uninterrupted.
l
Louis Pullen-Freilich [G]
06/09/2024, 5:31 PM
What version of compose are you using? We've seen similar reports before, in general there are a lot of perf improvement in recent versions that can reduce the 'lag' here, it's unlikely that it's the ripple itself that is causing problems
k
Kyant
06/10/2024, 4:48 AM
The latest alpha version, there is an improvement for indication before, but the lag didn't be solved.
But the pure compose ripple may get a short stuck when the whole screen is stuck, I think it's better than the Android ripple - it lets the entire following animation lag.
Kyant
06/10/2024, 4:56 AM
And scroll with the ripple showing, the screen is also laggy, you can examine it in Play Store
l
Louis Pullen-Freilich [G]
06/10/2024, 11:50 AM
If you could file a bug with a sample app / trace that would be helpful