Replies: 1 comment 4 replies
-
If you are using animation values (https://shopify.github.io/react-native-skia/docs/animations/values) you should get a big performance improvement no? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a grid of circles that I want to randomly (not all at the same time) change colors, animating from the last color to a new color and then setting a new random interval for when that circle changes color again.
I've tried implementing a
useRandomInterval()
hook that then changes the color value (just by changing the value directly for now, no animations yet) and even just with that implemented the JS thread is under quite some load (sitting at 30fps).I'm wondering if there's a way to implement something like this purely with skia hooks so that the JS thread can stay at 60fps? Any ideas would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions