Files
DroidDeck/docs/settings-map.md
T
MaxsTechReview 4349563fd1 feat(display): zero-copy presentation toggle and compositor display buffers (#2905)
* feat(display): zero-copy presentation toggle and compositor display buffers

Adds a Zero-copy presentation switch under Steam Settings, Display,
Session Display (on by default), and a display-buffer allocator in the
compositor: a Vulkan driver that states displayBuffers asks it for the
memory of the images it exports, so frames presented through the nested
compositor are gralloc buffers that go on the display layer without a
copy. Compressed buffers are offered only where the device's allocator
matches the layout the drivers render to; everything else stays on the
copy path.

The private buffer protocol is renamed to droiddeck-ahb-v1.

* fix(display): zero-copy frames keep the full refresh rate

Two buffers set on the game layer inside one refresh replaced each other, and a frame that slipped into the next refresh made the compositor hold and drop the on-time frame behind it. The layer now queues buffers, and a refresh takes a second frame when the one before it took none. The pacing tool no longer counts its dump time in the frame rate.

* Keep cropped scenes on the display layer and pace layer frames evenly

Accept any in-bounds source crop for the display layer and map the draw
geometry the same way the copy path does. Time layer frames against the
display's frame timeline, and when the game's rate is a steady whole
fraction of the refresh rate show each frame a fixed number of refreshes
after the last so uneven arrivals no longer reach the screen.

* List zero-copy in the settings map

* Hold display buffers until the display releases them

A buffer the game or gamescope rendered straight into went back to its
client as soon as the next one was latched, with the display's release
fence attached to the dma-buf. The KGSL driver does not wait on that
fence, so the client could draw into a buffer the panel was still
reading. Display buffers now wait for the release fence before the
release event, and gamescope composites only into output images the
host has released.

* Keep the game picture copy-free when an overlay has no display layer

When the display cannot give a second layer of its own to an overlay,
the compositor tells gamescope how many planes it can show directly.
gamescope then composes its overlays into the game picture, which still
reaches the display without a copy.

* feat(session): the panel refresh rate follows the session's frame rate

The session learns the panel's refresh rates and reports the refresh rate and
frame rate it wants. The panel moves to the highest rate the frame rate divides
evenly, frame generation counts at its output rate, and a panel whose rate the
system holds offers only that rate.

* feat(session): the panel follows a frame rate the game holds on its own

The compositor reports the game's frame rate once a second. A rate that
holds for three seconds and divides a panel rate becomes the content
rate when neither the app's limit nor the session's limiter is setting
the pace, so a game capped in its own settings gets a panel rate its
frames divide into. A rate that was dropped has to hold twice as long
before it is used again.

* Show generated frames on the game's display layer

With frame generation on, the game's own frames stay on their display
layer untouched and each generated frame is placed on the same layer
between them, timed across the game's frame interval. The compositor
pass is kept when effects, HDR routing or a cursor need it, or when the
panel cannot show the multiplied rate.

* Keep scaling, generated frames and HDR on the display layer

A scaler or frame generation with zero-copy on now draws once into the
display layer instead of falling back to the copied surface. HDR output
goes to the layer when the panel supports it; on a panel without HDR the
picture is tone-mapped on the same path, and the toggle is labelled to
match what the panel can do.

* Spread a frame limit the refresh rate does not divide evenly across refreshes

* Cover the spare-tick and panel-rate paths in the compositor source tests

* Pin the gamescope build with the display-plane, release, refresh and limiter patches

* Give the layer and terminal-caller harnesses the black fill state they compile against

* feat(display): switch HDR during a session without restarting the app

The compositor now offers HDR whenever the device can present it, and the
HDR setting only decides whether the session uses it. Both HDR switches set
gamescope's hdr_enabled, the compositor's HDR output and zero-copy for the
running session. gamescope patch 0139 lets hdr_enabled change after start.
The 'Restart the app to apply.' hint is removed from every locale.

* Remake the output images in the new format when HDR is switched during a session

* Pin the gamescope build that switches HDR during a session

* Apply a saved HDR opt-out at session start and keep HDR retries with their session

* Serialise the HDR output switch with the gate opening

* feat(display): keep the client's HDR setting and the session's in step

The session publishes its HDR state with the other device controls and the
client helper applies it to the client's own display setting. A change made in
the client is reported back and goes through the same switch the drawer and
Session Display use, so all three always show one value.

* fix(desktop): keep the display-buffer socket when the runtime directory is cleared

The desktop launcher removed everything in the runtime directory except the
compositor's Wayland socket, which took the display-buffer socket with it, so
no desktop program could ask for display buffers and every frame was copied.

* fix(display): the client's HDR setting follows the session in every client mode

The bridge only ran when a variable nothing sets was present, so the client's
HDR setting and the session's never met. It now runs whenever the session
publishes an HDR state, and a client that has no such setting is asked again
only every ten seconds.

* fix(display): harden display-buffer hand-off, layer fallbacks and HDR sync

- Stop closing a buffer handle's descriptor the allocator still owns, and free an allocation whose reply could not be sent.
- Rebuild the advertised buffer formats when zero-copy is switched during a session.
- Fall back to the copy path when a layer buffer cannot be allocated, and hide the game layer when it is skipped for a frame.
- Keep a release fence that has not signalled instead of rendering into a buffer the display still reads.
- Ignore a refresh-target reset from a client that does not own the target.
- Restart the content-rate measurement after a pause, clear it when the game stops, and lengthen engagement only for a rate that was released before.
- Compare colour conversions by their values, and read padded cursor buffers at their row width.
- Use the running session's mode for the HDR and zero-copy settings, probe the display before screen effects are pushed, retry a held panel mode, and ignore callbacks after the activity is destroyed.
- Write a newer HDR value while an earlier write is settling, and reapply the value after the bridge is reinstalled.
2026-11-21 00:26:50 -05:00

7.4 KiB
Raw Blame History

Where settings live

Generated from SettingsIndex.kt by SettingsMapTest. Run UPDATE_SETTINGS_MAP=1 ./gradlew :app:testDebugUnitTest --tests '*SettingsMapTest*' after changing the index.

Links of the form droiddeck://settings/<section> open a Settings section directly.

Settings

Setting Where Also matches
Linux runtime Settings › Overview (droiddeck://settings/overview) ubuntu, linux, repair, update
Child-process limit Settings › Overview (droiddeck://settings/overview) phantom, process, killed, background
Steam account Settings › Overview (droiddeck://settings/overview) steam, login, sign in
Override Steam's core choice Settings › Performance (droiddeck://settings/performance) steam client cores, cpu
Game cores Settings › Performance (droiddeck://settings/performance) cpu, pin, cores, affinity
Save power on steady games Settings › Performance (droiddeck://settings/performance) cpu
Threaded GL Settings › Performance (droiddeck://settings/performance) opengl, gl
Zink: lazy descriptors Settings › Performance (droiddeck://settings/performance)
Skip GL error checks Settings › Performance (droiddeck://settings/performance)
gamescope: realtime GPU queue Settings › Performance (droiddeck://settings/performance) gamescope
Hold the GPU at its top clock Settings › Performance (droiddeck://settings/performance) gpu, clock, max
Clear cached apps before a session Settings › Performance (droiddeck://settings/performance) memory, ram, crash, sleep, killed
Background apps during a session Settings › Performance (droiddeck://settings/performance) memory, ram, background apps
Memory readout Settings › Performance (droiddeck://settings/performance) memory, ram, overlay
Turnip: sysmem rendering Settings › Performance (droiddeck://settings/performance)
Skip Steam's xalia helper Settings › Performance (droiddeck://settings/performance)
droiddeck-esync Settings › Performance (droiddeck://settings/performance) esync, sync, wine
droiddeck-fsync first Settings › Performance (droiddeck://settings/performance) fsync, sync, wine
droiddeck-ntsync Settings › Performance (droiddeck://settings/performance) ntsync, sync, wine
Run proot without seccomp Settings › Performance (droiddeck://settings/performance) proot
proot fast path Settings › Performance (droiddeck://settings/performance) proot
Run without proot (experimental) Settings › Performance (droiddeck://settings/performance) proot
Draw the cursor inside gamescope Settings › Performance (droiddeck://settings/performance) mouse, cursor
Host name Settings › Performance (droiddeck://settings/performance) name
Controller Settings › Controller (droiddeck://settings/controller) gamepad, buttons, mapping, profile, remap
Smart glasses Settings › Smart glasses (droiddeck://settings/glasses) xreal, viture, vr, ar
Theme Settings › Launcher (droiddeck://settings/launcher) color, dark
App scale Settings › Launcher (droiddeck://settings/launcher) size, zoom
App icon Settings › Launcher (droiddeck://settings/launcher)
Animations Settings › Launcher (droiddeck://settings/launcher)
Sidebar labels Settings › Launcher (droiddeck://settings/launcher) sidebar
Language Settings › Launcher (droiddeck://settings/launcher) translate
Use as Home screen Settings › Launcher (droiddeck://settings/launcher) home screen, launcher
Launcher orientation Settings › Launcher (droiddeck://settings/launcher) rotate, portrait
Session orientation Settings › Launcher (droiddeck://settings/launcher) rotate, portrait
Fullscreen Settings › Launcher (droiddeck://settings/launcher)
Dual screen launcher Settings › Launcher (droiddeck://settings/launcher) thor, second screen, bottom screen
Warn when storage is low Settings › Launcher (droiddeck://settings/launcher)
SteamGridDB API key Settings › Launcher (droiddeck://settings/launcher) artwork, steamgriddb
Source Settings › Launcher (droiddeck://settings/launcher) mirror, china
HTTP proxy Settings › Launcher (droiddeck://settings/launcher)
Latest session logs Settings › Developer (droiddeck://settings/developer) logs, log, bug, report, crash, zip
Session logs Settings › Developer (droiddeck://settings/developer) logs
Game debug logs Settings › Developer (droiddeck://settings/developer) logs, wine, proton
Enhanced diagnostics for next session Settings › Developer (droiddeck://settings/developer) logs
Reset all settings Settings › Developer (droiddeck://settings/developer) default
Developer tools Settings › Developer (droiddeck://settings/developer) agent, ai, claude, codex
Detailed graphics logs Settings › Developer (droiddeck://settings/developer) logs, gpu

Tabs

Setting Where Also matches
Storage Tabs › Storage sd card, space, uninstall, disk
Syncthing Tabs › Syncthing syncthing, saves
Download speed tier Tabs › Downloads download, speed, bandwidth, slow
Downloads at a time Tabs › Downloads download, parallel, queue, at once
Tabs Tabs › More tabs, hide, reorder, agent, stores, edit tabs

In-game menu

Setting Where Also matches
Frame limit In-game menu › Display fps, cap, limit, non-steam, desktop
Frame generation In-game menu › Display lsfg, lossless, fps
Scaling filter In-game menu › Display upscale, fsr, sharpness
Performance HUD In-game menu › Performance HUD fps, counter, overlay, performance
Hold the GPU at its top clock In-game menu › Performance HUD gpu, clock, max
Touchscreen In-game menu › Controller touch, mouse, direct, touchpad, click
On-screen controls In-game menu › Controller on-screen, controls, touch controls, buttons
Steam touch layout In-game menu › Controller touch layout, edit layout, on-screen
PC keyboard In-game menu › Controller keyboard, typing
Report a problem In-game menu › Session logs, log, bug, crash, share, zip
Background behavior In-game menu › Session sleep, background, native, resume

Steam quick menu (•••)

Setting Where Also matches
Frame limit Steam quick menu (•••) › Performance fps, cap, limit, steam games
Performance Steam quick menu (•••) performance overlay, fps, counter, tdp

Steam or Desktop options (swipe up)

Setting Where Also matches
Session display Steam or Desktop options (swipe up) › Display resolution, scaling, hdr, refresh, zero-copy
Graphics drivers Steam or Desktop options (swipe up) › Display turnip, driver, gpu, adreno, mali
Offline mode Steam or Desktop options (swipe up) › Steam offline, steam
Microphone Steam or Desktop options (swipe up) › Audio microphone, voice
Background behavior Steam or Desktop options (swipe up) › Session sleep, background
Library Steam or Desktop options (swipe up) › Library second library, sd card, steam library