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
{{ message }}
Repository navigation
[Skia] Compositor.IsSoftwareRenderer is never set, so CompositionCapabilities.AreEffectsFast() is always true #23896
Compositor.IsSoftwareRenderer is never set by any Skia render backend, so it stays null for the whole app lifetime and every consumer treats the target as hardware-rendered regardless of the actual renderer:
CompositionCapabilities.AreEffectsFast() always returns true, even when the scene is rasterized on the CPU (software fallback on Win32/X11, UseMetalOnMacOS = false, WASM without WebGL, framebuffer without DRM, Android without OpenGL). Apps consulting it to decide whether to enable effects (as recommended on WinUI) get the wrong answer, and so does anything keying off CompositionCapabilities.Changed.
CompositionEffectBrush and the acrylic brush implementation consult the flag while recording the scene to generate SKImageFilters the target surface can rasterize; on software targets they currently take the GPU path.
This is a regression: before the rendering refactor to the record/replay architecture (b96ad06), each backend wrapped its paint with Compositor.IsSoftwareRenderer = renderer.IsSoftware(). The refactor dropped all setters — only RenderTargetBitmap still sets the flag, temporarily, around software re-records. The Win32 backend even still carries a per-renderer IRenderer.IsSoftware() that nothing consumes.
Expected behavior 🎯
Compositor.IsSoftwareRenderer accurately reflects whether the selected renderer rasterizes on the CPU, on every Skia target and including GPU-init fallback paths, so CompositionCapabilities.AreEffectsFast() and the effect brushes behave according to the actual rendering mode.
How to reproduce it (as minimally and precisely as possible) 🔬
On any Skia target, force software rendering (e.g. FeatureConfiguration.Rendering.UseOpenGLOnWin32 = false on Windows) and evaluate CompositionCapabilities.GetForCurrentView().AreEffectsFast() — it returns true where it should return false. Internally, Compositor.GetSharedCompositor().IsSoftwareRenderer remains null no matter the backend or renderer.
Workaround 🛠️
None from app code — the flag is internal and nothing sets it.
Renderer 🎨
Skia
Affected platforms 📱💻🖥️
All platforms 🌍
Uno.Sdk version (and other relevant versions) 📦
master
IDE version 🧑💻
N/A
Anything else we need to know? 💬
Regression introduced by b96ad06 (chore: XamlRoot.OnNativePlatformFrameRequested).
Activity
agneszitte commentedon Jul 28, 2026
Related to #23275 based on @ramezgerges's feedback
agneszitte commentedon Jul 31, 2026
@jhanvi03, @khaskoul can you re-validate this issue with latest Uno.Sdk 6.7.0-dev.158 version please
jhanvi03 commentedon Aug 3, 2026
Tested with:
sdk/template: 6.7.0-dev.158
Windows: UnoApp65.zip
MacOS: UnoApp65.zip
Linux: UnoApp65.zip
jhanvi03 commentedon Aug 3, 2026
Issue resolved in latest dev version of SDK/template 6.7.0-dev.158
Tested with: sdk/template: 6.7.0-dev.158
OS: Mac, windows Linux
TFMs: WASM, Desktop