Fast-boot: opt-in Bink intro skip, frame interval override, device type and TTS mute env vars #1053
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1053
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1053/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@raylitebull on GitHub · 2026-11-24 10:57 UTC · original
raylitebull:bringup/skip-intro-fast-boot→main· +688 −30 · 8 files · 1 commits · merged 2026-11-24 23:41 UTCAdds optional, strictly opt-in fast-boot and unattended testing environment variables cleanly on top of
main(zero behavior change when unset).What is in it
XCL_SKIP_BINK=1(allto also skip looping movies) (crates/xcl/src/hle/bink.rs,crates/xcl/src/resolver.rs): when enabled, still maps the title's ownbink2*.dll(preservingBinkGetFrameBuffersInfo,BinkRegisterFrameBuffers, memory callbacks, andBinkClose), while wrapping playback-advancement exports (BinkOpen*,BinkClose,BinkWait,BinkShouldSkip,BinkNextFrame,BinkDoFrame*,BinkGoto) to fast-advanceFrameNumandLastFrameNumtoFrameswithout decoding frames. Non-looping intro/logo movies finish on their first tick; looping movies (BINKWILLLOOP, bit 7 ofOpenFlags) forward to the real DLL unlessXCL_SKIP_BINK=all.XCL_FRAME_INTERVAL_US=<us|0|uncapped>(crates/xcl/src/hle/d3d12x/frame.rs): optional override for the console frame clock requested viaSetFrameIntervalX. Positive values clamp the clock interval tomin(requested, override)(floor 1000 µs, disabling theTIME_CRITICALspin loop at <= 2000 µs);0/uncapped/offletsWaitFrameEventXissue monotonic tokens immediately with real QPC origins without waking the clock thread.XCL_DEVICE_TYPE=<anaconda|lockhart>(crates/xcl/src/config.rs,crates/xcl/src/launcher.rs,crates/xcl/src/host.rs): in-memory override fordevice_type(acceptinganaconda/series x/xsx/xandlockhart/series s/xss/s) applied beforeConfig::resolve, cascading intois_series_s(),title_memory,title_memory_mb(8192 vs 13824 MiB),XSystemGetDeviceType,kernelx::console_mode, andtexture::console_pipeswithout modifyingxcl.toml.XCL_MUTE_TTS=1(crates/xcl/src/hle/xgameruntime/api.rs): routesQueryApiImpl(XACCESSIBILITY, ...)to XCL's built-inxcl_xaccessibility_object()(keeping closed-caption and high-contrast APIs working while returningE_NOTIMPLfor speech synthesis), silencing Windows TTS during unattended runs.BinkHeaderABI offsets, Bink skip modes and loop-flag handling, frame-interval override parsing/clamping,XCL_DEVICE_TYPEoverride resolution, andXCL_MUTE_TTSparsing.Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13), debug (cargo test) and release (cargo build --release -p xcl).cargo test --workspace -- --test-threads=4: 744 passed, 0 failed, 41 ignored (0 failures across lib unit tests,e2e,console_dlls_e2e,console_shaders,disasm_e2e,rpf_e2e,sparse_reinit,texture_states,xg_oracle).game_scarlett_master.exe) 70 s controlled runs (XCL_NETWORK=0,XCL_MUTE_TTS=1,XCL_PRESS_A_AT=14,16,18,20,22,24, isolatedXCL_DATA_ROOT, warm DXIL cache):38.1 s, reached 12,000th shader at69.1 s(12,453 shaders by70 s), clean exit0x0.XCL_SKIP_BINK=1: intercepted and skipped the 3840x2160 450-frame 30 fps intro movie (~15.0 s) at16.5 s, reached post-intro screen at22.1 s(-16.0 s), reached 12,000th shader at53.4 s(-15.7 s), finished all 19,207 shaders at63.5 s, and entered active DirectStorage world streaming at64.1 swith zero crashes/hangs (exit 0x0).XCL_SKIP_BINK=1+XCL_FRAME_INTERVAL_US=0: pushed early startup up to ~524 fps (4,725frames presented in 70 s), reached post-intro at18.0 s, 12,000th shader at51.1 s(-18.0 svs baseline), 19,000th shader at62.3 s, clean exit0x0.XCL_MUTE_TTS=1: confirmedXAccessibility: XCL (XCL_MUTE_TTS=1 – speech synthesis muted)andXSpeechSynthesizerCreate -> E_NOTIMPLwithout errors.XCL_DEVICE_TYPE=lockhart: confirmed title detected Lockhart (8192 MiBbudget,TileHeap: 3977 Mb) without editingxcl.toml.Regression run
main:
PR:
Not tested
BINKfields, rely on audio-synced movie callbacks, or play looping intro/transition movies whereXCL_SKIP_BINK=allvs1may behave differently).WaitFrameEventX/GetFrameStatisticsXdeltas underXCL_FRAME_INTERVAL_US=0(positive intervals like8333or4167are safer if a title assumes non-zero frame deltas).XCL_DEVICE_TYPE=lockhart) world boot: on the retail title, Lockhart mode triggers synchronous sparse heap commits duringSystem Initthat currently exceed the title's 30 s init watchdog (~32.7 s), so further Lockhart-specific memory/boot testing is needed separately.AI use
@fromthemoonx on GitHub · 2026-11-24 11:44 UTC · original
NVIDIA run, since Not tested lists NVIDIA, with each new variable tried on XCL's own test title.
Tested
NVIDIA GeForce RTX 3060 12 GB (32-lane waves), driver 32.0.16.1088; AMD Ryzen 7 5700X; native Windows 11 Pro 26H2 (build 26300.9974), Graphics Tools (D3D12 debug layer) installed; rustc 1.100.0
stable-x86_64-pc-windows-msvc; DXC 1.9.2602.17; debugExact head
4f4db6452875984c003623ec8aef9f7e54df5ed9(on its base384f7f7):cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4: 744 passed, 0 failed, 41 ignored (lib 701 / 0 / 21). All seven new tests passed:device_type_override_cascades_into_resolve,bink_header_abi_offsets,mode_and_dll_matching,fast_advance_respects_loop_flag_and_mode,wrap_only_intercepts_known_exports_when_enabled,interval_override_parsing_and_clamping,parse_mute_tts_values.The seven new tests together, 10 runs with
--test-threads=8: 10 of 10 passed. Several of them read environment variables, so I ran them in parallel on purpose. The whole lib, 5 runs: 5 of 5.Merged onto current
main47efa2e(no conflict): 748 passed, 0 failed, 41 ignoredxcl runof the e2e test title (tests/testtitle,-- --hello), merged tree, one run per setting:frame interval 16667 µsXCL_FRAME_INTERVAL_US=016667 µs requested (XCL_FRAME_INTERVAL_US=0 – uncapped …)XCL_FRAME_INTERVAL_US=833316667 µs requested → 8333 µs effectiveXCL_MUTE_TTS=1XCL_SKIP_BINK=1XCL_DEVICE_TYPE=lockhart, or"series s"console: Xbox Series S (lockhart) (title memory 8192 MiB …)The one failure under Series S is
[FAIL] kernelx: GetConsoleType / XSystemGetDeviceType: device type = 6, a test-title check that expects a Series X.mainwithdevice_type = "lockhart"in the title'sxcl.tomlfails that same check (failures: 1). So the override behaves exactly like the existing setting, and the failure is not from this PR.D3D12 debug layer: the test title's
XCL_D3D12_DEBUG=1run logs the same set of debug-layer errors and warnings on the merged tree as onmain.SKIPPED (no wave64 on this adapter):
gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwareNot tested
AI use
@Royalflamejlh on GitHub · 2026-11-24 14:52 UTC · original
Linux (Wine + vkd3d-proton) + NVIDIA test of
XCL_SKIP_BINK=1from4f4db64, on a retail title: the intro film after the account screen was skipped in 2 of 2 runs and everything after it came 10 to 14 s sooner; with the switch unset the run was as onmain. I did not test the other switches.Setup: Fedora 44 (kernel 7.2.9), Wine 11.21 Staging (Wayland driver), vkd3d-proton 3.1 with the relaxed-vtable patch from #175 and a local dxil-spirv patch. RTX 4070 12 GB (driver 615.71.09), Ryzen 9 9950X3D, 64 GB RAM. Release, cross-compiled to
x86_64-pc-windows-gnu(rustc 1.98.0),XCL_NETWORK=0,XCL_PSO_PRELOAD=0. Retail title 1.0.2.1, the first-run screens completed once and no story progress, one A press at 44.8 s throughXCL_PRESS_AT, 75 s runs, a frame dumped every 30 presents.4f4db64merged ontomain67a3735+ #684 (e56dbc3) without conflicts.Tested
cargo test --release -p xcl --libforbink,device_type_overrideandintervalunder Wine, on the merge: 7 passed, 0 failed.XCL_SKIP_BINK=1, run 1 / 2Bink: skipping movielines0xc04445a)[SHADER]lines)No fault in any of the three. The account screen was up from 12 s to 13 s in all three, so the switch does not change what comes before the press.
Read
bink.rs:183(fast_advance): the one movie this title opens on this path is not a looping one, so the default mode is enough for it;allwas not needed and not tried. The logo screen that follows the film with the switch unset did not show with it on, and nothing in the log says why; the loading pictures came straight after the black frames.WaitFrameEventXinframe.rsforXCL_FRAME_INTERVAL_US. With that variable unset the old wait is kept as theelsebranch, and the unset run above behaved likemain(the burst at 60 s to 70 s, as in our runs ofmaintonight).Not tested:
XCL_SKIP_BINK=all,XCL_FRAME_INTERVAL_US,XCL_DEVICE_TYPEand the other switches of this change; a first boot without saves; past 75 s; the rest of the test suite; other titles.AI use: Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the title three times with
XCL_PRESS_AT, measured the frame dumps and wrote this report.