Open Arlodotexe opened 2 months ago
Looks like there's no slowdowns or unexpected bugs when AoT is disabled. Might be a binding issue or an indication of a deeper layout problem when AoT is on.
We'll need to run a profiler to see what the hot paths are during the slowdown.
Looks like the hot paths are found on both the MeasureOverride
and ArrangeOverride
calls in WrapLayout, with the majority of time spent on ABI.Microsoft.UI.Xaml.Controls.IVirtualizingLayoutContextMethods.GetOrCreateElementAt(WinRT.IObjectReference, int)
in both methods:
MeasureOverride
:
ArrangeOverride
:
This seems abnormal, possibly due to a change in CsWinRT?
Updating to the latest CsWinRT 2.1.5 has no effect, issue is still present.
Describe the bug
The WrapLayout sample in the gallery never fully loads when running under Windows App SDK but is fine when running UWP.
https://github.com/user-attachments/assets/c01919ed-80da-42b8-80ac-9f43feb0a961
Steps to reproduce
Expected behavior
Control should load and be reasonably responsive.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, I'd like to be assigned to work on this item.