From d5d62ab4062b496f0a6c2b6ced5d4da12031ae7c Mon Sep 17 00:00:00 2001 From: ipavlin98 Date: Wed, 18 Nov 2026 09:01:16 +0300 Subject: [PATCH] The camera jitter is described as dlaa_cam_jitter, and the game's matrix copies skip it at once while DLSS is not running --- docs/settings.md | 1 + runtime/vk_dlaa.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/settings.md b/docs/settings.md index 18e61333..90547633 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -174,6 +174,7 @@ Many rows below are developer tools that only act together with another setting | Setting | What it does | Effect of changing it | Safety | | --- | --- | --- | --- | +| `dlaa_cam_jitter` (default `1`) | Game 1.4.3: `1` puts the jitter fed to DLSS into the game's camera (the projection's centre terms and the view-projection, where the game copies them into its camera blocks); `0` moves the viewport of the scene's draws instead, as on the other game versions. Needs `ubo_snapshot`. | With `0`, water seen at a low angle flickers with DLAA: the game's full-screen passes rebuild positions with a camera the scene was not drawn with; a test setting. | Caution | | `dlaa_jitter` (default `1`) | `0` turns off the camera jitter fed to DLSS. | DLSS gets no jitter between frames; a test setting. | Caution | | `dlaa_maskdebug` (default `0`) | `1` shows the reactive mask in place of the picture. | The frame shows a debug image while it is set. | Caution | | `dlaa_mv` (default `1`) | `0` sends zero motion vectors to DLSS. | DLSS sees no motion, so moving content can smear; a test setting. | Caution | diff --git a/runtime/vk_dlaa.c b/runtime/vk_dlaa.c index 3475a75a..ce2e601c 100644 --- a/runtime/vk_dlaa.c +++ b/runtime/vk_dlaa.c @@ -996,7 +996,7 @@ void vk_dlaa_game_present(void) { __atomic_add_fetch(&CJ.presents, 1, __ATOMIC_R // The game's thread, after a 64-byte memcpy: lr is the copy's return address into the game, dst where it copied to. void vk_dlaa_camera_copied(uint64_t lr, uint64_t dst) { - if ((lr != CAMJ_P_LR && lr != CAMJ_VP_LR) || !cam_mode()) return; + if ((lr != CAMJ_P_LR && lr != CAMJ_VP_LR) || !cam_mode() || !dl_active()) return; float *m = (float *)(uintptr_t)dst; uint64_t blk = dst - (lr == CAMJ_P_LR ? 0x70 : 0x30); plat_mutex_lock(&CJ.lk);