Input: scripted keys from the world's first frame (VICTORY_KEYS_FROM=world) #1098

Merged
ballsimulation merged 1 commit from upstream-pr/1098 into main 2026-11-29 08:16:57 +00:00
ballsimulation commented 2026-11-28 13:15:13 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ballsimulation on 2026-11-28T13:15:13Z.


Summary

VICTORY_KEYS times count from when input starts. Boot and save loading take a different time on each run, so the same script walks a different path each run. With VICTORY_KEYS_FROM=world, the times count from the first presented frame of 500 or more draws instead, the same test VICTORY_CAPTURE_WORLD uses. No scripted key is pressed before that frame. Off unless set.

VICTORY_KEYS_FILE is not held back, because a driver (such as bench.ps1) uses it to get through the menus.

Changes

  • victory-gpu: world_since(), set once at the present that ends the first such frame. Cost: one atomic swap per present, in every build. It logs the world: the first frame of 500 draws or more.
  • victory-hle (gameinput.rs): script_base() picks what VICTORY_KEYS counts from.
  • docs/README-fxceless.md: one row in the table of switches.

Checked

  • Unit tests: keys_from_the_world, a_frame_of_500_draws_is_the_world. cargo test -p victory-hle --lib -- gameinput: 27 passed.
  • cargo clippy -p victory-gpu -p victory-hle --all-targets (with and without --all-features, -D warnings) passes for this change. main has three lints of its own that fail first: manual_is_multiple_of in shadow.rs and descriptor.rs, and some_filter in gameinput.rs:1372.
  • In the same run, the log shows scripted keys count from the world's first frame at the start and the world: the first frame of 500 draws or more frames=14355 43 s later.
  • Two bench runs from the #332 save: the world came after 45 s and 39 s, and the same route ended at the same spot with the same camera angle in both. Without this switch, the second run would have started walking 6 s earlier in the scene.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5540492630 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1098). Originally posted by [ballsimulation](https://github.com/ballsimulation) on 2026-11-28T13:15:13Z. --- ## Summary `VICTORY_KEYS` times count from when input starts. Boot and save loading take a different time on each run, so the same script walks a different path each run. With **`VICTORY_KEYS_FROM=world`**, the times count from the first presented frame of 500 or more draws instead, the same test `VICTORY_CAPTURE_WORLD` uses. No scripted key is pressed before that frame. Off unless set. `VICTORY_KEYS_FILE` is not held back, because a driver (such as `bench.ps1`) uses it to get through the menus. ## Changes - `victory-gpu`: `world_since()`, set once at the present that ends the first such frame. Cost: one atomic swap per present, in every build. It logs `the world: the first frame of 500 draws or more`. - `victory-hle` (`gameinput.rs`): `script_base()` picks what `VICTORY_KEYS` counts from. - `docs/README-fxceless.md`: one row in the table of switches. ## Checked - Unit tests: `keys_from_the_world`, `a_frame_of_500_draws_is_the_world`. `cargo test -p victory-hle --lib -- gameinput`: 27 passed. - `cargo clippy -p victory-gpu -p victory-hle --all-targets` (with and without `--all-features`, `-D warnings`) passes for this change. main has three lints of its own that fail first: `manual_is_multiple_of` in shadow.rs and descriptor.rs, and `some_filter` in gameinput.rs:1372. - In the same run, the log shows `scripted keys count from the world's first frame` at the start and `the world: the first frame of 500 draws or more frames=14355` 43 s later. - Two bench runs from the #332 save: the world came after 45 s and 39 s, and the same route ended at the same spot with the same camera angle in both. Without this switch, the second run would have started walking 6 s earlier in the scene. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
ballsimulation commented 2026-11-28 13:15:37 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ballsimulation on 2026-11-28T13:15:37Z.


Used by #1099: bench.ps1 -Route passes the route as VICTORY_KEYS with VICTORY_KEYS_FROM=world.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239808488 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1098#issuecomment-7239808488). Originally posted by [ballsimulation](https://github.com/ballsimulation) on 2026-11-28T13:15:37Z. --- Used by #1099: `bench.ps1 -Route` passes the route as `VICTORY_KEYS` with `VICTORY_KEYS_FROM=world`.
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
trustno1-coder/VIctory-NVIDIA!1098
No description provided.