You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SKXamlCanvas is using software rendering (except on Uno Platform Skia Desktop targets) which get as slower as the size it is rendered to, which is particularly visible on 4K screens.
The proposed solution
Use SKSwapChainPanel on supported platforms, being iOS/Android targets (catalyst does not support OpenGL) and WebAssembly. On Skia targets, SKSwapChainPanel automatically uses hardware acceleration.
On Windows, AngleSwapChainPanel will be available for WinAppSDK in SkiaSharp 3.0.
The problem
The current implementation for WinUI and Uno Platform relies on
SKXamlCanvas
:Mapsui/Mapsui.UI.WinUI/MapControl.cs
Line 33 in 21a2581
SKXamlCanvas
is using software rendering (except on Uno Platform Skia Desktop targets) which get as slower as the size it is rendered to, which is particularly visible on 4K screens.The proposed solution
Use
SKSwapChainPanel
on supported platforms, being iOS/Android targets (catalyst does not support OpenGL) and WebAssembly. On Skia targets, SKSwapChainPanel automatically uses hardware acceleration.On Windows,
AngleSwapChainPanel
will be available for WinAppSDK in SkiaSharp 3.0.Here's an usage example for both canvases.
The text was updated successfully, but these errors were encountered: