wieslawsoltes / Svg.Skia

An SVG rendering library.
https://wieslawsoltes.github.io/Svg.Skia/
MIT License
473 stars 59 forks source link

Question (performance) - does this library use internal off-device caching? #222

Closed daningalla closed 6 months ago

daningalla commented 6 months ago

My Avalonia app will have some auto-complete controls that can have hundreds of items in the data source where each item has an icon. In the source data, there is only be a small number of unique icons (say 6) but each one can be rendered many times over. Best equivalence I can think of is an intellisense/auto-complete popup in IDEs.

Back in the day, a common technique was to perform procedural drawing to memory, then during render time, blit the image onto the device context. This effectively would cache a render of the image so the procedural drawing didn't have to occur for every instance.

Does this library do this?

daningalla commented 6 months ago

Dug into source for my answer, thank you for this great library.