Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Performance issue with Horizontal ScrollView #22184

Open
jsuarezruiz opened this issue May 3, 2024 · 4 comments
Open

[Android] Performance issue with Horizontal ScrollView #22184

jsuarezruiz opened this issue May 3, 2024 · 4 comments
Labels
area-controls-scrollview ScrollView delighter-sc platform/android 🤖 s/triaged Issue has been reviewed t/bug Something isn't working t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.)
Milestone

Comments

@jsuarezruiz
Copy link
Contributor

jsuarezruiz commented May 3, 2024

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 jsuarezruiz added t/bug Something isn't working area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter platform/android 🤖 legacy-area-perf Startup / Runtime performance area-controls-scrollview ScrollView labels May 3, 2024
@dotnet-policy-service dotnet-policy-service bot added the s/triaged Issue has been reviewed label May 3, 2024
Copy link
Contributor

github-actions bot commented May 3, 2024

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.

@Adam--
Copy link
Contributor

Adam-- commented May 3, 2024

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

@jsuarezruiz
Copy link
Contributor Author

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

@BaY1251
Copy link

BaY1251 commented May 7, 2024

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"

@Eilon Eilon added t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.) and removed legacy-area-perf Startup / Runtime performance area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter labels May 10, 2024
@jsuarezruiz jsuarezruiz added this to the Backlog milestone Jun 4, 2024
@samhouts samhouts removed the s/triaged Issue has been reviewed label Jul 3, 2024
@samhouts samhouts added the s/triaged Issue has been reviewed label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-scrollview ScrollView delighter-sc platform/android 🤖 s/triaged Issue has been reviewed t/bug Something isn't working t/perf The issue affects performance (runtime speed, memory usage, startup time, etc.)
Projects
None yet
Development

No branches or pull requests

5 participants