BenJeau / react-native-draw

SVG based data-driven React Native drawing component 🎨
https://www.npmjs.com/package/@benjeau/react-native-draw
MIT License
127 stars 42 forks source link

Slow performance when holding stroke for a long time #61

Open nathanguigui opened 2 years ago

nathanguigui commented 2 years ago

On what kind of device are you using this library?

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

BlueskyFR commented 2 years ago

Can repo on both Android & iOS

BenJeau commented 1 year ago

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.

Kwonkunkun commented 1 year ago

any news??