maui icon indicating copy to clipboard operation
maui copied to clipboard

[Android] Performance issue with Horizontal ScrollView

Open jsuarezruiz opened this issue 1 year ago • 3 comments

Description

When using a horizontal ScrollView with a layout, we have an infinite Layout loop dramatically impacting performance.

This is the behavior on Xamarin.Forms: sv-horizontal-xf

And this is .NET MAUI: sv-horizontal-maui

Steps to Reproduce

  1. Sync or download https://github.com/jsuarezruiz/netmaui-chat-app-challenge
  2. Launch the App on Android.
  3. Try to scroll the top horizontal list (just 10 items in the sample code, 100 in the gif but can see the problem in any case).

Link to public reproduction project repository

https://github.com/jsuarezruiz/netmaui-chat-app-challenge

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14

Did you find any workaround?

No response

Relevant log output

No response

jsuarezruiz avatar May 03 '24 08:05 jsuarezruiz

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 03 '24 08:05 github-actions[bot]

Hey @jsuarezruiz, how do you get the performance indicators shown in your gif in the description?

Adam-- avatar May 03 '24 14:05 Adam--

Hey @jsuarezruiz, how do you get the performance indicators shown in your gif in the description?

From the Developer Settings, Profile HWUI rendering https://developer.android.com/topic/performance/rendering/inspect-gpu-rendering

jsuarezruiz avatar May 03 '24 16:05 jsuarezruiz

similar to #20684 ? Although there are differences in the problem descriptions, I believe these two problems are similar. You can check the CPU differences through commands "adb shell top"

BaY1251 avatar May 07 '24 02:05 BaY1251