Shaders on NVIDIA: exact host float forms (VICTORY_HOST_FLOAT) #2
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ImTaneax--VIctory-RTX3050-4gb!2
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2"
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?
@adib-cyber007 on GitHub · 2026-12-02 08:39 UTC · original
adib-cyber007:pr/1-nvidia-host-float→main· +148 −13 · 6 files · 1 commits · openPort of
readmet3xt-lab/foxhound9b11fac5(GPL-3.0).Why
bench/nightlog.mdGPU splits show the RTX 3050 spending 84–154 ms/frame inside title lists. On non-RDNA hosts,v_max/v_min/v_med3andv_mul/mac/mad_legacycurrently lower to 4–7 software instructions each. On NVIDIA adapters (set_host_nvidia, PCI vendor0x10DE), this lowers them into exact native host forms (measured 5.0 → 1.2 ms on volumetric lighting and 4.1 → 0.2 ms on tiled lighting when near the VRAM limit).Toggle & Cache
VICTORY_HOST_FLOAT=0reverts (or bitmask1|2|4|16).host_settings()includes the active bits so the shader cache keys on it automatically. Runvictory.exe shaders <game_folder>once after merging.Verification
valu_tests::host_forms_give_what_the_spelled_out_ones_givepassed bit-exact live on an NVIDIA RTX 3050 Laptop 4 GB across all 13 forms and edge cases (±0, subnormals, underflow,±Inf,NaN).shader_cachetests,victorybin tests, and default +--features diagnosticsbuilds pass with zero new warnings.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.