rn-perfect-sketch-canvas icon indicating copy to clipboard operation
rn-perfect-sketch-canvas copied to clipboard

Android performance issue when having 20+ stokes on the page

Open 200210qb opened this issue 2 years ago • 5 comments

at the beginning the stoke follows the touch motion pretty closely. But as more stokes were drawn (or when one single stroke gets longer), the new stoke gradually lags behind touch motion increasingly severely.

This is reproducible on the android emulator as well as on real android phones. However the performance on ios emulator remains reasonable even with a lot of strokes

200210qb avatar Jun 29 '22 02:06 200210qb

I don't have android emulator set up yet but can you try it with latest rn skia version?

wobsoriano avatar Aug 03 '22 21:08 wobsoriano

@wobsoriano I also facing the performance issue. Tested with latest Skia version on physical Android device

rhalaly avatar Aug 07 '22 18:08 rhalaly

@wobsoriano I'm also facing same issue. Tested on android simulator: after drawing few strokes lag increase gradually till is very severe. I've tested also on ios simulator but it seems to me there is no lag even after a lot of strokes are drawn.

davide-desio-eleva avatar Aug 18 '22 22:08 davide-desio-eleva

I opened the same issue in the react-native-skia repo: https://github.com/Shopify/react-native-skia/issues/741 since the source is in their lib

rhalaly avatar Aug 19 '22 08:08 rhalaly

Tested both Android emulator and physical device, i'm facing same performance issue. Works well with iPad emulator.

giannigulino avatar Aug 19 '22 10:08 giannigulino