Will Compose be as fast in rendering as Flutter? I...
# compose
g
Will Compose be as fast in rendering as Flutter? I’d like to be able counter-argument colleagues who are trying to push Flutter just because of the 60fps advantage
n
...the 60fps advantage?..
g
Android Framework UI is also 60fps
r
What Andrey said. It can also do 90 or 120 on phones with the proper displays.
g
8 ms per frame 😰
g
So maybe it’s a feeling of fluidity? I didn’t try Flutter yet so I am talking without having checked it myself
s
you should defnitly try out flutter first before the argument. that will put you in a much better position to counter argument your colleagues
👍 8
m
Are there any well-known benchmarks for UI-frameworks ? Like animating a non-trivial layout @60fps and measuring CPU/RAM usage ? That could bring some actual numbers to the discussion
r
What's fluidity? We not only look at frame rate but also frame pacing and latency.
c
As for benchmarks, I would be very interested in any ideas you guys might have in this regard. Benchmarks are hard to get right and I want to make sure we are covering the scenarios you think are important.
b
I have no idea how to benchmark this, if only we had a jetpack benchmark.. 🤔 (don't know if it can benchmark ui) You should check Constraint Layout 2.0, it displays in real time how many frames per second it is rendering. It is REALLY HELPFUL when optimizing animations. If only they published the source code.. But I think it is a nice start point.
r
Frames per second are not a very useful metric unfortunately
n
yep, benchmarking is a hard problem. for smoothness, FPS isn't enough information...
(it's typically better to be smooth than have variations of FPS, for example)