-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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][MAUI-8.0.7] CPU usage consistently remains above 10%, even without any operation #20684
Comments
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
emulator-mac-m2-net8.0.top.processor.log.txt repro sample Mac M2 pixel5 net8.0
Could not redirect output to file. Redirecting hangs.
Does not even list tested app
shows around 3% (constant)
Mac M2 emulator net8.0 - OK
Mac M2 emulator net7.0 - OK
|
@moljac Or, |
yes. I have template for multi TFM tests. I tried your sample. There was some processor %, but not 20%. I will paste logs today.
I will add those references to my projects.
Can you? I guess you can. I did. Yes there was some % but not 20%. The reason I use my template is to find possible regressions if any.
OK. Good to know. I will test more today. |
OK. I was able to repro with
it is not 20%, but 10% original sample and 12% for my sample.
|
Thank you very much. These data are sufficient to illustrate the issue, as other versions are close to 0%. PS: |
can repro in Net9 pre 2? |
can repro in MAUI-8.0.20 |
This may not be just a problem with CollectionView. I tried using ScrollView+HorizontalStackLayout instead, but the problem still occurred. |
This change comes from dotnet#19349, which simply and crudely piles up a large number of threads before loading the interface,Causing a significant decrease in performance. I don't have a better way, so I have to delete it
Can you test with the latest nightly build? |
I tested the repro here and I no longer see any ping ponging with the latest nightly
|
Yes, fixed by PR #22347 |
Description
When there is a 'CollectionView' with property set to
ItemsLayout="HorizontalList"
, the interface responds very slowly.CPU is always occupied, maintaining around 20%Steps to Reproduce
Download https://github.com/BaY1251/MauiDebug.git
adb shell top -n 1 | findstr "\<com.companyname.horizontallist\> \<PID\>"'
to view CPU usage.adb shell top -n 1 | findstr "\<com.companyname.horizontallist\> \<PID\>"'
to view CPU usage.Link to public reproduction project repository
https://github.com/BaY1251/MauiDebug.git
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.6 SR1
Affected platforms
Android
Affected platform versions
Android7.1
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: