Repository navigation
docs: README lists all five fallback flags, not four - #3154
FreeFlex3244 wants to merge 1 commit into
Conversation
make_game.FALLBACK_FLAGS forwards five translator fallbacks, including --f16-interp-fallback (ItsNotRexed#1407), which the README never named, and the sentence kept saying 'Four'. Name the flag the way its --help does, and drop the note that --no-float-controls needs ItsNotRexed#664's translator flag, since ItsNotRexed#664 merged.
|
Verified #3154 on
The |
tomgamer22
left a comment
There was a problem hiding this comment.
The README now names all five entries of FALLBACK_FLAGS (make_game.py:886-888), and the automatic --f16-interp-fallback claim matches make_game.py:1594-1597. The new test fails on the old README (a missing flag, and "Four"). test_make_game_argparse and test_ci_registration still pass. AI-assisted review (Claude Code).
Claimed in the coordination issue as: #3047 (comment)
What and why
make_game.FALLBACK_FLAGS(make_game.py:886-888) forwards five translator fallbacks, but the README paragraph said "Four" and named four:--f16-interp-fallback(#1407, documented atdocs/design.md:356) was missing. That is the flag Apple/MoltenVK users need, and it is also the one the build turns on by itself when the runtime's GPU can't take per-vertex inputs (make_game.py:1594-1597), so the README hid both the flag and the automatic behaviour. The same sentence still said--no-float-controls"needs PR #664's translator flag", although #664 merged at 18:06 today and the flag is onmain.Changes:
README.md: say five, and name--f16-interp-fallbackwith what its--helpsays (16-bit interpolation from decoded halves instead ofPerVertexKHRinputs, on by itself where the GPU can't use them such as MoltenVK). Drop the merged Translator: declare SignedZeroInfNanPreserve so drivers keep NaN, inf and -0 (SHADER-99) #664 note.make_game.py: the same stale "(Depends on: Translator: declare SignedZeroInfNanPreserve so drivers keep NaN, inf and -0 (SHADER-99) #664)" in that flag's help string.python -I make_game.py --helpnow reads "translate without SignedZeroInfNanPreserve, for devices whose ...".tests/test_docs_fallback_flags.py: readsREADME.mdand importsmake_game, so a flag added toFALLBACK_FLAGSwithout a README line fails, and the number word in that sentence must match the tuple. Onmain16282101the same checks report['--f16-interp-fallback']andFour; with this change,[]andFive.No translator, runtime or format change.
Tested
Windows 11, Python 3.15.0 (
-Ithroughout; newer than CI's 3.12). No game files.The new test was also run against
git show HEAD:README.mdbefore the fix, where it reports the missing flag andFour, so it fails on the defect rather than passing regardless.No GPU used: the machine has a GTX 1080 Ti (NVIDIA driver 32.0.15.8278), but nothing here touches it, and no shader, runtime or GPU test was run.
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator rule)Depends on: none.
OpenCode AI-Assisted.