Skip to content

Conversation

@timunie
Copy link

@timunie timunie commented Jul 11, 2025

Hey,

this PR is solely meant to discuss the options we have.
I noticed that having many icons rendered at the same time (for exmple in the icon pack browser) I can see a performance drop. This can be reduced if the icons are renderd outside the UIThread, however Avalonia doesn't allow this.

the idea

SkiaSharp (which is almost always available in standard Avalonia-Apps) can render the path into a Bitmap in an async manner. This can be consumed by the Avalonia app then. But this would require an API to get the data as a Bitmap. See code changes of this PR.

Additional idea

We have to care about Flipping the data in several places which one needs to track "by hand". Can't we have an attribute or property on the icon pack to read and process the data? The flip itself can even happen inside the proposed API to read the raw path.

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

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