Hi, I've found the main cause of frame dropping wh...
# compose
k
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
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
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
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.
And scroll with the ripple showing, the screen is also laggy, you can examine it in Play Store
l
If you could file a bug with a sample app / trace that would be helpful