Correct the KWin Wayland stall note: it happens with any drawing, not only the trail

A controlled rerun showed the freeze with the classic ring alone, so the
earlier "trail only" conclusion was wrong. It does not occur with all effects
off, without Sourizz, or when dragging a window. Cause still unknown; the
README now recommends the X11 session instead of turning the trail off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 10:52:56 +01:00
parent 95635db97b
commit ba706a627f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ Adding a config option touches: `config.rs` (struct, `Default`, `sanitize`), `i1
- **egui ids must be unique on screen.** Two `ComboBox`es sharing an id (e.g. both labelled "Style") act as one control and their popups close each other, so the lists could not be opened. `combo()` in `settings.rs` takes an explicit id — never derive it from the label. `examples/click_at.rs` drives the real settings window through XTEST for such checks (it refuses to click unless the pointer is over our own window).
- **Raising an already-open settings window does not work under KWin.** Focus-stealing prevention turns another process's activation request (`ViewportCommand::Focus` after a `SIGUSR1`) into a blinking taskbar entry (`_NET_WM_STATE_DEMANDS_ATTENTION`), so a window buried under others stays buried. `Core::open_settings` therefore kills the old child and spawns a new one, which always maps on top. It is safe because the settings save as they change.
- Process name `sourizz-settings` is truncated to 15 chars by the kernel: use `pgrep -x sourizz-setting`, and never `pgrep -f` from a shell whose own command line contains the pattern.
- **KWin Wayland stalls with a trail (real hardware, Intel + NVIDIA laptop, KWin 6.3.6).** The pointer freezes ~0.5 s every 2-3 s while a trail is drawn; ring alone and idle daemon are fine. Measured and ruled out: our loop blocking (no iteration over 40 ms), buffer allocation (reusing buffers changed nothing), damage size (40-380 kpx per commit, stalls unrelated to it), the D-Bus pointer feed (75-140 positions/s, harmless), waiting for frame callbacks (committing after 20 ms changed nothing), the trail style (`dots` and `rainbow` both stall), pointer speed (slow motion stalls too), the frame rate (`general.fps = 30` still stalls), and continuous commits as such (the ring pulse already commits at 30/s with the pointer still, without stalls). Not tried: KWin on the Intel GPU only (`KWIN_DRM_DEVICES`), position extrapolation for the ring lag. Documented as a known limitation in both READMEs.
- **KWin Wayland stalls whenever we draw (real hardware, Intel + NVIDIA laptop, KWin 6.3.6).** The pointer freezes ~0.5 s every 2-3 s as soon as anything is drawn, even the classic ring alone with `ring.pulse_speed = 0`. It does not happen with `enabled = off` (script and D-Bus feed still running), without Sourizz, or when dragging a window. An earlier "ring alone is fine" result was wrong: the config had changed between tests, so record the config md5 with each run. Measured and ruled out: our loop blocking (no iteration over 40 ms), buffer allocation (reusing buffers changed nothing), damage size (40-380 kpx per commit, unrelated to the stalls), the D-Bus pointer feed, waiting for frame callbacks (committing after 20 ms changed nothing), trail style (`dots`, `rainbow`), pointer speed, frame rate (`general.fps = 30`), continuous commits as such, NVIDIA runtime PM (stays `suspended`). KWin's main thread is not saturated (11-32 % of a core, never in `D` state) and its script kept delivering 100+ positions/s during the stalls, so the wait is probably on the GPU / page flip, with frame callbacks arriving 500-600 ms late. Not tried: a probe client with a variable surface size and rate (would show whether the 1920x1080 shm buffer matters), `KWIN_DRM_DEVICES`, position extrapolation for the ring lag. Documented as a known limitation in both READMEs.
## Testing Wayland without a Wayland session