No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2866
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2866"
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?
@xndbogdan on GitHub · 2026-11-25 22:44 UTC · original
xndbogdan:translate/f16-count→main· +39 −0 · 1 files · 1 commits · openFor #2384 and #2825.
Why
#2806 and #2825 measured what the translator's software f16 rounding costs against native 16-bit math, on NVIDIA, AMD and WARP. How much that saves in the game depends on one number nobody has posted: what share of the title's shader code is 16-bit float math. Anyone with the game's files can now read it in one run.
What
victory translateprints one more line after the program count:_f16operand or result (f16_kind): arithmetic, compares and conversions.v_pk_*ones are also counted as packed.IR instructionstotal, so the percentage is of that total.Tests
f16_instructions_are_counted_and_packed_ones_told_apart:f16_kindon packed, scalar, compare and conversion_f16names, and on names that are not f16 (v_fma_f32,v_pk_add_u16,s_mov_b32, empty).cargo test --locked -p victory --bin victory translate: 2 passed.cargo clippy --locked -p victory --all-targets -- -D warnings: clean.cargo fmt --check: clean.cargo xtask policy: 190 files ok.victory translateon an empty folder prints the new line with zeros.Not done
shaders.rpf, thef16line fromvictory translate <game dir>\shaders.rpfwould answer #2825's open question.f16_kindis.🤖 Generated with Claude Code
@xndbogdan on GitHub · 2026-11-25 22:53 UTC · original
@Proudnoob4 you've run
victory translate --warmon the world shaders (on #2825), so you may be the person who can answer the question this PR is for. If you have a moment: with this commit applied (dc792c3, one file,apps/victory/src/translate.rs),victory translateprints anf16line with the share of the translated instructions that work on 16-bit floats. That line, ideally over the wholeshaders.rpf, would say how much of the game's shader code #2825's native path can speed up. Thanks either way, and thanks for the in-game RTX 4080 run.@cloph-dsp on GitHub · 2026-11-25 23:31 UTC · original
Local verification on Windows / rustc 1.100.0 / MSVC, no game data, no GPU, no clippy/rustup.
git diff --checkagainst merge-basef3578e3is clean; 1 file, +39/-0.translate::tests::f16_instructions_are_counted_and_packed_ones_told_apartis absent from the base commit.cargo test --locked -p victory --bin victory -- translate::tests::f16_instructions_are_counted_and_packed_ones_told_apart --exact --quiet-> 1 passed (14 filtered out).cargo test --locked -p victory --bin victory --quiet-> 15 passed, 0 failed.AI-assisted (Hy4 flash).
@Marvisak on GitHub · 2026-11-26 04:24 UTC · original
Automated triage for the maintainers.
Merge candidate. This adds an
f16line tovictory translate: the share of translated IR instructions that work on 16-bit floats and how many are packed (v_pk_*), answering the open question in #2825 without putting title data in the repo.f16_kindcatches arithmetic, compares and conversions in both directions and leaves outv_pk_*_u16and f32 ops; the count runs over the same programs as theIR instructionstotal. Mixed-precision ops such asv_fma_mix_f32are not counted, which is fine for a first estimate.CI: passing.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.