react-native-draw icon indicating copy to clipboard operation
react-native-draw copied to clipboard

Slow performance when holding stroke for a long time

Open nathanguigui opened this issue 3 years ago • 3 comments

On what kind of device are you using this library?

  • [X] Android
  • [ ] iOS
  • [ ] Web

Environment

- OS: archlinux 5.17.4
- react-native: 0.64.3
- expo: 44.0.0
- @benjeau/react-native-draw: 0.8.1
- react-native-gesture-handler: 2.1.0
- react-native-svg: 12.1.1

Current Behavior

When holding more than 2 seconds a stroke, it's drawing with delay and slow performance

demo

Expected Behavior

No delay when holding for a longtime a stroke

Steps To Reproduce

Problem appear with the minimal example:

return (
  <View style={{flex: 1, height: "100%", width: "100%"}}>
    <Canvas style={{backgroundColor: "green"}}/>
  </View>
)

Anything else?

No response

nathanguigui avatar Apr 27 '22 14:04 nathanguigui

Can repo on both Android & iOS

BlueskyFR avatar Apr 29 '22 14:04 BlueskyFR

Unfortunately this is a limitation using SVG. I'm working on a re-write of the library to work using Skia, which would be extremely more performant.

BenJeau avatar Jul 26 '22 03:07 BenJeau

any news??

Kwonkunkun avatar Apr 27 '23 05:04 Kwonkunkun