Closed cnik777 closed 6 months ago
Thank you @cnik777 for your notification. We are already aware of that but it's little we can do. This is directly connected with WebView performance on different smartphones which we cannot affect in any way. Anyway, I can assure you that we are constantly working on how to improve general library performance but we simply cannot verify all device models.
same here. It happens also on Google Pixel 6a
@soommy12 @cnik777 I have found the issue. We need to use the the hardware or software acceleration. By default is none. Below you can find an example to apply to Highcharts when you instantiates the WebView:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
// chromium, enable hardware acceleration
webView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
} else {
// older android version, disable hardware acceleration
webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}
When I applied it works like a charm!
highcharts = "10.3.2"
Hichart scrubbing, touch and animation starts lagging after second app launch. Clearing the data and relaunch solves the issue for the session but starts lagging again after next cold app start.known devices with issue oneplus nord 2 oneplus a6000
I've tested with very simple implementation
is there any internal caching or data persistance that might be causing this ? and any mechanism to clear that. Please let me know if you need any more info and specifics.
some device profiling screenshots while scrubbing through chartview left : when lagging right: smooth
adding video
https://user-images.githubusercontent.com/123733976/215111095-d6e84efd-5638-4cb1-9f2c-d6859c418b4f.mp4
added sample project link used for video. https://github.com/cnik777/hicharttemp