WIP: refactor(vk): the renderer's, UI's and host's names no longer name the upstream port's game #3080
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3080
Loading…
Reference in a new issue
No description provided.
Delete branch "siantm/Longshot:refactor/neutral-runtime-names"
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
The renderer, the host and the game side still carried the upstream port's game in their names:
mkwvk_*,MkwVk*,MKWVK_*,MkwUi*/MKW_UI_*,mkw_vk*(functions and thread names),host/mkw_glue.c,hos_game_is_mkw, theHOS_MKW_INTERVALswitch, the Vulkan application name"mkw-recomp", the#rules-from-mkwanchor, and about 140comments naming that game. This renames them to the
Lsprefix the newer ABI already uses, and the comments say "theupstream port" and "the upstream game". Nothing a player sees changes.
MKWVK,MkwVk,mkwvk(_ZN5mkwvkmangled)LSVK,LsVk,lsvk(_ZN4lsvk)MKW_UI,MkwUi,mkw_uiLS_UI,LsUi,ls_uiMKW_VK,mkw_vk(threads, functions)LS_VK,ls_vkhost/mkw_glue.chost/hos_glue.chos_game_is_mkw,hos_mkw_pacer,HOS_MKW_INTERVALhos_game_is_upstream,hos_upstream_pacer,HOS_UPSTREAM_INTERVALpApplicationName"mkw-recomp""Longshot"architecture.md#rules-from-mkwarchitecture.md#replay-rulesKept: mkw-recomp's credit (README, the architecture lineage, both
PROVENANCE.md), the pipeline cache's old file namesin
layout.rs(it moves them on players' disks), andthird_party/.gpu/PROVENANCE.mdnow holds the table above, anddocs/dev/standards.mdsays an upstream sync applies once its names are mapped. The upstream game's own code paths(its pacer, its idle loop) stay, renamed.
tests/test_no_upstream_game_name.py, aftertests/test_no_game_title.py, keeps the names out.Read first:
gpu/PROVENANCE.md,gpu/vk/vk_api.h,host/rx_backend.c(thelsvk_initload),tests/test_no_upstream_game_name.py.Testing
Tested: Windows 11 Pro (build 26300), NVIDIA GeForce RTX 4060, driver 621.40:
dev.py rtover the shared base(the shaders prepared through the renamed renderer: 38,809 programs, 0 failed), then
dev.py smoke: PASS, in play fromkokiri-start, 900 frames, the Insert menu opened, no FATAL in the log.
Checks:
cargo fmt --checkclean;cargo testof every crate the change touches passes (ffi-gen's check made meregenerate
game/game.h).tests/run_all.pyon the branch: everything passes but the three that fail onmainheretoo (
test_i18n_complete: untranslated rows;test_helpers_extract;test_longshot_builder's Linux case). The checksneeding
spirv-valorllvm-mcwere skipped (not installed on this PC). The checks pinned to--cxx g++were run withllvm-mingw's clang++ (this PC's g++ cannot start its compiler).
Still to test:
dev.py smoke, expecting a PASS as on Windows (@Beanstalk build and smoke this branch on Linux)Measurements
Nothing to measure: names, comments and docs only; the code generated is the same.
Risks
gpu/vk/orhost/will conflict on the renamed names. Rebasing one is thesame replacement, in the table's order (a
sedof the table works).HOS_MKW_INTERVALis nowHOS_UPSTREAM_INTERVAL, and aGONErow tells a run that still sets the old name. It acts only when the lifted game is the upstream one, sosetting the old name changed nothing for this game before either.
"Longshot". Drivers key their profiles on the executable, not on this name, as faras I know; nothing in the tree reads it.
ls_vk ...now, for profilers and Tracy. Both all-thread samplers take them byHOS_IS_RENDERER_THREAD(host/hos.h), andscripts/profiling/reads the old prefix too, so captures made beforethis change still show their renderer threads.
lsvk_initvsmkwvk_init), aswith any API version change; a build makes both.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). Named above; the twomodtoolexample tests(
every_example_passes_its_tests: sparkline's timing and seven-rupee;the_typescript_system_mods_pass_their_tests:a 6.33 ms vs 6.19 ms timing) failed in one run on a loaded PC and are not yet run on
mainfor comparison.main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
tests/that reads changed source is updated, not weakened.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 Pro (26300), NVIDIA GeForce RTX 4060, driver 621.40: dev.py rt over the shared base (38,809 shader programs prepared through the renamed renderer, 0 failed), then dev.py smoke PASS: in play from kokiri-start, 900 frames, the Insert menu opened, no FATAL in the log.
Possibly related, for context:
@review
Recommendation: Request changes. The renamed thread prefix causes both platform samplers to omit every renderer thread, breaking profiling reports. The removed switch also lacks the repository-required retirement entry.
The change gives renderer, host and UI identifiers neutral names and updates their callers and documentation. It preserves the intended runtime interfaces within a matched build, but breaks renderer profiling and compatibility with existing profiling captures.
Blocking (2): must change before merging.
host/hos_glue.c:903: The sampler compares six bytes against a five-character prefix, so it excludes the renamed renderer threads. (more on the line) Do: Compare the five-character prefix in both samplers, preferably using sizeof the literal minus one, and add a behavioral check using an actual renderer thread name.gpu/vk/switches.def:222: The old switch is removed without a GONE entry, contrary to the switch-table rule. (more on the line) Do: Add a GONE entry for the old name explaining its replacement, and allow that historical name in the naming check.Should fix (1): not blocking, but worth doing before merging.
scripts/profiling/analyses.py:154: The profiling tools no longer recognize renderer thread names in captures made before this rename. (more on the line) Do: Recognize both historical and current prefixes when reading captures, and cover an old-format capture in the profiling tests.Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_main.cpp:292: The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run. (more on the line) Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.@fixcan do L1, L2 and L3.Questions (2) (not confirmed from the code; they don't hold the recommendation)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Not a perf change. The author reports a Windows RTX 4060 smoke pass over 900 frames and successful preparation of 38,809 shader programs; Linux gameplay remains untested.
Other systems: The host and renderer are loaded together through renamed exports; the author reports that mixed old and new builds cannot load each other. Both Windows and Linux profiling samplers are affected by the prefix-length error. The Vulkan application name also changes, so driver-dependent behavior needs the pending platform coverage.
Switches: HOS_MKW_INTERVAL is removed and HOS_UPSTREAM_INTERVAL replaces it, defaulting to 1. It only affects the upstream game's pacer, so the default does not affect the supported game. The removed name needs a GONE entry.
Reviewed:
0d6e77f69aagainstb4d56f5264: Read AGENTS.md, CONTRIBUTING.md, the pull request template, relevant standards, the commit message, the new naming test and provenance document, and selected diffs and callers for the renderer interface, build plan, switches and profiling. Skimmed the change list and targeted portions of the remaining diff; the 644 changed files and their surrounding code were not all read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no builds, tests or project scripts were run. The supplied CI checks are still running.
Overlaps and merge order: Not determined; the network is closed.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -220,6 +219,7 @@ SW(HOS_TICK_CONVERT_192, kill, bool, "tick conversions use the counter's own 31.SW(HOS_TICK_LOG, diag, bool, "off", "Logs who reads the clock, by caller, every 5 s.")SW(HOS_TLS_TRACE, diag, bool, "off", "Logs thread-local storage setup, as HOS_TRACE does, without the rest of the trace.")SW(HOS_TRACE, diag, bool, "off", "Logs every HLE call that uses HOS_TRACE_CALL.")SW(HOS_UPSTREAM_INTERVAL, kill, enum, "1: the upstream game's pacer held at a steady 60 fps", "The interval the upstream game's pacer is held at: 1 is 60, 2 is 30, 0 the game's own choice.")L2 (blocking): The old switch is removed without a GONE entry, contrary to the switch-table rule.
When: A run that still sets HOS_MKW_INTERVAL receives no retired-switch notice because the name no longer appears in the switch table.
Do: Add a GONE entry for the old name explaining its replacement, and allow that historical name in the naming check.
@ -290,3 +290,3 @@VkApplicationInfo app{VK_STRUCTURE_TYPE_APPLICATION_INFO};app.pApplicationName = "mkw-recomp";app.pApplicationName = "Longshot";app.apiVersion = VK_API_VERSION_1_3;L4 (should fix): The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run.
When: The change reaches Vulkan instance creation and renderer loading on Linux; the supplied run covers Windows on NVIDIA only.
Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.
@ -0,0 +900,4 @@char desc[64] = "";if (SUCCEEDED(GetThreadDescription(h, &d)) && d) WideCharToMultiByte(CP_UTF8, 0, d, -1, desc, sizeof desc, NULL, NULL);if (d) LocalFree(d);if (!strncmp(desc, "ls_vk", 6)) snprintf(name, sizeof name, "%s", desc);L1 (blocking): The sampler compares six bytes against a five-character prefix, so it excludes the renamed renderer threads. The Linux sampler has the same error in host/posix/prof.c.
When: A renderer thread named "ls_vk replay" differs from "ls_vk" at byte six: the thread has a space and the literal has its terminating zero. HOS_SAMPLE_ALL therefore omits it on both Windows and Linux, leaving renderer reports without renderer samples.
Do: Compare the five-character prefix in both samplers, preferably using sizeof the literal minus one, and add a behavioral check using an actual renderer thread name.
@ -152,3 +152,3 @@nrun = 0for _, th, st in samples.records(path):if not th.startswith("mkw_vk"):if not th.startswith("ls_vk"):L3 (should fix): The profiling tools no longer recognize renderer thread names in captures made before this rename.
When: Running the renderer analysis on an existing all-thread capture whose renderer thread starts with the old prefix skips that thread and produces an empty or incomplete renderer report; the thread analysis also counts it as a game thread.
Do: Recognize both historical and current prefixes when reading captures, and cover an old-format capture in the profiling tests.
Thanks: L1 was a real bug, fixed in
9c58115ec.L1 (fixed): the rename left
strncmp(desc, "ls_vk", 6)in both samplers, soHOS_SAMPLE_ALLtook no renderer thread.host/hos.hnow hasHOS_RENDERER_THREADandHOS_IS_RENDERER_THREAD(name), which comparessizeof HOS_RENDERER_THREAD - 1bytes;host/hos_glue.candhost/posix/prof.cuse it.tests/test_renderer_thread_names.pycompiles the macro with every thread namegpu/vkgives (SetThreadDescription/HT_THREAD_NAME) and with near misses. With the old 6-byte compare put back it fails ("the renderer's "ls_vk capture copy" is left out", …). The mod system'slsmod-texdecstays out, as before.L2 (fixed):
GONE(HOS_MKW_INTERVAL, "2026-12-03", "nothing: HOS_UPSTREAM_INTERVAL is its name now …"). The naming check allows that one historical span, astest_no_game_title.pydoes for its gone switches.L3 (fixed):
scripts/profiling/samples.RENDERERholds both prefixes andanalyses.py/report.pyuse it.tests/test_profile_renderer_drivers.pyhas a capture with an old-prefix renderer thread (100% running, 1 sample).L4 (still to test): Linux has not run. The Windows run on the head before this commit is in the first comment. This commit changes only the samplers' compare, a switch row, the profiling scripts and tests, so I haven't run the game again. The Linux build and smoke are in Still to test, for the Test Farm.
Questions
pApplicationName: the Windows drivers key their profiles on the executable. Mesa's drirc can matchapplicationName, but no drirc entry namesmkw-recomp, so no profile applied before this change and none applies after. The Linux farm run would show it if I'm wrong.forge.py searchfor the old names finds only PRs that use them). Any open PR touchinggpu/vk/orhost/will conflict. The table ingpu/PROVENANCE.mdis the replacement to apply when rebasing one.Checks (Windows 11, llvm-mingw clang):
tests/run_all.py --changed HEAD(92 checks) passed apart from the new test's first version, which countedlsmod-texdecas a renderer thread. The fixed version passes, withtest_no_upstream_game_name,test_switch_table,test_profile_renderer_drivers,test_profile_report_names,test_no_game_titleandtest_env_on.@rebase
I rebased this pull request onto
main(67e4ca8ef3): the new head is6963464a4a.Conflicts resolved
Nothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
9c58115eca6963464a4aRecommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first). (L5) The sampler, switch-table and old-capture fixes address the reported defects. A Linux build and game smoke run are still needed for the renamed renderer and Vulkan application name.The change removes upstream game names from renderer, host and UI identifiers while preserving old profiling captures and warning about the retired switch. It makes the naming more consistent, at the cost of broad source churn and conflicts with other renderer and host work.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_main.cpp:292: The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run. When: The change reaches Vulkan instance creation and renderer loading on Linux; the supplied run covers Windows on NVIDIA only. Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.Since the last review (on
0d6e77f69a)Resolved: L1 (The sampler compares six bytes against a five-character prefix, so it excludes the renamed…); L2 (The old switch is removed without a GONE entry, contrary to the switch-table rule.); L3 (The profiling tools no longer recognize renderer thread names in captures made before this…)
Still open: L4 (The renamed renderer and changed Vulkan application name have not yet been exercised in a…)
New: L5 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Not a perf change. The author reports a Windows smoke pass for 900 frames on an RTX 4060; Linux startup and play remain untested.
Other systems: The rename affects both Windows and Linux host samplers, renderer loading, profiling tools and Vulkan application identification. Windows was exercised as reported; Linux and its driver behavior still need a game run.
Switches: HOS_MKW_INTERVAL is retired with a GONE row; HOS_UPSTREAM_INTERVAL replaces it, defaulting to 1 for the upstream game's pacer. It does not affect the supported Longshot game.
Reviewed:
6963464a4aagainst67e4ca8ef3: Read AGENTS.md, CONTRIBUTING.md, the pull request template and the diff since the ledger for the sampler, switch and profiling fixes. Searched their callers and switch use; the full pull request diff and all changed code files were not read in full. The listed review checklist does not exist.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The author reports Windows smoke and game-free checks; CI is still running, and the Linux build and smoke run remain outstanding.
Overlaps and merge order: The author reports that other open pull requests touching gpu/vk or host may conflict; no specific overlapping rename was identified.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
@rebase
I rebased this pull request onto
main(8196c87e9d): the new head is2e252e8654.Conflicts resolved
Nothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
6963464a4a2e252e8654Recommendation: Approve. The code is ready: only testing is left. The rebase incorporates the supplied base, but the renamed renderer and Vulkan application name still need a Linux build and game smoke run. Recommend approval; not approved on the forge.
The change replaces upstream-specific renderer, UI and host names with Longshot names. It makes the naming more consistent at the cost of a broad source rename and conflicts for other work in those areas.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_main.cpp:292: The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run. When: The change reaches Vulkan instance creation and renderer loading on Linux; the supplied run covers Windows on NVIDIA only. Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.Since the last review (on
6963464a4a)Resolved: L5 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Still open: L4 (The renamed renderer and changed Vulkan application name have not yet been exercised in a…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Not a performance change. The author reports a Windows smoke pass over 900 frames and preparation of 38,809 shader programs with no failures; Linux gameplay has not been reported.
Other systems: The rename reaches the host, renderer, UI ABI, profiling tools and both Windows and Linux. The reported Windows run exercised renderer startup and the menu; the Linux path remains untested.
Switches: HOS_MKW_INTERVAL is replaced by HOS_UPSTREAM_INTERVAL, with default 1; the old name has a GONE row. It controls the upstream game's pacer rather than this game's pacing.
Reviewed:
2e252e8654against8196c87e9d: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the ledger and supplied comments; inspected the rebased UI and host ABI changes and their relevant callers. The 645-file diff and changed code files were not read in full; generated files and recorded checks were not independently examined in full.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project were executed. The author reports a Windows game smoke pass; Linux build and smoke testing remain outstanding, and CI is still running.
Overlaps and merge order: The author reports no open PR with the same rename; other PRs touching gpu/vk or host may conflict.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
@rebase
I rebased this pull request onto
main(9a1f19b462): the new head isa5b07b8aee.Conflicts resolved
Nothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
2e252e8654a5b07b8aeeRecommendation: Approve. The code is ready: only testing is left. The renamed renderer has passed a Windows game smoke run, but its Linux build and game smoke run remain unreported. Recommend approval; not approved on the forge.
The change replaces upstream game names throughout the renderer, host, UI and documentation, making the code’s naming consistent with Longshot. It also changes the Vulkan application name and renderer symbols, so platform startup needs verification.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_main.cpp:292: The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run. When: The change reaches Vulkan instance creation and renderer loading on Linux; the supplied run covers Windows on NVIDIA only. Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.Since the last review (on
2e252e8654)Still open: L4 (The renamed renderer and changed Vulkan application name have not yet been exercised in a…)
Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Not a perf change. The author reports 38,809 shader programs prepared with none failing and a 900-frame Windows smoke run passing; Linux remains untested.
Other systems: Windows NVIDIA startup and play were reported passing. Linux renderer loading and Vulkan startup remain unverified; other GPU and driver behavior was not reported.
Switches: HOS_MKW_INTERVAL is replaced by HOS_UPSTREAM_INTERVAL, with the old name marked GONE. The switch applies to the upstream game’s pacer; its documented default is 1.
Reviewed:
a5b07b8aeeagainst9a1f19b462: Compared the architecture documentation diffs across the rebase; inspected the Vulkan application name, renderer entry point, host lookup and switch rows. The remaining changed files and repository rules were not read in full on this re-check.; nothing run (a code review).Checked and fine:
Testing: No commands from the project were run. The author reports a Windows build and smoke pass; Linux build and smoke remain outstanding. CI is still running.
Overlaps and merge order: The author reports that open pull requests touching gpu/vk or host may conflict; no overlapping rename was identified.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
Rebased onto main
45d1863b2(headafeee5bc8). Main's new code since the bot's last rebase (the ReShade packs, SGSR 2, the DLSS frame-generation exit and others) had picked up old names again; they're renamed the same way (tests/test_no_upstream_game_name.pypasses), andvk_api.h'slsvk_texture_decode_fncontinuation line is realigned.Checks on this head (Windows 11, llvm-mingw clang): 75 of 79 checks that read the conflicted files pass, with
test_no_upstream_game_name,test_no_game_title,test_switch_table,test_doc_anchorsandtest_renderer_thread_names. The 4 others (test_key_press_queue,test_net_engine,test_pipeline_tour,test_input_background) fail the same way on main45d1863b2here: Linux-only checks, and an unused variable newer clang flags ininput_background_test.c. Not from this PR, and left alone here: main'sgame/game.his stale against ffi-gen (game_set_fast_forward's comment), andgame/crates/game-core/src/video.rsisn't rustfmt-clean.L4 (a Linux build and smoke) is still to test.
a5b07b8aeeafeee5bc8d@rebase
I rebased this pull request onto
main(73f12f0e8d): the new head is80cc2af623.Conflicts resolved
gpu/vk/vk_sharpen.cpp,gpu/vk/vk_sharpen.hNothing was built or run: read the resolution before merging.
Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
afeee5bc8d80cc2af623Recommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first). (L6) The renamed renderer has been exercised on Windows, but its Linux build and game smoke run are still outstanding.The change renames renderer, host and UI identifiers and updates their references and documentation. It makes the naming more consistent at the cost of conflicts with changes that touch the same code.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_main.cpp:292: The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run. When: The change reaches Vulkan instance creation and renderer loading on Linux; the supplied run covers Windows on NVIDIA only. Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.Since the last review (on
a5b07b8aee)Still open: L4 (The renamed renderer and changed Vulkan application name have not yet been exercised in a…)
New: L6 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Checks: Still running: 11 checks.
More: does it help, other systems, switches, what was read
Does it help: Not a performance change. The author reports a Windows smoke pass over 900 frames and 38,809 shader programs prepared with none failing; Linux remains untested.
Other systems: The host dynamically loads the renamed renderer exports on both Windows and Linux. The Vulkan application name also changes for drivers; the author reports no matching Mesa profile for the old name, but a Linux game run is still needed.
Switches: HOS_MKW_INTERVAL is removed and recorded as GONE; HOS_UPSTREAM_INTERVAL replaces it with the same stated default of 1. It affects the upstream game's pacer, not Longshot's game.
Reviewed:
80cc2af623against73f12f0e8d: Read AGENTS.md, CONTRIBUTING.md, the pull request template, renderer_guard.h, fx_packs.cpp, fx_packs.h, vk_sgsr2.h and vk_sharpen.h. Inspected the reported rebase diff and relevant portions of vk_main.cpp, vk_ui.cpp, vk_draw.cpp, vk_replay.cpp and rx_backend.c; the large full diff and remaining changed files were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that build or run the project were executed. The author reports a Windows game smoke pass; Linux testing and the listed CI checks remain pending.
Overlaps and merge order: The author reports no competing rename pull request; changes touching gpu/vk or host may conflict.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.
@review
@beanstalk
Beanstalk test farm · an earlier run: commit
80cc2af(the newer results are in a comment below)Commit
80cc2af· approved by HumanBean (reviewed) · dashboard⚠️ Note: The headless steps do not open the Insert menu, so they do not verify the renamed UI's menu interaction.
⚠️ Note: The upstream game's renamed pacer and compatibility with existing player caches are not exercised by these fresh Longshot runs.
Done (started 06:39 UTC, last report 06:39 UTC). Comment
@Beanstalkto run it again.linuxwindows+nvidiaCouldn'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.
linux, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'slinux, report 2:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'swindows+nvidia, report 1:main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store'swindows+nvidia, report 2: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 build main and the pull request on Linux and Windows NVIDIA, then smoke-test renderer startup and gameplay from Kokiri Forest through Hyrule Field and the Market. Each side gets three starts, including a 900-frame gameplay wait and still-scene screenshot comparisons; lift and compile times are also recorded. A build failure, crash, failure to reach a destination, or screenshot difference above 0.2 fails the plan.
kokiri-start(switchesHOS_FPS_MAX=30,HOS_OUTPUT_RES=1280x720), then teleport to Hyrule Field, take the picture field to compare with main, teleport to Market, take the picture market to compare with main; 3 runs on each side.Measurements on `linux`, for the PR description
Verdict: could not be judged on linux (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 760M Graphics (RADV PHOENIX), 26.0.8AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAMScene: renderer-smoke, from the repository's save kokiri-start (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); 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); renderer-smoke: 3 game starts a side; timed builds: main and this PR each built 2 times a cache, alternating, each a whole build in a fresh folder (lift; shader preparation not timed); 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)Build times (each a median of the timed builds; caches: lift = the lift again (no kept lift, main's compiled objects kept))
73f12f080cc2afFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
Measurements on `windows+nvidia`, for the PR description
Verdict: could not be judged on windows+nvidia (2 reports).
Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess
NVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xessNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMScene: renderer-smoke, from the repository's save kokiri-start (HOS_FPS_MAX=30, HOS_OUTPUT_RES=1280x720); 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); renderer-smoke: 3 game starts a side; timed builds: main and this PR each built 2 times a cache, alternating, each a whole build in a fresh folder (lift; shader preparation not timed); 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)Build times (each a median of the timed builds; caches: lift = the lift again (no kept lift, main's compiled objects kept))
73f12f080cc2afFlags and settings
None: the plan varied no setting, switch or build option.
As Markdown for the PR description:
The testers' hardware
linuxAMD Radeon 890M Graphics (RADV STRIX1), 26.1.99AMD Ryzen Z2 Extreme, 32 GB RAMlinuxAMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAMwindows+nvidiaNVIDIA GeForce RTX 4090, 621.40.013th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAMwindows+nvidiaNVIDIA GeForce GTX 980, 582.78.0Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAMRecommendation: Request changes. The pull request still conflicts with its base, and the renamed renderer has not yet had a Linux build and game smoke run.
The change replaces upstream game names across the renderer, host, UI, and documentation. It makes the naming consistent, at the cost of a broad rename that conflicts with other work.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/vk_main.cpp:292: The renamed renderer and changed Vulkan application name have not yet been exercised in a Linux game run. When: The change reaches Vulkan instance creation and renderer loading on Linux; the supplied run covers Windows on NVIDIA only. Do: Run a Linux build and game smoke test, including renderer startup and the menu, and record the hardware, driver and result.Since the last review (on
80cc2af623)Still open: L4 (The renamed renderer and changed Vulkan application name have not yet been exercised in a…); L6 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Checks: Still running: 11 checks.
Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Not a performance change. The author reports a Windows smoke pass over 900 frames and 38,809 shader programs prepared with no failures; Linux remains untested.
Other systems: The rename affects host-renderer linkage, profiling thread names, and the Vulkan application name on Windows and Linux. The reported Windows run passed; no Linux game run is reported.
Switches: HOS_MKW_INTERVAL is replaced by HOS_UPSTREAM_INTERVAL, with a GONE entry for the old name. The PR says the switch applies only to the upstream game, so the old name had no effect on Longshot.
Reviewed:
80cc2af623against73f12f0e8d: Read AGENTS.md, CONTRIBUTING.md and the pull request template; inspected the Vulkan instance creation around gpu/vk/vk_main.cpp:291, the commit log and the diff summary. The review checklist is absent. The full 649-file diff and changed files were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that build, test, or run project code were executed. The author reports Windows testing; Linux build and smoke remain outstanding, and CI is still running.
Overlaps and merge order: The author reports no open PR with the same rename; changes touching gpu/vk or host may conflict.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
80cc2af623b1c87871b0Beanstalk test farm
Commit
b1c8787· approved by nobody yet · dashboardA member of
BigBeanscan review this commit and comment@Beanstalkto test it.Rebased onto main
7bc53f84; the head is nowb1c87871.L6 (fixed): the branch is now on main's head. Its commits are
79607227(the rename),c39f5c99(the samplers,GONE(HOS_MKW_INTERVAL), old captures; same as before) and a new one,b1c87871.gpu/vk/menu/reshade.hwas deleted on main by #3158 (Compare ReShade Preset removed), and it stays deleted.b1c87871: main's new code had brought the old names back. It covers the pop-out windows' types (MkwUiPopoutIn/Ask,MkwVkPopout,MKW_VK_POPOUT_*), the namespaces ofdraw_overhead_lean,fog,fog_settings,pcie_link,present_paceandrt_pin,MKWVK_FX_STAGE_*, the replay thread's name ("ls_vk replay", whichHOS_IS_RENDERER_THREADtakes), and the tests that read them. All are renamed bygpu/PROVENANCE.md's table. Some of these were already on80cc2af6from main73f12f0e(tests/test_gfx_effects.py,tests/test_keyboard_menu_option.py,gpu/vk/vk_internal.h). Sotest_no_upstream_game_namewould have failed on that head.game/game.h: not regenerated.cargo run -p ffi-gen -- --checksaysgame/game.handhost-sys/src/ffi.rsare current.BeanBot's
vk_sharpenresolution (on80cc2af6): it is right. Against main, the only change ingpu/vk/vk_sharpen.hand.cppisnamespace mkwvkbecomingnamespace lsvk, in the opening and closing lines. Every other renderer file uses that namespace. The Sharpness code is main's, unchanged. It is carried as is in79607227.Checks on
b1c87871(Windows 11, llvm-mingw clang, through the PC's job queue).run_all.py --changed origin/mainwould pick 861 checks (nearly all of them, for a rename this wide), so I ran the ones that read what the rebase touched:tests/run_all.py --exact: 39 checks. These were the rename guards (test_no_upstream_game_name,test_no_game_title),test_switch_table,test_doc_anchors,test_renderer_thread_namesandtest_profile_renderer_drivers. Then every test whose file or compiled source changed in the conflict resolution or inb1c87871:test_rt_pin,test_sync_watch_event,test_ui_renderer,test_ui_stale_keys,test_vk_draw_overhead_lean,test_dlssg_hudless,test_dummy_views,test_gfx_effects,test_hos_ab,test_keyboard_menu_option,test_pcie_link,test_reserved_core_mask,test_menu_hit,test_reshade_hot_reload,test_texture_pack,test_ui_debug_key,test_fog_settings,test_present_pace. Then the compile checks of the touched headers:test_gpu_wait_stats,test_monitor_friendly_names,test_sampler_stack_walk,test_settings_atomic,test_invalidate_vcore,test_mesh_conv,test_program_cache_cleanup,test_recorder_parts,test_renderer_new_handler,test_texture_staging_publication,test_upscale_independent,test_sharpen,test_upscale_fallback,test_fsr3fi_hud_capture. Last,byte_compile_tracked.test_nonuniform_image_arrays: no spirv-val here). The rename guards pass.7bc53f84(I ran them on a checkout of main):test_no_game_title: main'stests/test_lower_cs2r_depbar.py:3names the game.test_sync_watch_event: its extracted code doesn't compile, becausesettings_startis undeclared.test_ui_renderer: thevk_paint.cpppop-out check.cargo test --locked -p ffi-gen -p crash -p build-compile(the crates whose code, not only comments, the branch changes): all pass.cargo run -p ffi-gen -- --check: current.cargo fmt --checkfor every crate the branch touches: clean.L4 (still to test): there has been no Linux build or smoke run yet, and I can't do one: this PC is Windows only. It needs a Linux tester or the Test Farm. The Windows game run in the description was on an earlier head. The rebase changes names only, so I haven't run the game again.
Test Farm (2026-12-04,
80cc2af6): it couldn't judgelinuxorwindows+nvidia. All four reports stopped while setting up main's side, on main'stools.lockline 32 (the SDL URLs aren't the store's), before anything was built. They say nothing about this PR. main'stools.lockhasn't changed since #3120, so a new farm run on this head needs a BigBeans member to ask for it, once main'stools.lockworks for the testers.Forgejo shows
mergeable=Falsefor a work-in-progress PR whatever its base. The branch's merge base is main's head7bc53f84.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.