Android Performance while scrolling long list of items #18330
Replies: 2 comments 4 replies
-
Make sure you are running Release, with or without AOT for comparison. It still won't be as fast as Flutter with native compilation, until .NET gets NativeAOT support for Android which is worked on. Likely in .NET 10 we will have early previews of that. MAUI is different and can't be compared directly, since they use native controls for everything, so during scrolling little-to-no C# code is actually executed.
I would be much easier with the rest of the code. |
Beta Was this translation helpful? Give feedback.
-
You could test what I did, in this discussion: #17511 (reply in thread) Profiling could give insights, using dotnet tracing Also try and prevent using 'Auto' in layouts of your itemtemplate; in my experience performance is mostly about cutting layout calcs. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Very Simple Code Like this will produce far from smooth scrolling on Android real Device. I compare similar (and more complex equivalent that include actual image loading) codes on MAUI and Flutter and the performance is much better. There is any particular configuration needed for Android ir order to achieve a decent scrolling
To Reproduce
Sample provided Template. Please test on a real device. Compiled Binding does not solve the problem.
Expected behavior
Smooth scrolling
Avalonia version
11.2.1
OS
Android
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions