Skip to content
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

Maui.Graphics.Controls #3

Closed
zigzag312 opened this issue Nov 8, 2022 · 4 comments
Closed

Maui.Graphics.Controls #3

zigzag312 opened this issue Nov 8, 2022 · 4 comments

Comments

@zigzag312
Copy link

It would be interesting to see how Maui.Graphics.Controls performs as it's similar (as I understand it) to Flutter.

@jonathanpeppers
Copy link
Owner

PRs welcome!

I would tailor it a bit like this:

https://github.com/jonathanpeppers/lols/blob/canvas/src/android/LolsView.cs

If you can make a new project with a graphics view (whatever that is), and then draw each lol in a loop.

The issue is I got ~152,661 per second with the above sample -- and then the UI thread just renders at 60 fps. So I'm not sure how valid drawing APIs are for this test.

@zigzag312
Copy link
Author

You're right. I took a quick look at benchmarks source just now, and I must admit, I'm not sure what exactly is being measured.

I thought it would be interesting to see how much overhead do MAUI's native controls have (due to Java interop, memory marshaling...), compared to self drawn controls of Maui.Graphics.Controls.

@jonathanpeppers
Copy link
Owner

@zigzag312 if there is a Maui.Graphics alternative to Label, maybe it could be compared to that?

Otherwise, maybe you could compare something self-drawn vs a built-in control?

@zigzag312
Copy link
Author

zigzag312 commented Nov 8, 2022

@jonathanpeppers It seems Label isn't yet implemented: dotnet/Microsoft.Maui.Graphics.Controls#52

I haven't used Maui.Graphics.Controls yet, as it's still just an experiment, but I'm following it, as I'm highly interested in a cross platform UI library with a lower level customizability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants