-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
InvestigateRequires further investigation by the WPF team.Requires further investigation by the WPF team.
Description
Description
WPF consumes lots of memory on ARM-windows.
When I call win.Show() to display the first main window, .NET's memory usage increases from a few megabytes to 100mb.
Reproduction Steps
PS C:\Users\k1mlk\source> dotnet --version
8.0.100-rc.2.23502.2
PS C:\Users\k1mlk\source> dotnet new wpf -o BlankWpf
PS C:\Users\k1mlk\source> cd .\BlankWpf\
PS C:\Users\k1mlk\source\BlankWpf> dotnet run -c Release
Expected behavior
I hope it can take a normal level memory usage like x86 (A blank window less than 20mb)
Actual behavior

The wpf take more than 100MB memory in Task Manager
Other information
There is my system information
Host: DEVKIT-ARM
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22621 N/A build 22621
System Model: Windows Dev Kit 2023
System Type: ARM64-based PC
Processor: 1 processor installed.
[01]: ARMv8 (64-bit) Family 8 Model D4B Revision 0 Qualcomm Technologies Inc ~2995 Mhz
Total Physical Memory: 32,165 MB
Available Physical Memory: 22,993 MB
Virtual Memory: Maximum Size: 34,213 MB
Virtual Memory: Available: 25,415 MB
Virtual Memory: In Use: 8,798 MB
Hyper-V Requirements: Hyper-V hypervisor is detected. Necessary features for Hyper-V are not displayed.
If I compile an x64 version and run it on the computer, everything appears to be normal.
And I think this happens to .net framework 4.8.1 arm64 too.
Metadata
Metadata
Assignees
Labels
InvestigateRequires further investigation by the WPF team.Requires further investigation by the WPF team.