Skip to content

[Android] Slow scrolling, laggy performance #9485

Closed

Description

@jsuarezruiz

Description

It is a list using CollectionView with elements using Border. It's a list of only 5 items, but there must be something wrong somewhere because it lags considerably.

surfer-droid-scroll

Steps to Reproduce

  1. Download or sync https://github.com/jsuarezruiz/netmaui-surfing-app-challenge
  2. Launch the App on Android and scroll the main page.

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12 and 13

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. HausBJB commented on Aug 17, 2022

    @HausBJB

    This bug has been reported so many times, none of them will be fixed

  2. byme8 commented on Aug 17, 2022

    @byme8

    In traces, I can see that the CollectionView calls SurfingApp!SurfingApp.Views.Templates.PostItemTemplate..ctor() again and again.
    Looks like it recreates the whole view on every scroll.

    Attaching traces. They contain everything that happens during the swipe gesture:
    maui-app-trace.speedscope.json.zip

  3. jsuarezruiz commented on Aug 22, 2022

    @jsuarezruiz
    ContributorAuthor

    In traces, I can see that the CollectionView calls SurfingApp!SurfingApp.Views.Templates.PostItemTemplate..ctor() again and again. Looks like it recreates the whole view on every scroll.

    Attaching traces. They contain everything that happens during the swipe gesture: maui-app-trace.speedscope.json.zip

    Reviewed and can see the same. PostItemTemplate is created again and again.

  4. jedusei commented on Aug 24, 2022

    @jedusei
  5. HausBJB commented on Sep 15, 2022

    @HausBJB

    I have the same problem. How do you upload such an app to the Play Store? you will be laughed at immediately. certain things need to be fixed as a matter of priority.

  6. added
    p/1Work that is important, and has been scheduled for release in this or an upcoming sprint
    on Sep 16, 2022
  7. jedusei commented on Sep 30, 2022

    @jedusei

    Hey guys, I've developed a workaround to this issue that you can use until the MAUI team provides an official fix.
    Please try it out and let me know whether it works for you too.

    https://gist.github.com/jedusei/e15f45e1ae385d8b57413c168d3ef730

  8. self-assigned this
    on Oct 5, 2022
  9. added this to the 8.0-preview1 milestone on Oct 18, 2022
  10. HausBJB commented on Oct 20, 2022

    @HausBJB

    Hello when can I expect this fix for net 6?

  11. 4 remaining items

  12. ghost locked as resolved and limited conversation to collaborators on May 11, 2023
  13. added
    perf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)
    and removed on May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-controls-collectionviewCollectionView, CarouselView, IndicatorViewarea-drawingShapes, Borders, Shadows, Graphics, BoxView, custom drawingfixed-in-8.0.0-preview.4.8333Look for this fix in 8.0.0-preview.4.8333!p/1Work that is important, and has been scheduled for release in this or an upcoming sprintperf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/androidt/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions