## Changes
- Add vertical page scrolling using the controller's right stick.
> Reuse existing right stick axis detection for better controller
compatibility.
> Convert stick movement into scroll events for Compose scrollable
components.
> Add a dead zone threshold and rate limiting to prevent unintended
scrolling.
## Compatibility
- Supports controllers with different right stick axis layouts.
- Scroll behavior depends on the page's handling of scroll events.
Suggest by _corcse on discord
UwU
- **Perf:** Optimize DD FrameGen flow image initialization and shader
sampling.
> FrameGen should start faster and be more reliable.
- **Perf:** Skip unused FLOWREG image initialization and remove
redundant final FLOWREG barrier.
- **Perf:** Use initialization barriers for fresh framegen images.
> Helps with reliability and performance.
- **Perf:** Reserve capacity for image initialization barriers and Use
fixed storage for image initialization barriers.
- **Perf:** Batch FrameGen image descriptor updates and some FrameGen
image barriers.
> Less calls to the vulkan API.
- **Perf:** Skip unused global motion reduction sums.
- **Docs:** Add OF3_FLOWREG shader documents and some comments.
> This should be helpful when making future changes in the shader, only
for testing and development.
## Fixes
- Fix: Derive OF3 Flow Length from Array Size.
> Should make future changes easier.
- Fix: DD FrameGen scratch resource leak on resize.
- Fix: Present semaphore synchronization to prevent device loss on some
devices.
> Reported by a user, DDFG never worked on his device, this didn't
actually helped him, but im keeping because it can be useful for other
devices.
> issue reported on discord [Link to bug
report](https://discord.com/channels/1552707793247539220/1575946870151446589)
> This file contains the investigation made, in Portuguese:

## Performance
**OLD DroidDeck FrameGen**
| FPS (reported) | 1% low | Frametime | Game | DDFG | Device | DD
version |
|:--:|:--:|:--:|:--|:--:|:--|:--|
| 39.9 → 118.8 | 16.1 | 25.1 ms | Mass Effect | 3× | RP Nova, 12 GB,
Snapdragon 8 Gen 2 | 0.7.11 Stable |
| 32.5 → 91.4 | 21.9 | ## | NieR:Automata | 3× | S26U, SD 8 EG 5, Adr
840 | Preview b08d8e8 |
| 25.2 → 60.0 | ## | ## | Roadside Research | 4× | Odin2 Portal, Adreno
740 | 0.7.11 Stable |
*Report 1 — coleslaw117*
*Report 2 — twitchlemaxou*
*Report 3 — Dylon*
**NEW DroidDeck FrameGen**
| FPS (reported) | 1% low | Frametime | Game | DDFG | Device | DD
version |
|:--:|:--:|:--:|:--|:--:|:--|:--|
## Testing
- All checkd on Github green
- APK compiles
- All verification passed on my fork
- Working on test build
* perf(effects): half-precision upscalers, AMD CAS and a gather-based NIS from Bannerlator
The screen-effect chain ran every upscaler and CAS in fp32, and NIS read its
36-tap support and coefficient tables per pixel. Ported from Bannerlator
(The412Banner/Bannerlator 16595ed8 + 671feb8c), where the same shaders run in
its Wayland compositor:
- SGSR, SGSR HQ, FSR EASU and RCAS get a half-precision build of the same
source (-DDD_HALF=1, *_half_frag.h). The divide-by-zero guards DroidDeck
added to EASU, RCAS and CAS are kept.
- CAS: AMD's FidelityFX CAS (ffx_cas.h v1.0.2, 5-tap), half precision.
- NIS: a prepass writes the scene with luma in alpha at scene size
(nis_luma.frag); nis3.frag gathers that luma and reads its coefficient banks
from a 4 KB uniform buffer (nis_coef.h, set 1 of its own pipeline layout).
Without the buffer, NIS falls back to nis.frag.
- debug.droiddeck.upscale.shaders=old builds the previous fp32 set, for A/B.
The half SGSR, SGSR HQ, CAS, NIS luma and nis3 SPIR-V is identical to
Bannerlator's (glslang 16.2.0). Notices: AMD CAS added to
THIRD_PARTY_NOTICES.txt; NVIDIA NIS covers the new NIS files.
* fix(effects): NIS prepass address at full precision; fast NIS only where it is safe
From review:
- nis_luma.frag: the half build made gl_FragCoord RelaxedPrecision, so a
16-bit load rounds pixel centres past x = 1024 (1279.5 -> 1280) and
texelFetch reads the wrong or an outside texel. Only colour and luma are
mediump now; the load and the integer address stay full precision
(checked in the SPIR-V).
- Fast NIS keeps luma in alpha, so it runs only on chain formats with at
least 8 alpha bits; the 10-bit HDR composition format (2-bit alpha) uses
nis.frag.
- A driver that rejects nis3_half or nis_luma_half gets nis.frag instead of
a disabled effects chain.
- If the NIS luma target cannot be allocated, that frame uses SGSR from the
scene instead of skipping every effect.
winegstreamer puts a capssetter, from the debug plugin, at the front of
every video stream's conversion chain. Wine creates it by name at run
time, so check-needed.py, which follows linked libraries, could not
catch the missing plugin, and those videos played nothing on Bionic.
The tool still packed the 12.8 layer (v16-unwind). The v18 layer is the build
of DroidDeck-Proton 11-14.1 Bannerlator ships: Valve Wine a47c73f52fd7, the
GE-Proton11-14 picks, and the ARM64EC code-map and unwind fixes 12.8 carried.
Same layout as 12.8 (three more files), so only the pin changes. Tools are
named DroidDeck-Bionic-14.1-rN; the app's version compare offers 14.1 over 12.8.
* fix(bionic): run games from a DroidDeck-Proton prefix that start through a launcher
Europa Universalis IV, moved from DroidDeck-Proton to DroidDeck-Bionic, never got past its launcher:
- The network adapter list (GetAdaptersAddresses) never answered with the layer's default if_nameindex code, so the
Paradox Launcher waited forever. launch.sh sets WINE_NEW_NDIS=1 (the layer's getifaddrs code); a game's
environment can still set 0.
- The game reported "Steam not detected": the prefix still named Proton's steam.exe (PID 0x20) as Steam's running
client, and here that PID is the program Steam started, which quits after starting the game. launch.sh writes
the PID this tool's own prefixes carry (0xfffe) before Wine starts.
- Its Workshop mod was missing: DroidDeck-Proton's s: drive names the guest path of the Steam library, which this
Wine cannot follow. proton gives the prefix's guest drive links their Android paths for the launch; a session's
start gives them their guest paths back.
* fix(bionic): give each launch its own temporary file for the registry and drive rewrites
* Open the session menu on the first back tap instead of after the double-tap window
* Hold the GPU clock up while a session panel is open over the game
* Keep the double back tap working after the first tap opens the menu
The first tap opens the menu at once, and opening the menu cleared the
pending tap, so a second tap closed the menu instead of opening Steam's
quick menu. The tap that opened the menu now keeps its window, and a
second back press inside it goes to the double-tap action.
Outside Steam both taps toggle the menu, so a double tap no longer opens
and then closes it.
* fix(session): drop pending back taps on focus loss and departure
* fix(session): drop pending back taps when the drawer closes or another panel opens
* fix(session): drop the quick-menu input's pending tap when the drawer closes
* fix(session): keep a back press already down when the drawer closes
* fix(input): a captured touchpad drives the pointer
Android reports a captured touchpad's events as SOURCE_TOUCHPAD with the
finger positions on the pad and the movement in AXIS_RELATIVE_X/Y. The
capture handler only accepted SOURCE_MOUSE_RELATIVE, so every captured
touchpad event was dropped and the touchpad stopped working in a session.
Read the relative axes for a captured touchpad, and count a touchpad as
an attached pointer for the Auto relative mouse choice and for pointer
capture. A touchpad that declares SOURCE_TOUCHPAD is not captured for the
whole session, so Android keeps its cursor and gestures until a game holds
the pointer.
* fix(input): keep captured touchpad motion without relative axes
Some builds do not provide AXIS_RELATIVE_X/Y for a captured touchpad
(the AOSP include_relative_axis_values_for_captured_touchpads flag can
leave them out). Fall back to the movement between the pointer's
successive absolute positions, tracked per pointer id, and clear the
positions when capture changes or the pointer ends.
* fix(input): key captured touchpad positions by device too
A pointer id is only unique within its device, so the fallback positions
could collide between two touchpads or a replaced device. Key them by
device id and pointer id, and cover it with a test.
* fix(input): end only the touchpad that lifted
ACTION_UP and ACTION_CANCEL cleared every device's fallback positions.
Forget only the device that ended, so a second touchpad keeps its
baseline; a capture change still resets all of them.
* Give a captured touchpad taps, two-finger scroll and clickpad presses
* Keep captured touchpad clicks apart from mouse buttons
A tap's synthetic release shared the mouse's held-button owner, so it
could release a mouse button that was still held. Captured touchpad
presses now use their own owner, released when capture ends. A physical
pad press also keeps a later second finger from turning into a
right-click tap.
* Keep physical touchpad buttons on the mouse owner
A press made before capture was released under the captured owner and
stayed held. Physical buttons now always use the mouse owner, and only
gesture clicks use the touchpad owner. A physical press also releases a
pending tap click first, so the two never merge.
---------
Co-authored-by: maxjivi05 <maxjividen@gmail.com>
* fix(gamescope): only the first finger drives the emulated mouse
In the click touch modes every finger warped the X pointer and any
finger lifting released the click, so a second finger made the pointer
jump between both contacts and dropped whatever the first was dragging.
The first finger of a gesture now owns the emulated mouse until it lifts,
and later fingers are ignored until every finger is up.
* fix(gamescope): motion into the screen edge does not decide the pointer hold
A drawn-cursor game whose X pointer sat at the screen edge looked like it
held the pointer whenever motion pushed outward, which kept the hold on
and turned touch drags into relative motion. The sent motion is clamped
to what the pointer can reach before the comparison.
* fix(gamescope): touch warps do not decide the pointer hold
* fix(gamescope): only touch-down warps are left out of the pointer hold
Touch drags are real pointer motion, so they count toward releasing the
hold again. Only the jump a touch-down makes is skipped.
* test(semaphores): tell a child hung in qemu-user from a guest deadlock
* test(semaphores): calibrate qemu's guest base and end a stuck child on timeout
* fix(desktop): apps built on Qt's web engine start in the desktop and from AppImages
The desktop runs as root, and Qt WebEngine refuses to start as root with its
sandbox on, so Help Center and any other QtWebEngine app exited at once. Flatpaks
already had the sandbox off; the desktop and the AppImage runner now set it the
same way they turn off Firefox's sandboxes.
* fix(desktop): Software Sources and the driver manager open
software-properties-qt imports PyQt6.uic and UbuntuDrivers but does not depend
on the packages that ship them, so both tools died with an ImportError on the
installed-without-recommends desktop. The desktop package list now carries
pyqt6-dev-tools and ubuntu-drivers-common.
## Problem
When Vulkan returns `VK_ERROR_DEVICE_LOST`, the compositor stops
presenting and remains in a terminal state. Shared-memory-backed images
also need to keep receiving fresh pixel data while the renderer is
unavailable.
## Fix
- **Fix:** Keep the shared-memory image backup up to date while Vulkan
is unavailable.
- **Fix:** Preserve incoming pixel updates in CPU memory instead of
relying on stale Vulkan resources.
- **Fix:** Keep the unsafe device-reinitialization path guarded when GPU
work may still be pending.
- **Build:** Add the missing Frame Generation stub for builds without
that feature.
- **Tests:** Cover shared-memory updates during device loss and the
recovery failure path.
The recovery path is best-effort and remains optional; it does not
become a requirement for starting the rest of DroidDeck.
## Info
This hopefully should help in some cases, this fix was found in the
investigation for the bug in pr #3343, idk if it will fix that problem.
But should essentially the last hope for some devices in some cases.
## Testing
- Added regression coverage for shared-memory pixel updates during
device loss.
- Added test stubs for renderer-module cleanup callbacks.
- Full test/build results are tracked by GitHub Actions; device-level
recovery still needs verification on affected hardware.