@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
gaetan
06/16/2021, 12:07 PM
@spierce7 My test is on the rendering (with Skia). We are not testing the performance of the compose mechanism.