Konva Animation And Drag'n'drop Are Super Slow On My Xiaomi Device
I have an app written with Konva.js, and it works really smoothly on both my 13-year-old PC and my wife's iPhone XR - it's just perfect. But whenever I run it on my Xiaomi Redmi 9
Solution 1:
First, you should run the performance profile on your phone and take a look at what exactly is slow. Konva
code execution? Native 2d canvas rendering? Browser layout work?
Also try to experiment with Konva.pixelRatio
property https://konvajs.org/docs/performance/All_Performance_Tips.html.
Konva.pixelRatio = 1;
The image may be blurry on HPDI device, but probably it will be good enough. Probably default pixel ratio is too high. You can try different values like 1
or 1.5
.
Post a Comment for "Konva Animation And Drag'n'drop Are Super Slow On My Xiaomi Device"