xcl run: XCL_SHORT_MOVIES=1 ends a title's Bink videos after their first frame #676

Closed
pr1sm-dev wants to merge 1 commit from upstream-pr/681 into main
pr1sm-dev commented 2026-11-24 03:25:44 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pr1sm-dev on 2026-11-24T03:25:44Z.


A switch for test runs: with XCL_SHORT_MOVIES=1 a 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*.dll that the title imports. A video opened with more than one frame goes to its last frame (the DLL's own BinkGoto) at its first BinkNextFrame, 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 of BinkOpenWithOptions / BinkNextFrame / BinkClose, the list of opened videos), the hook in resolve_import for 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

  • Linux Mint 22.2, kernel 6.17, Wine 11.22 (winehq-devel), vkd3d-proton v3.1 with the patch of #257, DXVK 3.1.1; RTX 3070 8 GB, driver 595.91.07; Ryzen 7 5800X; Rust 1.100.0, release, target x86_64-pc-windows-gnu. No Windows machine: everything below is under Wine.
  • This commit (8caf783923), a retail title, 120 s, 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 same resolver.rs (main at 7ebf1b8 plus other open PRs, so not this commit): 6 passed, 0 failed, 664 filtered out.
  • Two earlier forms did not work on that title and are not in this PR: setting the frame count on the title's first (probe) open did not end the video, and a BinkGoto at the open crashed inside the DLL.

Regression run

  • Made with scripts/linux/smoke.sh of #257 (the Linux port of scripts/smoke.ps1, not merged) under Wine, not with smoke.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.
  • main was run three times and ended in an access violation twice (at 92 s and 99 s, 0xc0000005 reading title memory under a memcpy; 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:

xcl-smoke v1
commit: dd2ae9a70af5eb5aad60f02d86e386b72abe1e95
gpu: NVIDIA GeForce RTX 3070
title: retail-title
seconds: 120
exit: 0x0
frames shown: 1446 (PresentX 1446)
presents per 2 s (last 3): 3 2 0
device removals: 0
crashes: 0
peak commit: 0 MB

PR:

xcl-smoke v1
commit: 8caf783923c7ac348e28622f3200cb497c5390a7
gpu: NVIDIA GeForce RTX 3070
title: retail-title
seconds: 120
exit: 0x0
frames shown: 1861 (PresentX 1861)
presents per 2 s (last 3): 0 0 14
device removals: 0
crashes: 0
peak commit: 0 MB

Not tested

  • Windows (any GPU): not built with MSVC, scripts/smoke.ps1 not run.
  • cargo test --workspace: not run (no Windows; under Wine only the resolver:: tests above).
  • Titles other than one retail game; videos played after the intro (they end early too while the switch is on); looping videos; Bink DLLs other than Bink2Scarlett.dll (the switch matches bink2*.dll from the game folder).
  • Whether the title's audio for a shortened video stops cleanly in every case (no problem heard in the runs above).

AI use

  • Claude Code with Claude Fable 5.2 wrote the code, the test, the commit message and this description, and ran the builds and runs above on my machine. I watched the runs and confirmed on screen that the video was cut.
<!-- greyfinch-sync:ivall/xcl:issue:5465503254 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681). Originally posted by [pr1sm-dev](https://github.com/pr1sm-dev) on 2026-11-24T03:25:44Z. --- A switch for test runs: with `XCL_SHORT_MOVIES=1` a 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*.dll` that the title imports. A video opened with more than one frame goes to its last frame (the DLL's own `BinkGoto`) at its first `BinkNextFrame`, 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 of `BinkOpenWithOptions` / `BinkNextFrame` / `BinkClose`, the list of opened videos), the hook in `resolve_import` for 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** - Linux Mint 22.2, kernel 6.17, Wine 11.22 (winehq-devel), vkd3d-proton v3.1 with the patch of #257, DXVK 3.1.1; RTX 3070 8 GB, driver 595.91.07; Ryzen 7 5800X; Rust 1.100.0, release, target `x86_64-pc-windows-gnu`. **No Windows machine: everything below is under Wine.** - This commit (8caf783923), a retail title, 120 s, `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 same `resolver.rs` (main at 7ebf1b8 plus other open PRs, so not this commit): 6 passed, 0 failed, 664 filtered out. - Two earlier forms did not work on that title and are not in this PR: setting the frame count on the title's first (probe) open did not end the video, and a `BinkGoto` at the open crashed inside the DLL. **Regression run** - Made with `scripts/linux/smoke.sh` of #257 (the Linux port of `scripts/smoke.ps1`, not merged) under Wine, not with `smoke.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. - main was run three times and **ended in an access violation twice** (at 92 s and 99 s, `0xc0000005` reading title memory under a `memcpy`; 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: ``` xcl-smoke v1 commit: dd2ae9a70af5eb5aad60f02d86e386b72abe1e95 gpu: NVIDIA GeForce RTX 3070 title: retail-title seconds: 120 exit: 0x0 frames shown: 1446 (PresentX 1446) presents per 2 s (last 3): 3 2 0 device removals: 0 crashes: 0 peak commit: 0 MB ``` PR: ``` xcl-smoke v1 commit: 8caf783923c7ac348e28622f3200cb497c5390a7 gpu: NVIDIA GeForce RTX 3070 title: retail-title seconds: 120 exit: 0x0 frames shown: 1861 (PresentX 1861) presents per 2 s (last 3): 0 0 14 device removals: 0 crashes: 0 peak commit: 0 MB ``` **Not tested** - Windows (any GPU): not built with MSVC, `scripts/smoke.ps1` not run. - `cargo test --workspace`: not run (no Windows; under Wine only the `resolver::` tests above). - Titles other than one retail game; videos played after the intro (they end early too while the switch is on); looping videos; Bink DLLs other than `Bink2Scarlett.dll` (the switch matches `bink2*.dll` from the game folder). - Whether the title's audio for a shortened video stops cleanly in every case (no problem heard in the runs above). **AI use** - Claude Code with Claude Fable 5.2 wrote the code, the test, the commit message and this description, and ran the builds and runs above on my machine. I watched the runs and confirmed on screen that the video was cut.
MesshM commented 2026-11-24 07:06:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T04:00:02Z.


Test run of 8caf783923c7ac348e28622f3200cb497c5390a7 on AMD RDNA4. I merged it onto current main f4ce27c locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 658 passed, 3 failed, 21 ignored, exit code 101; 0 SKIPPED
  • the 3 failures: placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted, d32s8_targets_take_their_own_size_of_video_memory. These three also fail on main f4ce27c with no PR applied (cargo test -p xcl --lib -- --test-threads=4: 657 passed, 3 failed), so they are not from this change. The first is placed_title_textures_share_vram_and_preserve_pixels at cubemap extra_pages must be reused at same va; the other two are PoisonErrors from the lock it poisons (#673 addresses the cascade, #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs at f4ce27c, 2 of 6 at d852f9a and 1 of 3 at 1387b4b on this machine.
  • short_movies_step_a_video_to_its_end_once passes.

Review: Opt-in for test runs (XCL_SHORT_MOVIES=1); it wraps exports of the title's Bink DLL and leaves the game's files alone, and without the variable nothing changes. I found nothing to change.

Not tested: no retail title or regression run (I have no unpacked game), no XCL_SAMPLE_* tests, release build; the PR's head on its old base was not run, only its merge onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

<!-- greyfinch-sync:ivall/xcl:comment:7121613717 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/681#issuecomment-7121613717). Originally posted by [MesshM](https://github.com/MesshM) on 2026-11-24T04:00:02Z. --- Test run of `8caf783923c7ac348e28622f3200cb497c5390a7` on AMD RDNA4. I merged it onto current `main` `f4ce27c` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **658 passed, 3 failed, 21 ignored**, exit code 101; 0 `SKIPPED` - the 3 failures: `placed_title_textures_share_vram_and_preserve_pixels`, `transitions_apply_when_their_list_is_submitted`, `d32s8_targets_take_their_own_size_of_video_memory`. These three also fail on `main` `f4ce27c` with no PR applied (`cargo test -p xcl --lib -- --test-threads=4`: 657 passed, 3 failed), so they are not from this change. The first is `placed_title_textures_share_vram_and_preserve_pixels` at `cubemap extra_pages must be reused at same va`; the other two are `PoisonError`s from the lock it poisons (#673 addresses the cascade, #447 the cubemap check). It is intermittent: alone it passes 3 of 3, and in the parallel lib run it failed on 6 of 7 runs at `f4ce27c`, 2 of 6 at `d852f9a` and 1 of 3 at `1387b4b` on this machine. - `short_movies_step_a_video_to_its_end_once` passes. **Review:** Opt-in for test runs (`XCL_SHORT_MOVIES=1`); it wraps exports of the title's Bink DLL and leaves the game's files alone, and without the variable nothing changes. I found nothing to change. **Not tested:** no retail title or regression run (I have no unpacked game), no `XCL_SAMPLE_*` tests, release build; the PR's head on its old base was not run, only its merge onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
ethandepstein-del commented 2026-11-24 07:06:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ethandepstein-del on 2026-11-24T04:05:47Z.


Code audit + Windows MSVC / NVIDIA RTX 5080 full-suite test run on 8caf783923c7ac348e28622f3200cb497c5390a7:

Review

Looks clean and well-isolated behind XCL_SHORT_MOVIES=1:

  • Only wraps BinkOpenWithOptions / BinkNextFrame / BinkClose on bink2* DLLs when BinkGoto resolves inside a game DLL, leaves frames <= 1 untouched, and replaces stale entries if a handle address is reused.

Tested

  • Hardware / OS / toolchain: NVIDIA GeForce RTX 5080 (driver 617.42), AMD Ryzen 7 9800X3D, Windows 11 25H2 (build 26200.9711), rustc 1.100.0 (MSVC), debug build.
  • cargo build --workspace && cargo test --workspace -- --test-threads=4: 691 passed, 0 failed, 41 ignored.
  • New test resolver::tests::short_movies_step_a_video_to_its_end_once: passed.
  • SKIPPED GPU/D3D12 tests: gpu_geometry_wave32_prefix_count_over_a_mask / gpu_wave32_program_in_wave64_hardware (no wave64), plus 2 D3D12 debug-layer tests (no d3d12SDKLayers.dll).

Not tested

  • Retail title / scripts/smoke.ps1 run with XCL_SHORT_MOVIES=1 (test suite only).
  • AMD / Intel GPUs.

AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.

<!-- greyfinch-sync:ivall/xcl:comment:7121702252 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/681#issuecomment-7121702252). Originally posted by [ethandepstein-del](https://github.com/ethandepstein-del) on 2026-11-24T04:05:47Z. --- Code audit + Windows MSVC / NVIDIA RTX 5080 full-suite test run on `8caf783923c7ac348e28622f3200cb497c5390a7`: ### Review Looks clean and well-isolated behind `XCL_SHORT_MOVIES=1`: - Only wraps `BinkOpenWithOptions` / `BinkNextFrame` / `BinkClose` on `bink2*` DLLs when `BinkGoto` resolves inside a game DLL, leaves `frames <= 1` untouched, and replaces stale entries if a handle address is reused. ### Tested - Hardware / OS / toolchain: NVIDIA GeForce RTX 5080 (driver 617.42), AMD Ryzen 7 9800X3D, Windows 11 25H2 (build 26200.9711), `rustc 1.100.0` (MSVC), debug build. - `cargo build --workspace && cargo test --workspace -- --test-threads=4`: **691 passed, 0 failed, 41 ignored**. - New test `resolver::tests::short_movies_step_a_video_to_its_end_once`: **passed**. - `SKIPPED` GPU/D3D12 tests: `gpu_geometry_wave32_prefix_count_over_a_mask` / `gpu_wave32_program_in_wave64_hardware` (`no wave64`), plus 2 D3D12 debug-layer tests (`no d3d12SDKLayers.dll`). ### Not tested - Retail title / `scripts/smoke.ps1` run with `XCL_SHORT_MOVIES=1` (test suite only). - AMD / Intel GPUs. *AI use: code review and test run orchestrated with Antigravity (Gemini 4 Neon) on the hardware listed above.*
Anon64 commented 2026-11-24 08:03:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T07:35:58Z.


Regression runs for this PR's head 8caf783 and for its base main dd2ae9a, on a retail title (same title, 60 s each), made with scripts/smoke.ps1 (release, clean tree at each commit) and pasted unedited, for Regression run.

main:

xcl-smoke v1
commit: dd2ae9a70af5eb5aad60f02d86e386b72abe1e95
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1647 (PresentX 1647)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14680 MB

this PR:

xcl-smoke v1
commit: 8caf783923c7ac348e28622f3200cb497c5390a7
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1648 (PresentX 1648)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14586 MB

Tested

  • NVIDIA GeForce RTX 3060 12 GB (driver 581.80, wave32), Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0

Not tested

  • the unit and e2e tests on this machine
  • XCL_SHORT_MOVIES=1 itself: these runs leave it unset, so this is a regression check only

Report written with Claude Code (Claude Opus 5.5) from runs on this machine.

<!-- greyfinch-sync:ivall/xcl:comment:7125165084 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/681#issuecomment-7125165084). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-24T07:35:58Z. --- Regression runs for this PR's head `8caf783` and for its base `main` `dd2ae9a`, on a retail title (same title, 60 s each), made with `scripts/smoke.ps1` (release, clean tree at each commit) and pasted unedited, for **Regression run**. main: ``` xcl-smoke v1 commit: dd2ae9a70af5eb5aad60f02d86e386b72abe1e95 gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1647 (PresentX 1647) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14680 MB ``` this PR: ``` xcl-smoke v1 commit: 8caf783923c7ac348e28622f3200cb497c5390a7 gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1648 (PresentX 1648) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14586 MB ``` **Tested** - NVIDIA GeForce RTX 3060 12 GB (driver 581.80, wave32), Intel Core i9-14900KF, Windows 11 25H2 26200.9974, Rust 1.90.0 **Not tested** - the unit and e2e tests on this machine - `XCL_SHORT_MOVIES=1` itself: these runs leave it unset, so this is a regression check only Report written with Claude Code (Claude Opus 5.5) from runs on this machine.
ThiagoAlexsander commented 2026-11-24 19:07:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ThiagoAlexsander on 2026-11-24T18:35:57Z.


Windows datapoint (native, not Wine): XCL_SHORT_MOVIES=1 works on the retail title.

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 main b7aa9f3 with this PR (8caf783), #541 and #1273 merged, plus an unpublished stall-dump switch of mine. It is not this PR alone.

What happened: the run had XCL_SHORT_MOVIES=1, XCL_NETWORK=0 and an A press at 10 s through XCL_PRESS_AT. The log shows Bink: XCL_SHORT_MOVIES=1 – videos of bink2scarlett.dll go to their last frame after the first, then a video of 450 frames went to its last frame at 11.9 s. The video was cut on screen, and the title went on with no crash and no device removal.

One observation, from a separate local experiment on an older base (930e8b4, not a controlled comparison): the title opens the 3840x2160, 450-frame intro four times, at about 6.5, 9.6, 9.7 and 9.8 s. A local wrapper set the frame count to 1 at the open, for every movie of at least 1280x720, and loading began at about 14 s. With this PR, one of the four went to its last frame, the Rockstar logo screen stayed up, and loading began at about 30 s.

So the other three handles may never get a first BinkNextFrame before they are closed or replaced. If that is so, Waiting never steps them. I haven't traced it further.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7140869935 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681#issuecomment-7140869935). Originally posted by [ThiagoAlexsander](https://github.com/ThiagoAlexsander) on 2026-11-24T18:35:57Z. --- **Windows datapoint (native, not Wine):** `XCL_SHORT_MOVIES=1` works on the retail title. **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 `main` `b7aa9f3` with this PR (`8caf783`), #541 and #1273 merged, plus an unpublished stall-dump switch of mine. It is not this PR alone. **What happened:** the run had `XCL_SHORT_MOVIES=1`, `XCL_NETWORK=0` and an A press at 10 s through `XCL_PRESS_AT`. The log shows `Bink: XCL_SHORT_MOVIES=1 – videos of bink2scarlett.dll go to their last frame after the first`, then `a video of 450 frames went to its last frame` at 11.9 s. The video was cut on screen, and the title went on with no crash and no device removal. **One observation, from a separate local experiment on an older base (`930e8b4`, not a controlled comparison):** the title opens the 3840x2160, 450-frame intro four times, at about 6.5, 9.6, 9.7 and 9.8 s. A local wrapper set the frame count to 1 at the open, for every movie of at least 1280x720, and loading began at about 14 s. With this PR, one of the four went to its last frame, the Rockstar logo screen stayed up, and loading began at about 30 s. So the other three handles may never get a first `BinkNextFrame` before they are closed or replaced. If that is so, `Waiting` never steps them. I haven't traced it further. **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.
JJAutoCompare commented 2026-11-25 07:05:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:24:38Z.


Empirical test report (8caf7839)

Hardware / environment

  • Verified detached HEAD 8caf783923c7ac348e28622f3200cb497c5390a7 for PR #681.
  • Windows 11 Enterprise Evaluation x64, OS build 26200 (10.0.26200). CPU reported by Windows as AuthenticAMD, AMD64 family 23, model 113, stepping 0, approximately 3900 MHz, with 12 logical processors visible to the shell.
  • Rust 1.100.0 (0ef1bc386), host x86_64-pc-windows-msvc. Cargo 1.100.0. DXC 1.9.2609.5 (01b62ad47). Test profile unoptimized with debug info and incremental compilation disabled.
  • Both commands ran directly outside Invoke-ArcTest.ps1. The focused run used XCL_ADAPTER=NONE_CPU_ONLY and RUST_TEST_NOCAPTURE=1 and held no Arc GPU mutex.

Commands and results

  • cargo test --workspace --no-run exited 0 and compiled the workspace test binaries without executing tests. Cargo emitted a deprecation warning for AtomicU32::fetch_update in XGameRuntime.
  • cargo test -p xcl --lib resolver::tests:: exited 0. The log records 6 passed, 0 failed, 0 ignored, 0 skipped (case-sensitive lines beginning with SKIPPED ), and 666 filtered out.

Observed behavior

The PR adds one test, short_movies_step_a_video_to_its_end_once. Its assertions confirmed that the resolver's waiting state yields the final frame number on the first step of a multi-frame video and consumes the entry. A single-frame video and a video closed before its first step yield no pending action. Opening a reused handle replaces its previous frame count. The five existing resolver tests also passed. The diff adds or modifies no integration tests.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7154761398 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681#issuecomment-7154761398). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T06:24:38Z. --- ### Empirical test report (8caf7839) **Hardware / environment** - Verified detached HEAD `8caf783923c7ac348e28622f3200cb497c5390a7` for PR #681. - Windows 11 Enterprise Evaluation x64, OS build 26200 (10.0.26200). CPU reported by Windows as AuthenticAMD, AMD64 family 23, model 113, stepping 0, approximately 3900 MHz, with 12 logical processors visible to the shell. - Rust 1.100.0 (`0ef1bc386`), host `x86_64-pc-windows-msvc`. Cargo 1.100.0. DXC 1.9.2609.5 (`01b62ad47`). Test profile unoptimized with debug info and incremental compilation disabled. - Both commands ran directly outside `Invoke-ArcTest.ps1`. The focused run used `XCL_ADAPTER=NONE_CPU_ONLY` and `RUST_TEST_NOCAPTURE=1` and held no Arc GPU mutex. **Commands and results** - `cargo test --workspace --no-run` exited 0 and compiled the workspace test binaries without executing tests. Cargo emitted a deprecation warning for `AtomicU32::fetch_update` in XGameRuntime. - `cargo test -p xcl --lib resolver::tests::` exited 0. The log records 6 passed, 0 failed, 0 ignored, 0 skipped (case-sensitive lines beginning with `SKIPPED `), and 666 filtered out. **Observed behavior** The PR adds one test, `short_movies_step_a_video_to_its_end_once`. Its assertions confirmed that the resolver's waiting state yields the final frame number on the first step of a multi-frame video and consumes the entry. A single-frame video and a video closed before its first step yield no pending action. Opening a reused handle replaces its previous frame count. The five existing resolver tests also passed. The diff adds or modifies no integration tests. **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.
DavidM1911 commented 2026-11-25 12:06:37 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:06:16Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7161923912 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681#issuecomment-7161923912). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T12:06:16Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
github-actions[bot] commented 2026-11-29 07:42:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:42:16Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252637871 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681#issuecomment-7252637871). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:42:16Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:56:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:56:23Z.


Triage (#1607) – head 8caf783

Main already has this feature: #1053 (main commit 4f4db64) added XCL_SKIP_BINK=1 in hle/bink.rs. Like this PR, it wraps the title's bink2*.dll imports in resolver::resolve_import and ends non-looping movies at their last frame. The difference is how: main sets frame_num / last_frame_num in BinkNextFrame / BinkDoFrame* / BinkWait, where this PR calls the DLL's own BinkGoto at the first BinkNextFrame.
The branch conflicts with main in resolver.rs. With both switches set, the same imports would be wrapped twice. If calling BinkGoto works better than main's header writes for some title, that would be a change to hle/bink.rs rather than a second switch.
Recommendation: close (superseded by #1053 / main commit 4f4db64).

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300215345 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681#issuecomment-7300215345). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:56:23Z. --- **Triage (#1607)** – head 8caf783 Main already has this feature: #1053 (main commit 4f4db64) added `XCL_SKIP_BINK=1` in `hle/bink.rs`. Like this PR, it wraps the title's `bink2*.dll` imports in `resolver::resolve_import` and ends non-looping movies at their last frame. The difference is how: main sets `frame_num` / `last_frame_num` in `BinkNextFrame` / `BinkDoFrame*` / `BinkWait`, where this PR calls the DLL's own `BinkGoto` at the first `BinkNextFrame`. The branch conflicts with main in resolver.rs. With both switches set, the same imports would be wrapped twice. If calling `BinkGoto` works better than main's header writes for some title, that would be a change to `hle/bink.rs` rather than a second switch. Recommendation: close (superseded by #1053 / main commit 4f4db64). AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
throny commented 2026-12-01 12:39:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:39:10Z.


Closing as superseded: this change is already on main (4f4db645). hle/bink.rs (added by 4f4db645, merged #1053, f5136a64) wraps the bink2 imports (BinkOpen/BinkOpenWithOptions/BinkNextFrame/BinkGoto) and fast-advances non-looping movies, opt-in via XCL_SKIP_BINK; PR only differs in env var name XCL_SHORT_MOVIES

Two independent checks found this: Foniass's close list on #1607 and ours against current main. If something here is still missing on main, say so and reopen it, or ask and I will.

AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

<!-- greyfinch-sync:ivall/xcl:comment:7311448811 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/681#issuecomment-7311448811). Originally posted by [throny](https://github.com/throny) on 2026-12-01T12:39:10Z. --- Closing as superseded: this change is already on `main` (4f4db645). hle/bink.rs (added by 4f4db645, merged #1053, f5136a64) wraps the bink2 imports (BinkOpen/BinkOpenWithOptions/BinkNextFrame/BinkGoto) and fast-advances non-looping movies, opt-in via XCL_SKIP_BINK; PR only differs in env var name XCL_SHORT_MOVIES Two independent checks found this: Foniass's close list on #1607 and ours against current `main`. If something here is still missing on `main`, say so and reopen it, or ask and I will. AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!676
No description provided.