https://kotlinlang.org logo
#compose
Title
# compose
g

galex

05/16/2019, 4:28 AM
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

Nicolas Roard

05/16/2019, 4:37 AM
...the 60fps advantage?..
g

gildor

05/16/2019, 4:55 AM
Android Framework UI is also 60fps
r

romainguy

05/16/2019, 5:18 AM
What Andrey said. It can also do 90 or 120 on phones with the proper displays.
g

gildor

05/16/2019, 5:23 AM
8 ms per frame 😰
g

galex

05/16/2019, 7:21 AM
So maybe it’s a feeling of fluidity? I didn’t try Flutter yet so I am talking without having checked it myself
s

Simon Schubert

05/16/2019, 7:53 AM
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

mbonnin

05/16/2019, 1:26 PM
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

romainguy

05/16/2019, 2:19 PM
What's fluidity? We not only look at frame rate but also frame pacing and latency.
c

Chuck Jazdzewski [G]

05/16/2019, 3:49 PM
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

Bernardo Ferrari

05/17/2019, 7:54 PM
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

romainguy

05/17/2019, 8:03 PM
Frames per second are not a very useful metric unfortunately
n

Nicolas Roard

05/17/2019, 9:43 PM
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)
2 Views