Skip to content

[Hybrid] Animation lag during 1st render fragment load #54879

@Kebechet

Description

@Kebechet

Description

I am not sure if this is MAUI or Blazor problem.

We use MAUI Hybrid and the whole UI is written in Blazor.
We stubbed upon a problem with animations. When we want to animate Drawer component to show from side, the 1st load with the animation is really laggy.

We experience this problem especially on android (we tested also iOS but there it is really minimal). But not on windows (maybe because of my HW - i9-13900k, 32GB RAM)

I went through performance best practices of Blazor and tried many of them but without any luck.

I suspect that the one-thread model of Blazor causes this. First time render fragments are rendered it will lag the animation and after that they are somehow cached and this problem doesnt show up again. But thats just my guess

Screen_Recording_20240322-110327.mp4

Steps to Reproduce

  1. download DrawerTest repo
  2. run it on your android
  3. observe that the 1st load of the Drawer is more laggy then other loads (this lag can be increased by the amount of component items in the Drawer Content - virtualization doesnt help)

Link to public reproduction project repository

https://github.com/Kebechet/DrawerTest

Version with bug

8.0.6 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 10, Android 14

Did you find any workaround?

no

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions