@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()
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.
06/16/2021, 8:05 AM
@romainguy Ok. I’ll try that.
@spierce7 My test is on the rendering (with Skia). We are not testing the performance of the compose mechanism.