Skip to content

docs: the older wave64 marker counts left out the 769 dot-named listings; recounted over all 26,503 - #4229

Open
throny wants to merge 1 commit into
ItsNotRexed:mainfrom
throny:wave64-marker-recount
Open

throny wants to merge 1 commit into
ItsNotRexed:mainfrom
throny:wave64-marker-recount

Conversation

@throny

@throny throny commented Nov 23, 2026

Copy link
Copy Markdown

docs/design.md, row "Wave size", quoted an older code-marker scan: "9,930 PS, 8,666 mesh shaders, 1,115 VS and 923 CS". 8,666 is exactly the number of mesh-shader listings whose names do not start with .: that scan left out the 769 listings Python's glob("*.s") skips (616 MS, 118 PS, 22 VS, 13 CS). This recounts it over all 26,503 listings of my own 1.0.2.1 package, enumerated with os.listdir, with the translator's own marker test (code_w64 in translate(): WAVE64_RE, or a *_b64 op on EXEC/VCC) against the FSSM flag (fssm_header.wave_size()). Numbers only.

Totals: 12,101 PS, 9,282 MS, 2,689 CS, 2,236 VS, 195 GS (26,503), as in the index.

PS MS VS CS GS all
wave64 by FSSM flag (row, unchanged) 10,974 9,282 2,236 1,154 195 23,841
wave64 by markers, code translate() keeps 10,031 9,282 1,179 867 195 21,554
flag wave64, no marker 943 0 1,057 287 0 2,287
marker but flag wave32 (kept code) 0 0 0 0 0 0
marker but flag wave32 (raw listing) 24 0 0 80 0 104
markers, raw listing, without the 769 . names 9,953 8,666 1,172 950 195 20,936

So 21,554 + 2,287 = 23,841, the flag's count, with no contradiction on the kept code; the 2,287 match the row's existing 943 / 1,057 / 287. The 104 raw-listing markers are all in listings with embedded data words and are gone once the listing is re-anchored to the FSSM code and cut to reachable code (same_encoding, fold_far_branches, reachable_code, as translate() does). The old 9,930 / 1,115 / 923 came from a different marker set and aren't reproduced; the old sentence stays, with the omission stated and the full count after it.

Change: that sentence in docs/design.md. No code change. (No repo tool enumerates the disassembly folder with glob; the old count came from a one-off scan.)

Tested: python -m compileall -q make_game.py tools tests; tests/test_docs_links.py, test_i18n_index.py, test_design_contract_rows.py, test_docs_design_rows.py, test_docs_table_rows.py, test_docs_list_items.py, test_docs_repo_paths.py; python -I scripts/check_no_game_data.py. The census is a read-only scan of the disassembly and FSSM headers (no translation run). No GPU needed.

AI-assisted.

🤖 Generated with Claude Code

…ver all 26,503

The "Wave size" row quoted an older marker scan: 9,930 PS, 8,666 mesh shaders, 1,115 VS and
923 CS. 8,666 is the mesh total without the 769 listings whose names start with "." (glob skips
them). The translator's own marker test over all 26,503, on the code translate() keeps, finds
21,554 wave64 (10,031 PS, 9,282 MS, 1,179 VS, 867 CS, 195 GS); with the row's 2,287 flag-only
shaders that is exactly the FSSM flag's 23,841, with no contradiction. Read raw, 104 wave32
listings seem to carry a marker, all from embedded data words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at ea432012 on Windows 11: test_docs_links.py 6 OK, test_docs_design_rows.py 2 OK; git diff --check clean.

The recount over all 26,503 listings (including the 769 dot-named ones) replaces the older marker counts; the rows keep the same "wave64 marker" definition and only the totals change. No blocking issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants