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

feat: add global toggle for GPU rendering. closes #1645 #1685

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

Kay-STL
Copy link
Contributor

@Kay-STL Kay-STL commented Nov 1, 2024

This PR adds a global toggle to enable/disable GPU rendering, i.e. switching from SKCanvasView to SKGLView. This is primarily useful on Android where canvas rendering can be slow. Closes #1645.

In draft as this is currently just a prototype for the MAUI view, needs to be extended out to the others, but I figured I'd send this to get some feedback.
Figured it would be easier to branch off dev for this rather than continuing from hardware-accelerated, but happy to move these changes over to there if that's better.

@Kay-STL
Copy link
Contributor Author

Kay-STL commented Nov 3, 2024

I've added support for WPF and Xamarin, and I've hooked the existing Blazor support to the new setting.
WinForms has a GL control as well, but unfortunately anything WinForms-related is completely bricked on my machine at the moment...
I don't think any of the other views have GL support available.

@Kay-STL Kay-STL marked this pull request as ready for review November 3, 2024 21:41
@beto-rodriguez
Copy link
Owner

Figured it would be easier to branch off dev for this rather than continuing from hardware-accelerated, but happy to move these changes over to there if that's better.

I agree, this is now ready to go into dev.

beto-rodriguez
beto-rodriguez previously approved these changes Nov 5, 2024
@beto-rodriguez beto-rodriguez merged commit f03c08a into beto-rodriguez:dev Nov 5, 2024
4 checks passed
@beto-rodriguez beto-rodriguez mentioned this pull request Nov 5, 2024
@beto-rodriguez
Copy link
Owner

I merged this for now, but I'll add a couple of improvements on #1692

Thanks for the PR!

@Kay-STL
Copy link
Contributor Author

Kay-STL commented Nov 5, 2024

Sounds good :) Thanks for the merge!

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

Successfully merging this pull request may close these issues.

2 participants