Skip to content

docs(runtime tests): Bink 1.0.2.1 package-gated runs on a second machine - #4567

Open
bobcatchris wants to merge 3 commits into
ItsNotRexed:mainfrom
bobcatchris:pr/bink-independent-run-docs
Open

bobcatchris wants to merge 3 commits into
ItsNotRexed:mainfrom
bobcatchris:pr/bink-independent-run-docs

Conversation

@bobcatchris

@bobcatchris bobcatchris commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Claim: #4421 (comment) (new ASSET docs item).

Docs-only: three Bink runtime-test notes, plus a link from docs/movies.md to them.

Records an independent run of the Bink package-gated tests on a second machine (Windows 11, Ryzen 7 7800X3D, RX 7900 XTX, driver 32.0.32015.7029) against a separately verified 1.0.2.1 package, main d0835dd9:

  • bink_audio (runtime/test/bink_audio_test.md): new measured-tracks row - a 1280x720 KB2n stream with one 0x7000 (binkaudio_dct, 48 kHz stereo) track, 181 frames, yields 1,158,400 PCM bytes (6.033 s); every one of the 181 calls returned 6,400 bytes (no 7,680 or 0 calls, so no pre-roll on that stream).
  • bink_decode (runtime/test/bink_decode_test.md): a KB2j-revision 512x512 15-frame stream decodes through Bink2Scarlett.dll (2 shim / 58 host / 0 unimplemented imports; frames 0 and 1 differ) on a second 1.0.2.1 copy, so KB2j also decodes through the loader (the KB2n numbers above are from the first copy).
  • bink_play (runtime/test/bink_play.md): a 720p 181-frame KB2n stream decodes headless at 672 fps on this CPU, consistent with the decoder being CPU-only and the 4K rate being resolution-bound.
  • The same run passed pe_loader, fsr_dispatch and bvh_builder; those results belong with the GPU test results (one comment per GPU and driver) #166 entries and are not part of this diff.
  • The movies.rpf index reproduces docs/movies.md exactly on this package: 515 streams, 8,831,336,892 stream bytes, 1,094,744 zero padding, 22,812 unread.

Offsets, sizes, frame counts and rates only - no game data, no streams, no frames. Docs only, no code changes; test_docs_links, test_docs_table_rows, test_docs_list_items, test_docs_repo_paths and test_docs_cli_flags pass; git diff --check clean. AI-assisted.

@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 3af6fdea on Windows 11: pytest tests/test_docs_links.py tests/test_docs_table_rows.py tests/test_docs_list_items.py tests/test_docs_repo_paths.py tests/test_docs_cli_flags.py -q -> 15 passed; git diff --check clean.

The three runtime-test notes add second-machine (Ryzen 7 7800X3D) rows: 181 frames -> 181 x 6,400 PCM bytes, KB2j 512x512 stream decoding with 2 shim/58 host/0 unimplemented, and 181 frames headless at 0.27 s (672 fps). The table/list/link/path checks still pass; I cannot re-run those second-machine measurements. No blocking issue.

@wavehs

wavehs commented Nov 23, 2026

Copy link
Copy Markdown

Verdict: approve-with-nits. The numbers are consistent with docs/movies.md and with the code: 181 × 6,400 = 1,158,400 bytes, ÷ (48,000 × 2 × 2) = 6.033 s; calls= really is the printed field (runtime/test/bink_audio_test.cpp:430); 0x7000 = 16-bit/stereo/DCT 48 kHz (docs/movies.md:87); KB2j = nine 512×512/15-frame plus one 1920×1080/60 (docs/movies.md:54-56); the six package-gated tests with SKIP_RETURN_CODE 77 exist (runtime/CMakeLists.txt:474,659,676,694,711,728); WARP-by-default per RT-54/RT-89 matches bvh_builder_test.cpp:629-638. test_docs_links, test_docs_table_rows, test_docs_list_items, test_docs_repo_paths and test_docs_cli_flags all pass.

