Repository navigation
Fast-boot: opt-in Bink intro skip, frame interval override, device type and TTS mute env vars - #1053
Conversation
…pe and TTS mute env vars
|
NVIDIA run, since Not tested lists NVIDIA, with each new variable tried on XCL's own test title. Tested
Not tested
AI use
|
|
Linux (Wine + vkd3d-proton) + NVIDIA test of 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 Tested
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
Not tested: AI use: Claude Code (Claude Fable 5.2) read the diff, built the tree, ran the title three times with |
, xcl-dev#1876, xcl-dev#1866) Brings main to full parity with upstream/main (62265d3): - xcl-dev#1005: skip VirtualQuery on committed coherent UMA windows in cpu_writes and kernelx - xcl-dev#1053: opt-in fast-boot env vars (Bink intro skip, frame interval override, device type, TTS mute) - xcl-dev#1876: float v_cmpx through xcl-dev#1426 lowering keeps lanes outside EXEC out - xcl-dev#1866: track SCC of mixed mask and number operations Conflict in crates/xcl/src/hle/xgameruntime/api.rs resolved by keeping both the in-process Wine XAsync path and upstream's XCL_MUTE_TTS XAccessibility path. Assisted-by: Antigravity (Gemini 4)
Pulls in xcl-dev#1836 (graphics and two-pass PSO disk cache + lazy MS/GS + shader build coalescing), xcl-dev#1930 (DXIL CSE across discard), xcl-dev#1900, xcl-dev#1005, xcl-dev#1053, xcl-dev#1864, xcl-dev#1866, xcl-dev#1869, xcl-dev#1876, and xcl-dev#1898 while keeping our RDNA4 MSAA clamp (xcl-dev#1908), wave64 graphics Direct DXIL guard (xcl-dev#1913), atomic writable-range tracking, static-sampler cache keys, and 4M-group indirect dispatch clamp.
Adds 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