Input: a connected DualShock 4 is logged once per second (7,467 identical lines in 125 min) #419

Open
opened 2026-12-02 05:31:25 +00:00 by github-bot · 1 comment
Owner

@⁠myzsdtz-hub on GitHub · 2026-12-02 05:31 UTC · original

foxhound version:
v0.8.2 (victory.exe SHA-256 D96E0F85B7F8E610FF97DCAAE0420C09B279A246DEA6A938DB961AD253CA3A2E)

GPU / CPU / RAM / Windows:
NVIDIA GeForce RTX 4070 12 GB / Intel Core i5-14600K / 16 GB DDR4-3200 (single channel) / Windows 11 10.0.26200

Launcher settings (resolution, DLSS, Frame Generation, VRAM limit):
Series S profile, 1080p-class output (1080 to 1440), DLSS Performance, Frame Generation 2x, VRAM limit Auto, mouse input off

What happens, and when:
While a DualShock 4 is connected over USB (kind=Ds4 bt=false), the same INFO line is written once per second for the whole session — 7,467 lines in a 125-minute session. Removing timestamps, all 7,467 lines are byte-identical, so this is one message repeated 60 times a minute, not a state change.

Measured on foxhound-20261202-111454.log (125.2 min, 307,891 lines):

  • 7,467 occurrences, 2.4 % of all lines
  • interval between consecutive lines: min 0.837 s, max 1.172 s, mean 1.005 s (first 300 samples)
  • 1 unique message after stripping the timestamp

It only appears in sessions where this pad is connected. Three other sessions on the same machine, same launcher, with no pad attached, have 0–5 such lines in total:

Log Duration Pad connected Lines
foxhound-20261202-111454 125.2 min yes 7,467
foxhound-20261201-140725 174.0 min yes 10,374
foxhound-20261201-100720 78.9 min yes 4,705
foxhound-20261202-010952 32.2 min no 1
foxhound-20261201-213450 98.8 min no 5
foxhound-20261201-175410 184.3 min no 1

The line, verbatim (path partially shown):

2026-12-02T03:14:59.113702Z  INFO victory_hle::modules::gameinput::hid::devices: a Sony pad on raw HID path=\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&09cc#8&20c9ccc7&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} kind=Ds4 bt=false

The input itself works: the pad is detected and used for the whole session. I am reporting this as log noise, not as an input failure.

Why I think it is worth a look: the once-a-second cadence with an identical message suggests the device is being enumerated (or its descriptor read) on a 1 s timer rather than logged when it connects. On a 125-minute session that is 7,467 lines and several MB of an otherwise ~108 MB log, which makes the log harder to read and to share. If the per-second enumeration is intentional and only the log is wrong, logging once per device (or on change) would be enough. If it is not intentional, the repeated enumeration may also be avoidable work on the input thread — I cannot tell from the log alone which of the two it is.

I did not see this line correlate with frame stalls in this session: the 222 one-second-plus frame windows cluster around startup streaming and one heavy scene, not with these lines.

Log (the newest file in %LOCALAPPDATA%\victory\logs, game folder replaced with <game>):
foxhound-20261202-111454.log — 108 MB, 307,891 lines. Full log available on request; the line above is the only one of its kind in it.

