https://kotlinlang.org logo
Title
g

gaetan

06/15/2021, 1:46 PM
I did some tests about the rendering performances of Compose-desktop. Pretty good! https://dev.to/gz_k/jetpack-compose-desktop-rendering-performances-4992
🔥 18
:kotlin-intensifies: 3
t

theapache64

06/15/2021, 1:49 PM
Wow. this is really great. thanks for sharing 👍
😊 1
r

romainguy

06/15/2021, 2:50 PM
@gaetan You misunderstood my suggestion. The translation shouldn't be part of the Path. You create a single Path object and draw it multiple times. The key is to call translate() on the Canvas before each call to drawPath()
👍 1
s

spierce7

06/15/2021, 6:56 PM
I appreciate benchmark comparisons like this. I think this clearly shows that the cost of using compose is easily worth it.
g

gaetan

06/16/2021, 8:05 AM
@romainguy Ok. I’ll try that.
👀 1
@spierce7 My test is on the rendering (with Skia). We are not testing the performance of the compose mechanism.
s

spierce7

06/16/2021, 12:27 PM
Oh, Thanks for the clarification