Repository navigation
Conversation
…rst frame A retail game plays its intro through the console's Bink DLL from its own folder and takes no button to skip it, so every test run waits through the video (about 40 s of each run here). With XCL_SHORT_MOVIES=1 the resolver wraps three of that DLL's exports the title imports (BinkOpenWithOptions, BinkNextFrame, BinkClose): a video opened with more than one frame goes to its last frame, with the DLL's own BinkGoto, at its first BinkNextFrame. The title's end-of-video test is then met after one frame. The goto is not made at the open: the title registers its frame buffers after it, and a goto there read a null pointer inside the DLL. Without the switch the imports are the DLL's own, and nothing in the game's files changes either way. Measured under Wine on a local tree (not this commit, see the PR): the 450-frame intro ended 4 s after its open and loading began about 20 s earlier in the run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Test run of Tested
Review: Opt-in for test runs ( Not tested: no retail title or regression run (I have no unpacked game), no Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code. |
|
Code audit + Windows MSVC / NVIDIA RTX 5080 full-suite test run on ReviewLooks clean and well-isolated behind
Tested
Not tested
AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above. |
|
Regression runs for this PR's head main: this PR: Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine. |
|
Windows datapoint (native, not Wine): Setup: Windows 11 Pro 26300, RTX 5080 16 GB (driver 32.0.16.1088), Ryzen 7 9800X3D, 62 GB. Rust 1.100.0, release. Retail title 1.0.2.1. The build was a local tree of What happened: the run had One observation, from a separate local experiment on an older base ( So the other three handles may never get a first Not tested: this PR on its own, AMD, and a Windows regression run of this PR alone. AI use: Claude Code (Claude Opus 5.5) built and ran this and wrote the report. Posted with my approval. |
Empirical test report (8caf783)Hardware / environment
Commands and results
Observed behavior The PR adds one test, Not tested Full GPU workspace suite, live title Bink playback, and game smoke runs were omitted. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr681-focused.log and published. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
A switch for test runs: with
XCL_SHORT_MOVIES=1a title's Bink videos end after their first frame. A retail game plays its intro through the console's Bink DLL and takes no button to skip it, so every test run waited about 40 s for it. Without the switch nothing changes; the game's files are never touched.How: the resolver wraps three exports of the game's
bink2*.dllthat the title imports. A video opened with more than one frame goes to its last frame (the DLL's ownBinkGoto) at its firstBinkNextFrame, so the title's own end-of-video test is met. Not at the open: the title registers its frame buffers after it, and a goto there read a null pointer inside the DLL.What is in it
crates/xcl/src/resolver.rs:mod short_movies(the switch, wrappers ofBinkOpenWithOptions/BinkNextFrame/BinkClose, the list of opened videos), the hook inresolve_importfor imports from a game DLL, and a unit test of the list (short_movies_step_a_video_to_its_end_once).README.md: one entry for the switch.Tested
x86_64-pc-windows-gnu. No Windows machine: everything below is under Wine.XCL_SHORT_MOVIES=1, same script and settings as the regression runs below: the log has "a video of 450 frames went to its last frame (XCL_SHORT_MOVIES)" at 46.3 s, the video was cut on screen, and the run went on and ended by itself: exit 0x0, 1156 (PresentX 1156) frames shown, 0 crashes, 0 device removals. (Fewer frames than the runs below because the time the video took is now spent on the loading screen, which presents more slowly.)resolver::unit tests under Wine, on a local tree with the sameresolver.rs(main at 7ebf1b8 plus other open PRs, so not this commit): 6 passed, 0 failed, 664 filtered out.BinkGotoat the open crashed inside the DLL.Regression run
scripts/linux/smoke.shof Linux: docs/linux.md, scripts/linux and Wine start-up checks for vkd3d-proton and DXVK (#154, #241) #257 (the Linux port ofscripts/smoke.ps1, not merged) under Wine, not withsmoke.ps1: I have no Windows machine. Default settings (the switch off), 120 s, scripted A / D-pad presses (XCL_PRESS_AT) in both. The game folder is mounted under a neutral name.0xc0000005reading title memory under amemcpy; the script prints no block for a run that does not reach its end). The block below is the third run. The PR's default run was made once.main:
PR:
Not tested
scripts/smoke.ps1not run.cargo test --workspace: not run (no Windows; under Wine only theresolver::tests above).Bink2Scarlett.dll(the switch matchesbink2*.dllfrom the game folder).AI use