Problems:

  1. The description overpromises. It says the change records the facts from a run of all six package-gated tests and names pe_loader, fsr_dispatch and bvh_builder, but the diff contains only the three Bink files. Either retitle it as the Bink runs, or record the other three where results belong (docs/testing.md, "Posting your result" → GPU test results (one comment per GPU and driver) #166; CONTRIBUTING.md:20-21).
  2. runtime/test/bink_audio_test.md:55-57 contradicts itself: "181 x 6,400 PCM bytes ... (a byte count per frame, not a fixed packet size)" — 6,400 on every one of the 181 calls is a fixed size, and since a 7,680 return or a pre-roll would sit inside the same 450 × 6,400, "no pre-roll" is not derivable from the sum. Suggested: "every one of the 181 calls returned 6,400 bytes (no 7,680 or 0 calls, so no pre-roll on this stream)".
  3. runtime/test/bink_decode_test.md:39-40: "both revisions decode through the loader on more than one package copy" — the second machine ran KB2j; nothing says it ran KB2n. Suggested: "KB2j also decodes through the loader, on a second 1.0.2.1 copy (the KB2n numbers above are from the first)". The ten-KB2j composition is already in docs/movies.md:54, so a link avoids maintaining it twice.
  4. Nits: bink_play.md:48 says "own package" where the other two say "own 1.0.2.1 package"; attribution elsewhere uses (@name, #N); and none of runtime/test/bink_*.md is reachable from docs/README.md or docs/movies.md, so the new measurements stay unlinked.
  5. FYI: change-scope only treats docs/**/*.md as docs-only, so runtime/test/*.md will run the full Windows job rather than a docs-only subset.

AI-assisted review.

bobcatchris and others added 2 commits November 22, 2026 21:41
…nd machine

All six gated tests pass on Windows 11 / Ryzen 7 7800X3D / RX 7900 XTX
(32.0.32015.7029) against an independently verified package on main d0835dd:
pe_loader, fsr_dispatch (steps 1-7; context created as on WARP, dispatch stops
at the documented compute-pipeline refusal), bvh_builder (WARP per RT-89),
bink_decode, bink_audio and bink_play_headless.

New measured facts recorded:
- bink_audio: 1280x720 1-track 0x7000 binkaudio_dct 48 kHz stereo stream,
  181 frames -> 1,158,400 PCM bytes (6.033 s), calls=181, no pre-roll.
- bink_decode: a KB2j-revision 512x512 15-frame stream decodes (2 shim / 58
  host / 0 unimplemented imports, frames 0 and 1 differ), so both revisions
  decode through the loader on more than one package copy.
- bink_play: 720p 181-frame headless decode at 672 fps on this CPU.

Offsets, sizes and counts only; no game data. movies.rpf indexing reproduced
docs/movies.md exactly (515 streams, 1,094,744 padding bytes, 22,812 unread).
@bobcatchris
bobcatchris force-pushed the pr/bink-independent-run-docs branch from 3af6fde to 11a1f88 Compare November 23, 2026 03:41
@bobcatchris bobcatchris changed the title docs(runtime tests): independent 1.0.2.1 package-gated runs on a second machine docs(runtime tests): Bink 1.0.2.1 package-gated runs on a second machine Nov 23, 2026
@bobcatchris

Copy link
Copy Markdown
Contributor Author

@wavehs thanks — all four points applied at 60f1d319:

  1. Retitled to the Bink runs. The body now says the same run also passed pe_loader, fsr_dispatch and bvh_builder, that those results belong with the GPU test results (one comment per GPU and driver) #166 entries, and that they are not part of this diff.
  2. runtime/test/bink_audio_test.md now reads "every one of the 181 calls returned 6,400 bytes (no 7,680 or 0 calls, so no pre-roll on this stream)".
  3. runtime/test/bink_decode_test.md now says KB2j also decodes through the loader, on a second 1.0.2.1 copy (the KB2n numbers above are from the first), and links the ten-stream composition to docs/movies.md section 1 instead of restating it.
  4. runtime/test/bink_play.md says "own 1.0.2.1 package". There is no third-party attribution in these three notes to reformat, and docs/movies.md under "Decode evidence" now links all three notes.
  5. Noted on change-scope: runtime/test/*.md will take the full Windows job rather than the docs-only subset.

test_docs_links, test_docs_table_rows, test_docs_list_items, test_docs_repo_paths and test_docs_cli_flags pass on the new head (15 tests); git diff --check clean.

AI-assisted.

@kapitche

Copy link
Copy Markdown
Contributor

Tested 60f1d31 merged with main 7b7d73f on WSL2 Ubuntu, Python 3.12.16 (docs only): the docs tests pass (tests/test_docs_*.py all OK, including links and repo paths for the new docs/movies.md reference). The runs the PR reports are on the author's own package and a second machine, so I could not repeat them; I only checked that the links it adds resolve.

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.

4 participants