question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Performance Issue] Pool Performance on UI FPS on iOS only with victory-native VictoryArea animating.

See original GitHub issue

I made a animated VictoryArea like this:

performance

Watch the UI FPS ,please . The animation is bad. But it is much better on Android.

Anyone can help me? Thank you in advance.

dependencies:

"react-native": "0.55.4",
"react-native-svg": "^6.5.2",
"victory-native": "^0.17.4"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
msandcommented, Aug 18, 2018

I’ve done some more work on native animation: https://github.com/react-native-community/react-native-svg/pull/757 Any help in testing would be much appreciated 😄

1reaction
msandcommented, Aug 13, 2018

Optimally, someone would implement support for animating string props in react-native using the native animated driver, I started work on it but not currently putting any time/effort into it, that should allow speeding up lots of animations with the flip of a switch.

But in this case, it seems from the gif that the same effect could be achieved using a static chart and a react-native animated view with white background, which starts out covering the entire chart and slides out to the right.

This way, it only needs to render the svg once, and then animate the x position of a white rectangle view using native animation and the simplest possible logic; which should be able to achieve 60fps easily, if it is at all possible to get 60fps using react-native with the specific hardware and operating environment in question.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Performance Issue] Pool Performance on UI FPS on iOS only ...
I made a animated VictoryArea like this: performance. Watch the UI FPS ,please . The animation is bad. But it is much better...
Read more >
Spritekit performance/fps drop aft… | Apple Developer Forums
My FPS drops to about 55 fps once approximately 20 monsters in my game are in the main view. The monsters normally just...
Read more >
iOS Animation and Tuning for Efficiency - Toptal
Animating at 60 FPS. One key aspect of perceived performance is making sure your animations run at 60 FPS (frames per second), which...
Read more >
UI of react native app (on iOS) lags and fps rate drops regularly
2 Answers 2 · Running in development mode is actually a major performance issue. · Also, try to interpolate as much of the...
Read more >
Keeping animations running at 60 FPS in a React Native app ...
In this post, we will take a look at several techniques for improving the performance of animations in a React Native mobile app....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found