perf(vk): Skip Upscaler Wait, the frame limiter no longer waits for the upscale and the HUD #3135
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3135
Loading…
Reference in a new issue
No description provided.
Delete branch "Veix/Longshot:perf/skip-tail"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
With an upscaler, the game no longer waits for the GPU to finish the upscale and the HUD of the frame before: at 4K DLSS Quality in Castle Town 77.4 -> 95.2 fps, 1% low 56.4 -> 61.2. On by default, with a graphics row to turn it off (Skip Upscaler Wait).
The game's frame limiter waits once a frame (
nvnSyncWait) for the GPU to finish the frame before. With an upscaler, that frame's fence comes after the upscale (DLSS, FSR, the game's own network) and the HUD drawn on it, so the game waited for work that does not change what it reads next: with the GPU having room, the frame took 12.8 ms where 10.2 ms are enough.What this changes:
frame.limiterWait(game/sites/sites.toml, by signature and the build's entry) replaces the frame limiter's call tonvnSyncWait. Its callback (hos_site_frame_limiter_wait,host/nvn_native.c) asks the renderer, and with the row off, or wherever the renderer says no, it makes the call as the game made it.nvnSyncWaititself is unchanged.skip_tail_before_dispatch,gpu/vk/vk_replay.cpp): the replay ends a part right before the gameplay upscale's dispatch and notes it with the frame's value. Each part writes its write-backs at its end (split_ub_flush), so once that part is done on the GPU, guest memory holds the frame's effects up to the upscale.skip_tail_want), written by the menu's applier.skip_tail_wait): the frame's held-back work handed on aswait_innerdoes, its jobs recorded up to the noted part, that part done on the GPU, under one deadline. It is for the fence's own frame only (an exact match of the value), and the GPU's queue is in order, so the game is never more than one frame ahead, as with the old wait.wb_parts, whichmainalready keeps for every mirrored write-back) instead of the whole submission (take_capture,gpu/vk/vk_memory.cpp); a page written in place has no part and waits for the submission, as before.split_ub_flushoff; a part may end only before a plain draw (split_before_draw: Intel); a frame without an upscale (menus, movies, loads); guest memory read in place after the part; a submission stopped at an event wait while guest memory was read in place since the frame before's part; out of time. Each is counted in the log (vk: the frame limiter (HOS_FRAME_SKIP_TAIL): ...).Read first:
skip_tail_waitandskip_tail_before_dispatchingpu/vk/vk_replay.cpp,hos_site_frame_limiter_waitinhost/nvn_native.c, thetake_capturehunk ingpu/vk/vk_memory.cpp.The row is on by default and turns off at once. Written with AI assistance (Claude); the commits carry
Co-Authored-By:trailers.Testing
Tested: Windows 11, RTX 4070 SUPER, driver 621.24.
RX_VK_MEM_CHECK=1on the tour: 0 GPU writes replaced by a sync with the row on (0 of 9619 candidates) and off (0 of 7694), no capture unpaired (115200 and 99600 submits).tests/test_skip_tail_wait.py(new) cutsskip_tail_on,skip_tail_before_dispatchandskip_tail_waitout ofvk_replay.cppand runs every case above on stand-ins, in a process per device case; three planted bugs fail it (the frame before's part taken for this frame's, the stopped-submission case removed, a frame without an upscale answered as a timeout).tests/test_split_before_draw.pynow also checks that the row is off where a part ends only before a plain draw. The whole suite: 834 pass;test_parity_gatesandtest_cursor_hidden_linuxfail, as they do onmain6318f405on this PC.Still to test:
Skip Upscaler Wait (HOS_FRAME_SKIP_TAIL): off, no VRAM mirrors, the wait as before (@Beanstalk).off, a part ends only before a plain draw here (split_before_draw), the wait as before (by hand).Measurements
Verdict: +23 % FPS at 4K DLSS Quality, the 1% and 0.1% lows and p99 better.
Baseline: the row off in the same build, not a
mainbuild: with the row off the site makes the frame limiter's call as the game makes it, so the wait ismain's, and both settings run on one build, interleaved.Setup: Windows 11, RTX 4070 SUPER, driver 621.24, Ryzen 9 9900X; 4K output, NVIDIA DLSS at 67 % render resolution, no FPS cap, V-Sync off, Threaded rendering Auto; the recorded market route, headless, from 5 s after the second Market entry to its end (about 4600-5200 frames a run); one build, the row off and on, interleaved: off, on, off, on. The row off is
main's wait (the site makes the game's call). The median of the two runs each.main's wait) @e57aa01ae57aa01aRisks
split_before_draw); the log names why when the row is on but the device cannot.HOS_FRAME_SKIP_TAIL=0for a run. Off, the frame limiter's call is made as onmain, with what is left of the game's timeout when a part of the wait was already spent.MKWVK_API_VERSIONis 92 (the renderer and the host are built together). The new site relifts the game once.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.MKWVK_API_VERSIONbumped (MkwVkHostorMkwVkRendereringpu/vk/vk_api.hchanged).Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.Tested in game: Windows 11, RTX 4070 SUPER, driver 621.24: played at 4K DLSS Quality and 1440p DLAA with Skip Upscaler Wait switched on and off while playing, no flicker or glitches; headless market route 2v2 interleaved (77.4 -> 95.2 fps) and a tour of Kokiri Forest, the Market, Hyrule Castle and Hyrule Field with RX_VK_MEM_CHECK=1 (0 lost GPU writes, row on and off).
Possibly related, for context:
@review
@beanstalk
Beanstalk test farm · an earlier run: commit
fc37c12(the newer results are in a comment below)Commit
fc37c12· approved by HumanBean (reviewed) · dashboard⚠️ Note: The plan uses the game's own upscaler, so it cannot reproduce the reported 4K DLSS gain or test DLSS frame generation, FSR 3.1 or FSR 4.
⚠️ Note: Stationary pictures cannot establish the absence of transient flicker or verify guest-memory write-back correctness, and the plan does not assert device-specific fallback log messages.
Started at 00:05 UTC.
Estimate: done in about 55 min, from the queue and the testers online now; some jobs can't start yet.
nvidiaamdintelwindows+amdlinux+dgpuigpusteamdeckupscale-wait-tour· frame time p99 (ms)HOS_FRAME_SKIP_TAIL=(reference)HOS_FRAME_SKIP_TAIL=1nvidiaamdintelwindows+amdlinux+dgpuigpusteamdeckCouldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.
nvidia, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'snvidia, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'samd, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'samd, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'sintel, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'sintel, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'swindows+amd, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'slinux+dgpu, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'sWhat was tested
What will be tested · AI plan (
gpt-6.1-terra)The farm will compare main with the PR's default and with Skip Upscaler Wait enabled, using the game's upscaler in Market and Hyrule Field. Two starts per side and switch setting will measure 20-second frame-time segments at full and half render resolution, with stationary picture comparisons. Crashes, picture differences above the tolerance, or frame-time regressions beyond the plan's limits fail the PR; the enabled setting is also compared with the PR default. NVIDIA, AMD, Intel, integrated GPUs and a Linux dedicated GPU are targeted; the Steam Deck target will wait for a matching tester. No tester online now matches steamdeck: that target waits for one.
1(PR only).market-entrance(settings dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switchesHOS_OUTPUT_RES=gpu,RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market-full for 20 s (after 10 s warm-up), set resolution to 4, measure market-half for 20 s (after 10 s warm-up), set resolution to 1, teleport to Hyrule Field, take the picture field to compare with main, measure field-full for 20 s (after 10 s warm-up), measure field-half for 20 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).Measurements on `nvidia`, for the PR description
Verdict: could not be judged on nvidia (2 reports).
Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+xess
NVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+windowNVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
Measurements on `amd`, for the PR description
Verdict: could not be judged on amd (2 reports).
Hardware: 1: linux+amd+radv+igpu
AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAM; 2: linux+amd+radv+igpuAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
Measurements on `intel`, for the PR description
Verdict: could not be judged on intel (2 reports).
Hardware: 1: linux+intel+anv+igpu
Intel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM; 2: windows+intel+intel-proprietary+igpu+windowIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
Measurements on `windows+amd`, for the PR description
Verdict: queued on windows+amd (1 report).
Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4
AMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
Measurements on `linux+dgpu`, for the PR description
Verdict: could not be judged on linux+dgpu (2 reports).
Hardware: 1: linux+amd+radv+dgpu
AMD Radeon RX 9070 (RADV GFX1201), 26.3.1AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpuNVIDIA GeForce RTX 5070, 620.73.4AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
Measurements on `igpu`, for the PR description
Verdict: could not be judged on igpu (2 reports).
Hardware: 1: linux+amd+radv+igpu
AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAM; 2: linux+amd+radv+igpuAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
Measurements on `steamdeck`, for the PR description
Verdict: queued on steamdeck (1 report).
Hardware: 1: linux+amd+radv+igpu+handheld
AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMScene: upscale-wait-tour, from the repository's save market-entrance (dlss=0, vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=gpu, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); upscale-wait-tour: 2 game starts a side, market-full 20 s after 10 s warm-up, market-half 20 s after 10 s warm-up, field-full 20 s after 10 s warm-up, field-half 20 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (
@Beanstalkon this PR runs it again)Nothing was measured: no metric came back.
Flags and settings
HOS_FRAME_SKIP_TAIL1As Markdown for the PR description:
The testers' hardware
nvidiaNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMnvidiaNVIDIA GeForce RTX 4070, 621.24.0AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAMamdAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMamdAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMintelIntel(R) Graphics (RKL GT1), 26.2.411th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAMintelIntel(R) UHD Graphics 630, 0.404.2115Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAMwindows+amdAMD Radeon RX 9070 XT, 2.0.416AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAMlinux+dgpuAMD Radeon RX 9070 (RADV GFX1201), 26.3.1AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAMlinux+dgpuNVIDIA GeForce RTX 5070, 620.73.4AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAMigpuAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMigpuAMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAMsteamdeckAMD Custom GPU 0405 (RADV VANGOGH), 26.1.99AMD Custom APU 0405, 16 GB RAMRecommendation: Request changes. The new setting is read concurrently without synchronization, and the fallback can wait longer than the game's requested timeout. The reported FPS gain is promising, but the comparison does not measure this branch against the base build.
The change lets the frame limiter wait only through the gameplay upscale when the new setting is enabled. It reports a substantial gain on one NVIDIA setup, at the cost of additional synchronization logic and an experimental player-facing setting.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Should fix (2): not blocking, but worth doing before merging.
gpu/vk/vk_replay.cpp:9237: The setting is read without synchronization while the settings applier writes it under a different lock. (more on the line) Do: Read the published immutable settings snapshot or publish this setting through an atomic shared by all callers.host/nvn_native.c:1307: The fallback restarts the original wait with the full timeout after the partial wait has already spent it. (more on the line) Do: Track the elapsed time across both attempts and pass only the remaining timeout to the fallback, preserving the original call's result semantics.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
@fixdoes its part first: Avoid the extra renderer wait poll when the setting is off.)@fixcan do L1, L2 and L3.Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base build. The PR reports 77.4 to 95.2 FPS and 56.4 to 61.2 FPS 1% low in two interleaved runs per setting on a Windows RTX 4070 SUPER, but both sides used the PR build. The row-off path also executes the new hook and an extra renderer wait poll, so it does not measure the full change against main.
Other systems: The enabled path changes replay timing and capture write-back waits on mirrored-memory GPUs, including AMD and Linux; those runs remain outstanding. Intel and devices without VRAM mirrors are intended to fall back, but the hook and setting checks still run. DLSS frame generation and Steam Deck behavior also remain untested according to the PR.
Switches: HOS_FRAME_SKIP_TAIL is added, mapped to Skip Upscaler Wait, and defaults off. The switch table and user documentation are updated. The off default limits exposure, but the required per-platform measurements have not yet established the right default.
Reviewed:
e57aa01ac2against6318f4056e: Read the repository rules, contribution guide, PR template, standards, commit history and the diff, with focused inspection of the replay, capture, settings and host wait paths. Skimmed translations and generated settings changes. The requested review checklist and adjacent Tooling checkout were absent. The large changed code files and all their dependent callers were not read in full.; nothing run (a code review).Checked and fine:
Testing: No code, scripts or tests were run. CI was still running in the supplied status.
Overlaps and merge order: Not checked; network access is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -9158,0 +9234,4 @@: !ub ? "a part's uniform updates are not written at its end (split_ub_flush)": "a part ends only before a plain draw here (split_before_draw)";}();const bool want = opts.skip_upscaler_wait != 0; // (the Skip Upscaler Wait row, at once; HOS_FRAME_SKIP_TAIL sets it)L1 (should fix): The setting is read without synchronization while the settings applier writes it under a different lock.
When: With threaded rendering enabled, changing the row calls the applier and writes opts.skip_upscaler_wait while the replay thread or frame-limiter thread can call skip_tail_on and read it. This is a C++ data race, so the advertised live toggle has undefined behavior.
Do: Read the published immutable settings snapshot or publish this setting through an atomic shared by all callers.
@ -1290,0 +1304,4 @@const int r = rx_nvn_skip_tail_wait(s->fence, U64(1));if (away) hos_vcore_back();if (r >= 0) {wait_note(r ? 0 : 1, t0);L2 (should fix): The fallback restarts the original wait with the full timeout after the partial wait has already spent it.
When: If the part is not recorded or completed before the requested timeout, skip_tail_wait returns -1 after waiting up to that timeout. The callback then calls nvnSyncWait with the unchanged x1, allowing another full timeout before returning to the game.
Do: Track the elapsed time across both attempts and pass only the remaining timeout to the fallback, preserving the original call's result semantics.
perf(vk): Skip Upscaler Wait, the frame limiter no longer waits for the upscale and the HUD (off by default)to perf(vk): Skip Upscaler Wait, the frame limiter no longer waits for the upscale and the HUDBeanstalk test farm
Commit
a993ff8· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.@review
Recommendation: Approve. The code is ready: only testing is left. The synchronization and timeout fixes address their ledger items, and the PR reports a substantial gain on the tested NVIDIA system. The comparison against the base and the outstanding hardware runs are still needed before merge. Recommend approval; not approved on the forge.
With an upscaler, the frame limiter can resume after the frame’s pre-upscale work rather than waiting for its entire GPU submission. This adds synchronization and capture-path complexity in exchange for a reported FPS gain.
Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
@fixdoes its part first: Avoid the extra renderer wait poll when the setting is off.)@fixcan do L3.Since the last review (on
e57aa01ac2)Resolved: L1 (The setting is read without synchronization while the settings applier writes it under a d…); L2 (The fallback restarts the original wait with the full timeout after the partial wait has a…); L5 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Still open: L3 (The reported comparison does not measure the PR's total effect against its base.); L4 (The changed GPU and capture synchronization paths need the outstanding platform runs befor…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven against the base: the PR reports 77.4 to 95.2 FPS and 56.4 to 61.2 FPS at the 1% low on an RTX 4070 SUPER, from two interleaved runs per setting in the same PR build. That comparison does not include the PR’s total overhead against its base.
Other systems: AMD, Linux, integrated GPUs, Intel Arc and DLSS Frame Generation remain to be tested as described in the PR. The capture synchronization path also changes; the reported memory-checker tour covers the tested Windows NVIDIA system.
Switches: HOS_FRAME_SKIP_TAIL and the Skip Upscaler Wait graphics row are on by default; the row can turn the behavior off. The default has shown a gain on the tested NVIDIA system, but the outstanding platform runs leave its suitability elsewhere unverified.
Reviewed:
a993ff8a48against72a0bc8d4b: Read the changes since the earlier head in the synchronization, timeout, setting and ABI paths, and the relevant HEAD wait implementation and call sites. Skimmed the PR file list, commit log and reported runs; did not read every changed code file or repository review rule in full.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run. The author reports Windows NVIDIA gameplay, interleaved market measurements, memory-checker runs and game-free checks; CI is still running.
Overlaps and merge order: none found
Automated code review by BeanBot (gpt-6.1-terra), asked for by Veix. Nothing was run; a maintainer decides.
llun referenced this pull request2026-12-04 00:47:40 +00:00