Title: Shader injection appears to be a no-op — only the ClearType registry tweaks actually affect text?
Verified against master (HEAD 74d0e2f, 2025-12-01) — all referenced files are identical between the released build and master.
Setup
- Monitor: LG 27GS95QE (WOLED / WRGB), layout WrgbStripe, intensity 100%
- Both "Shader injection" and "ClearType optimization" toggled ON
- Diagnostics show injection SUCCESS (Chrome, explorer, etc.), "Optimizing X applications"
-
Text depends entirely on the ClearType toggle, not the shader With shader injection ON, toggling ClearType optimization OFF makes Chrome text fully aliased (the tool writes FontSmoothing=0 / FontSmoothingType=0 via DisableClearType -> SetClearTypeEnabled(false) in Services/DisplayShaderService.cs). Toggling shader injection alone appears to change nothing. Is this expected — i.e., is the ClearType path effectively the only functional mechanism today?
-
ApplySubpixelEffect doesn't seem to render anything Native/DisplayShaderHook/SubpixelShader.cpp -> RenderGlyphRun -> ApplySubpixelEffect only:
- calls PSSetShader on m_context — the hook's own D3D11CreateDevice device, separate from the app's rendering context
- binds a mask SRV with PSSetShaderResources(1, ...)
It never sets the ShaderParams constant buffer, never provides the textTexture input (t0), never issues a draw call or Present. Even if the hook fires, nothing seems to get composited to the screen. Is the actual glyph compositing missing, or am I misreading this?
-
The hook may target the wrong vtable slot DirectWriteHook.cpp InstallHooks hooks vtable[4] of an IDWriteTextLayout instance. In the layout's vtable, index 4 is GetTextAlignment (after QI/AddRef/Release/SetTextAlignment), not IDWriteTextRenderer::DrawGlyphRun (which is at a different index). The comment acknowledges "simplified approach / offset may vary". Is DrawGlyphRun actually being intercepted?
-
--minimized is parsed but never takes effect App.xaml.cs checks e.Args.Contains("--minimized") in OnStartup, but with StartupUri="MainWindow.xaml" the MainWindow is still null at that point, so if (startMinimized && MainWindow != null) never fires and the window always shows. Confirmed bug?
Questions
- Is the shader glyph-rendering pipeline actually implemented, or is the current build a POC where the shader effect isn't wired up to draw yet?
- Is "ClearType optimization" therefore effectively required (rather than a fallback), since it's the only path that changes rendering?
- Which interface/vtable slot is the intended hook target for glyph rendering?
Minimal repro
- ClearType optimization ON, shader injection ON, layout WrgbStripe
- Toggle shader injection off/on -> no visible change
- Toggle ClearType optimization off -> Chrome text becomes fully aliased