hle/gameinput: increase reading history from 32 to 256 for low-FPS frames #23
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!23
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-23"
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?
@youroot-code on GitHub · 2026-11-24 20:15 UTC · original
youroot-code:fix/gameinput-history→main· +1 −1 · 1 files · 1 commits · openWhat
Increases \HISTORY\ in \crates/victory-hle/src/modules/gameinput.rs\ from \32\ to \256.
Why
\gameinput\ polls every 8 ms (\POLL = 8 ms). With \HISTORY = 32, the ring buffer only holds ~256 ms of input transitions. When GTA VI runs at 1–3 fps (330–950 ms per frame), the buffer overflows within a single frame and \GetNextReading\ / \GetPreviousReading\ return \REFERENCE_TOO_OLD\ (\
@akimfomin on GitHub · 2026-11-24 20:34 UTC · original
I independently checked the GameInput history behavior on Windows build
28000.3501with Rust1.100.0. A standalone harness compiled the completegameinput.rsfrom04512df4and its parent578d459c. The parent module's bytes also match16849898on main. It held the first reading from one fake controller and exercised the original update and reading methods at synthetic 8 ms intervals.REFERENCE_TOO_OLDin both directions.REFERENCE_TOO_OLDin both directions.This covers the history behavior with fake input in a standalone harness. If it would help review, I can share the fixture or adapt it to the existing fake-host tests. A separate controller result can also be requested through PortBridge Test Lab. PortBridge surfaced this PR for independent synthetic validation. AI-assisted with OpenAI Codex.
@adriaespii on GitHub · 2026-11-24 21:04 UTC · original
Independent test run on commit
04512df(AMD RDNA4):x86_64-pc-windows-msvc)cargo test --workspace: 469 passed, 0 failed, 7 ignored (victory-hle: 95 passed, 0 failed)cargo clippy --workspace --all-targets -- -D warnings: fails on oldervictory-shaderlints because this branch is based before6a2d9f9(rebasing onto currentmainshould clear it)AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.