Skip to content

[Skia] Compositor.IsSoftwareRenderer is never set, so CompositionCapabilities.AreEffectsFast() is always true #23896

Closed

Description

@ramezgerges

Current behavior 🐛

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

  1. added
    kind/bug
    triage/untriaged
    on Jul 28, 2026
  2. agneszitte commented on Jul 28, 2026

    @agneszitte
    Member

    Related to #23275 based on @ramezgerges's feedback

  3. agneszitte commented on Jul 31, 2026

    @agneszitte
    Member

    @jhanvi03, @khaskoul can you re-validate this issue with latest Uno.Sdk 6.7.0-dev.158 version please

  4. jhanvi03 commented on Aug 3, 2026

    @jhanvi03

    Tested with:
    sdk/template: 6.7.0-dev.158
    Windows: UnoApp65.zip

    MacOS: UnoApp65.zip

    Linux: UnoApp65.zip

  5. jhanvi03 commented on Aug 3, 2026

    @jhanvi03

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugtriage/untriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions