GameInput: XCL_PRESS_BASE=frame counts scripted presses from the first frame #3712
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3712"
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?
Imported from ivall/xcl. Originally posted by throny on 2026-12-02T18:16:20Z.
XCL_PRESS_AT/XCL_PRESS_A_ATcount their times from the host's start. A cold shader preparation before the title runs can take minutes: on 2026-12-02 two retail-title runs showed their first frame after 288 s and 302 s. A fixed press list then misses the title's first screens.XCL_PRESS_BASE=framecounts the times from the first game frame instead and presses nothing before it. It is opt-in: without it, the only change is that the presenter stores one timestamp at the first frame.This is an opt-in alternative to #2933, which changes the default clock to the guest's entry point. Testers use this for the
title run:line of #3041 merge checks: one press list gets into the world whatever the preparation takes.What is in it
crates/xcl/src/hle/gameinput.rs:FIRST_FRAME_MS, andpress_clock()choosing between host uptime and time since the first frame; module doc line.crates/xcl/src/hle/d3d12x/present.rs: stores the first frame's host uptime.press_times_count_from_the_first_frame_when_asked.Tested
cargo test -p xcl --lib gameinput: 14 passed, 0 failed.cargo test --workspace -- --test-threads=4on the head: 3005 passed, 0 failed, 52 ignored; 25SKIPPEDlines (no wave64 and similar on this adapter).XCL_PRESS_BASE=frameand the press list10:A,14:A,…,160:A. Each run reached the world, including after a 302 s preparation.Regression run
main
817eb1fc9:this PR's head:
Not tested
token_on_timeout_and_token_in_origin_refresh, failed once on the runner and passes locally.)AI use
🤖 Generated with Claude Code