**@⁠myzsdtz-hub** on GitHub · 2026-12-02 05:31 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/419) **foxhound version:** v0.8.2 (victory.exe SHA-256 D96E0F85B7F8E610FF97DCAAE0420C09B279A246DEA6A938DB961AD253CA3A2E) **GPU / CPU / RAM / Windows:** NVIDIA GeForce RTX 4070 12 GB / Intel Core i5-14600K / 16 GB DDR4-3200 (single channel) / Windows 11 10.0.26200 **Launcher settings (resolution, DLSS, Frame Generation, VRAM limit):** Series S profile, 1080p-class output (1080 to 1440), DLSS Performance, Frame Generation 2x, VRAM limit Auto, mouse input off **What happens, and when:** While a DualShock 4 is connected over USB (`kind=Ds4 bt=false`), the same INFO line is written once per second for the whole session — 7,467 lines in a 125-minute session. Removing timestamps, all 7,467 lines are byte-identical, so this is one message repeated 60 times a minute, not a state change. Measured on `foxhound-20261202-111454.log` (125.2 min, 307,891 lines): - 7,467 occurrences, 2.4 % of all lines - interval between consecutive lines: min 0.837 s, max 1.172 s, mean 1.005 s (first 300 samples) - 1 unique message after stripping the timestamp It only appears in sessions where this pad is connected. Three other sessions on the same machine, same launcher, with no pad attached, have 0–5 such lines in total: | Log | Duration | Pad connected | Lines | | --- | --- | --- | --- | | foxhound-20261202-111454 | 125.2 min | yes | 7,467 | | foxhound-20261201-140725 | 174.0 min | yes | 10,374 | | foxhound-20261201-100720 | 78.9 min | yes | 4,705 | | foxhound-20261202-010952 | 32.2 min | no | 1 | | foxhound-20261201-213450 | 98.8 min | no | 5 | | foxhound-20261201-175410 | 184.3 min | no | 1 | The line, verbatim (path partially shown): ``` 2026-12-02T03:14:59.113702Z INFO victory_hle::modules::gameinput::hid::devices: a Sony pad on raw HID path=\\?\hid#{00001124-0000-1000-8000-00805f9b34fb}_vid&0002054c_pid&09cc#8&20c9ccc7&5&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} kind=Ds4 bt=false ``` The input itself works: the pad is detected and used for the whole session. I am reporting this as log noise, not as an input failure. **Why I think it is worth a look:** the once-a-second cadence with an identical message suggests the device is being enumerated (or its descriptor read) on a 1 s timer rather than logged when it connects. On a 125-minute session that is 7,467 lines and several MB of an otherwise ~108 MB log, which makes the log harder to read and to share. If the per-second enumeration is intentional and only the log is wrong, logging once per device (or on change) would be enough. If it is not intentional, the repeated enumeration may also be avoidable work on the input thread — I cannot tell from the log alone which of the two it is. I did not see this line correlate with frame stalls in this session: the 222 one-second-plus frame windows cluster around startup streaming and one heavy scene, not with these lines. **Log** (the newest file in `%LOCALAPPDATA%\victory\logs`, game folder replaced with `<game>`): `foxhound-20261202-111454.log` — 108 MB, 307,891 lines. Full log available on request; the line above is the only one of its kind in it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 05:31:26 +00:00
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-12-02 05:52 UTC · original

@⁠myzsdtz-hub One clue in the example is the HID interface path. It contains the Bluetooth HID service UUID and the Bluetooth-form Sony VID. v0.8.2 only looks for BTHENUM, so it prints bt=false for that path. #254 taught the reader to recognize the UUID as well, including for a DS4.

If you can try a build of main containing #254, could you check whether that same path now says bt=true and count that line during a minute with the pad left connected? If both USB and Bluetooth are available, please say which ones were enabled for the run. The enumerator already skips a path while its reader is alive; it emits this line when it opens the path again. That comparison would help tell whether the reader still gets reopened. v0.8.2 enumeration

**@⁠Yoshi-233** on GitHub · 2026-12-02 05:52 UTC · [original](https://github.com/readmet3xt-lab/foxhound/issues/419#issuecomment-7336383300) @⁠myzsdtz-hub One clue in the example is the HID interface path. It contains the Bluetooth HID service UUID and the Bluetooth-form Sony VID. v0.8.2 only looks for `BTHENUM`, so it prints `bt=false` for that path. #254 taught the reader to recognize the UUID as well, including for a DS4. If you can try a build of main containing #254, could you check whether that same path now says `bt=true` and count that line during a minute with the pad left connected? If both USB and Bluetooth are available, please say which ones were enabled for the run. The enumerator already skips a path while its reader is alive; it emits this line when it opens the path again. That comparison would help tell whether the reader still gets reopened. [v0.8.2 enumeration](https://github.com/readmet3xt-lab/foxhound/blob/v0.8.2/crates/victory-hle/src/modules/gameinput/hid.rs#L320-L350)
This discussion has been locked. Commenting is limited to contributors.
No description provided.