-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Android drawable perf #31567
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
base: main
Are you sure you want to change the base?
Android drawable perf #31567
Conversation
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
jsuarezruiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a042aaa to
10fd93f
Compare
|
@jsuarezruiz you can run AZP again.. though initially I had 80% perf improvement, but now with the last force push it's like 0%.. anyway I'm curious about UI tests failures. So I must have done something wrong, or I must have missed some caching opportunity. |
src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformDrawable.java
Show resolved
Hide resolved
src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformDrawable.java
Outdated
Show resolved
Hide resolved
src/Core/AndroidNative/maui/src/main/java/com/microsoft/maui/PlatformDrawable.java
Outdated
Show resolved
Hide resolved
10fd93f to
5f10e1a
Compare
|
@jsuarezruiz I've pushed another commit, and this time the timing looks better but not what I wanted/expected. There's only a 3ms performance gain.. now maybe this becomes much higher with a real world complex app, but I hoped to achieve something more. Please run /azp |
|
Wait, I found another issue. |
fee1cbf to
6a5f850
Compare
|
@jsuarezruiz this is now ready, I've updated all the benchmarks in the description |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
@jsuarezruiz @PureWeen the PR is now ready, I added a few commits with the fixes and updated screenshots, here's a summary:
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
@albyrock87 can you rebase? |
db3b3a0 to
4bb32c8
Compare
|
@rmarinho I've rebased the PR onto the last net10.0 commit |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
There are some broken
All 1019 |
|
Any news on this? |
|
Tested in debug mode - everything ok! |
4bb32c8 to
c113d61
Compare
|
Rebased on top of latest |
# Conflicts: # docs/design/UITesting.md # src/Controls/src/Core/PublicAPI/net-android/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/net-tizen/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/net-windows/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/net/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/netstandard/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
# Conflicts: # src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Unshipped.txt # src/Controls/src/Core/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt
Description of Change
Backgrounds are everywhere in our apps, so we must be fast when drawing android views, and
Java -> C#is not.This PR tries to do its best to completely move the logic into a java
PlatformDrawableclass.Benchmarks (~50% improvements in mapping, ~60% improvement in rendering time)
I used #24414 as main page wrapped into a
Shellcomponent given it has adrawChildmethod which shows the cumulative draw time.The results are impressive and will for sure make an impact!
24414-net10.json



24414-pr-final2.json


