Record the live Gamescope loader identity

This commit is contained in:
Kurt Himebauch committed 2026-12-03 11:24:20 -05:00
1 parent 804fa55b16
commit 515377f283
1 file changed
+5 -3
+5 -3
View File
@@ -1,6 +1,6 @@
# Adreno 740 frame loss when acquire fences are unavailable
**Investigation, not a fix.** Evidence through December 3, 2026, 16:17 UTC. The safety fallback stays in place. We have not accepted a producer fence on the Thor or verified an FPS benefit.
**Investigation, not a fix.** Evidence through December 3, 2026, 16:23 UTC. The safety fallback stays in place. We have not accepted a producer fence on the Thor or verified an FPS benefit.
## Reproduction and controls
@@ -40,13 +40,15 @@ The native zero-copy OFF run also had HDR off. The observed copy-wait measure wa
The paired capped **OFF** control recorded **730 actual presents over 24.337 s (30.00 FPS)**; a separate 10 s counter window recorded **301 layer copies and no host direct admissions**. Do not compare this capped control directly with the uncapped measurements above.
Two **ON** attempts failed closed before the host could bind the peer to the actual Gamescope process. The guest marker was missing or unusable; a second marker was not observed before cutoff. A wrapper marker can correspond to an early `gamescope --version` invocation, not the real Wayland backend. One follow-up identified a unique live Gamescope peer from socket credentials, but the sample ended before executable identity could be read. **No gate was armed, no native acquire fence was accepted, and no ON FPS result is available.** The device was restored after each pass.
Two **ON** attempts failed closed before the host could bind the peer to the actual Gamescope process. The guest marker was missing or unusable; a second marker was not observed before cutoff. A wrapper marker can correspond to an early `gamescope --version` invocation, not the real Wayland backend. **No gate was armed, no native acquire fence was accepted, and no ON FPS result is available.**
**16:23 UTC, read-only identity follow-up.** The compositor's direct socket peer credentials (`SO_PEERCRED`) identified one actual Gamescope client. The first read missed the live sample because the timestamp parser did not handle a padded epoch field; the correction passed an offline check. A later read, from an app-run native helper under the same UID, showed that the live peer's `/proc/<peer>/exe` was the packaged guest loader, `libddexec.so`. Its executable inode did not match the SHA-verified staged Gamescope binary. The sampled process reported no tracer and did not have the obvious session root as its parent. The probe tool did not capture mappings or process start time; that is a tooling gap, not evidence that access was denied. The device was restored to official idle with the gate clear. No FPS outcome changed.
## Hypotheses and next test
1. The adjacent-build drop is consistent with the missing-fence guard routing a previously fast path to copy. Explicitly disabling native zero-copy reproduces the same rate, but does not establish why the copy wait is about 46 ms.
2. A fence from the final writer, preserved through Gamescope and accepted by the host, could allow safe direct scanout. The neutral probe establishes that export is possible; the real game's present path has not been verified.
3. The immediate blocker is identity, not measured fence throughput. Observe the uniquely matched peer while live and confirm its executable or loaded mapping against the expected artifact. Confirm the game's loaded Linux ICD separately. Do not arm from a wrapper marker, process name, or command line alone.
3. The immediate blocker is identity, not measured fence throughput. Test whether the launcher can report the exact Gamescope worker identity immediately before its real Wayland backend launch, then independently match it to the connected socket peer. Check live process start time and loaded mapping against the expected artifact where the tooling can capture them. Confirm the game's loaded Linux ICD separately. An early `--version` process, generic wrapper marker, process name, or command line is not sufficient. If identity remains unresolved, leave the gate clear.
Run OFF/ON/OFF with the same test binaries, shot and camera, runtime, resolution, refresh, caps and protection state. Record exact hashes and route per run. Keep the capped route check separate from uncapped performance. Fix the warm-up and sampling windows, run at least three repetitions per condition, and record actual presents and frame-time distribution separately from source and compositor rates. In each window count producer fence emits, matching Gamescope relays, host fence accepts, direct admissions, and reasons for fallback.