[GH #55] RTX 5060 / Win10: world reached and lit at 4-5 fps; keyboard-pad map gaps, 12 refused programs, copy-back dominates the frame #55

Open
opened 2026-11-25 07:06:27 +00:00 by bailu12300 · 4 comments
bailu12300 commented 2026-11-25 07:06:27 +00:00 (Migrated from github.com)

Imported from Zettrox/ztrx. Originally posted by bailu12300 on 2026-11-25T06:27:45Z.


RTX 5060 8 GB, Windows 10 19045 (Agility SDK 1.614 in target\release\D3D12), 90b529f + #49 + #36, VICTORY_BVH_BUILDER=1.

State: the opening and the first playable stretch are reached and lit. Prison yard, HUD tutorial, subtitles, camera responds. 12 minutes of play after that, no crash, no device loss. What follows is what still keeps it from being playable.

1. Keyboard-as-pad does not cover everything, and there is no way to remap

FALLBACK_BUTTONS in crates/victory-hle/src/modules/gameinput.rs:66 maps 14 keys:

Esc MENU, Tab VIEW, Enter A, Backspace B, X, Y, arrows d-pad,
Q LEFT_SHOULDER, E RIGHT_SHOULDER, F LEFT_STICK, H RIGHT_STICK,
Z / C left / right trigger

In practice, in the yard:

  • Q/E (LB/RB) and F/H (stick clicks) produce no reaction at all, while Enter/X/Y and WASD do. Either the title reacts to those buttons through a path the fallback never fills, or the bit is consumed somewhere else.
  • There is no mouse binding at all (no aim, no look).
  • Nothing in README or --help lets a user change any of it; the table is compiled in.

Ask: is there a reason LB/RB cannot be delivered as a plain button bit, and would a VICTORY_PAD_MAP=key=button,... style override be acceptable? That alone would unblock playing with keyboard and mouse instead of needing a pad.

2. 12 refused programs left, and the ones that hurt are pixel-side

a descriptor read only as data (pixel)      several
the first half of an interpolation          (1)
host pipeline refused 0x80070057 (compute)  (1)

Plus, every frame: the title sets depth bounds, which the host is not given min=0.0 max=1.0 (that is #35, unmerged), and textures that arrive late show as flat/blocky for a moment. Visual result at this point: geometry and sun are right, but anything lit only by bounce is still too dark, some materials come out flat, and text/decals pop in.

3. The frame cost is the copy-back, not the GPU

4-5 fps at 1280x720-ish present, GPU 60-90% busy. Per frame from the log:

item per frame
submissions sent ahead 29.2
relay landings (the thread that copies back) 164-189 ms
of that, waiting for the card with nothing to land 48 ms
of that, fetching pieces of card copies 55 ms
title memory read in settles 53-61 ms
texture refreshes, all threads 9 ms
lists in the air 128

VICTORY_RELAY=2, VICTORY_LATE_WAIT=3, VICTORY_WIDE_BACK=1 are already on. The log itself points at three unused knobs: VICTORY_JOIN_COPIES=1 (26 copies/frame, 0 continue the one before), VICTORY_CARD_BUFFERS_MIN_MB=1 (396 MB/frame of copies are 1 MiB or more), VICTORY_CARD_REHASH_RUNS=1 (178 hash passes over 711 pieces). Before I turn them on blind: which of those three is expected to be safe with a title that writes its own buffers from shaders, and is there a recommended order?

What would help most

  1. A pad map override (keyboard and mouse), so no physical pad is needed.
  2. #35 merged, and a hint on the interpolation-half refusal in pixel shaders.
  3. A word on which of the relay knobs is safe, since that is 160+ ms of every 220 ms frame.
<!-- greyfinch-sync:Zettrox/ztrx:issue:6598636447 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/55). Originally posted by [bailu12300](https://github.com/bailu12300) on 2026-11-25T06:27:45Z. --- RTX 5060 8 GB, Windows 10 19045 (Agility SDK 1.614 in `target\release\D3D12`), 90b529f + #49 + #36, `VICTORY_BVH_BUILDER=1`. State: the opening and the first playable stretch are reached and **lit**. Prison yard, HUD tutorial, subtitles, camera responds. 12 minutes of play after that, no crash, no device loss. What follows is what still keeps it from being playable. ## 1. Keyboard-as-pad does not cover everything, and there is no way to remap `FALLBACK_BUTTONS` in `crates/victory-hle/src/modules/gameinput.rs:66` maps 14 keys: ``` Esc MENU, Tab VIEW, Enter A, Backspace B, X, Y, arrows d-pad, Q LEFT_SHOULDER, E RIGHT_SHOULDER, F LEFT_STICK, H RIGHT_STICK, Z / C left / right trigger ``` In practice, in the yard: - Q/E (LB/RB) and F/H (stick clicks) **produce no reaction at all**, while Enter/X/Y and WASD do. Either the title reacts to those buttons through a path the fallback never fills, or the bit is consumed somewhere else. - There is no mouse binding at all (no aim, no look). - Nothing in README or `--help` lets a user change any of it; the table is compiled in. Ask: is there a reason LB/RB cannot be delivered as a plain button bit, and would a `VICTORY_PAD_MAP=key=button,...` style override be acceptable? That alone would unblock playing with keyboard and mouse instead of needing a pad. ## 2. 12 refused programs left, and the ones that hurt are pixel-side ``` a descriptor read only as data (pixel) several the first half of an interpolation (1) host pipeline refused 0x80070057 (compute) (1) ``` Plus, every frame: `the title sets depth bounds, which the host is not given min=0.0 max=1.0` (that is #35, unmerged), and textures that arrive late show as flat/blocky for a moment. Visual result at this point: geometry and sun are right, but anything lit only by bounce is still too dark, some materials come out flat, and text/decals pop in. ## 3. The frame cost is the copy-back, not the GPU 4-5 fps at 1280x720-ish present, GPU 60-90% busy. Per frame from the log: | item | per frame | |---|---| | submissions sent ahead | 29.2 | | relay landings (the thread that copies back) | 164-189 ms | | of that, waiting for the card with nothing to land | 48 ms | | of that, fetching pieces of card copies | 55 ms | | title memory read in settles | 53-61 ms | | texture refreshes, all threads | 9 ms | | lists in the air | 128 | `VICTORY_RELAY=2`, `VICTORY_LATE_WAIT=3`, `VICTORY_WIDE_BACK=1` are already on. The log itself points at three unused knobs: `VICTORY_JOIN_COPIES=1` (26 copies/frame, 0 continue the one before), `VICTORY_CARD_BUFFERS_MIN_MB=1` (396 MB/frame of copies are 1 MiB or more), `VICTORY_CARD_REHASH_RUNS=1` (178 hash passes over 711 pieces). Before I turn them on blind: which of those three is expected to be safe with a title that writes its own buffers from shaders, and is there a recommended order? ## What would help most 1. A pad map override (keyboard and mouse), so no physical pad is needed. 2. #35 merged, and a hint on the interpolation-half refusal in pixel shaders. 3. A word on which of the relay knobs is safe, since that is 160+ ms of every 220 ms frame.
bailu12300 commented 2026-11-25 07:06:31 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by bailu12300 on 2026-11-25T06:51:35Z.


Tried the three knobs this issue names, one group at a time, same save and cache, same yard. Result: none of them helps, two make it clearly worse.

setting frames ms/frame relay landing wait for fetches of card copies' pieces copies/frame hash passes
baseline (RELAY=2 LATE_WAIT=3 WIDE_BACK=1) 2 406-458 319-353 ms 187-189 ms 43 185
JOIN_COPIES=1 CARD_REHASH_RUNS=1 CARD_BUFFERS_MIN_MB=1 2 445 344 ms 164 ms 49 225
UNWATCHED_FRAMES=8 2 407 353 ms 189 ms 43 185

So: CARD_BUFFERS_MIN_MB=1 moved more work to the card and raised both copies and hash passes; JOIN_COPIES did not merge anything (0 continue the one before stayed 0 in both runs); UNWATCHED_FRAMES=8 changed nothing measurable.

The line that never moves is waited ... for fetches of card copies' pieces at 187-189 ms of a ~400 ms frame, with 48-55 ms also spent waiting for the card with nothing to land. That is about 60% of the frame, on a card that is 60-90% busy with our own work.

Questions I could not answer from the comments in the source:

  1. Which knob (if any) is meant to shorten that fetch? VICTORY_COPY_MODE, VICTORY_DIRECT_WRITES, VICTORY_INPLACE/VICTORY_INPLACE_MB, VICTORY_READ_BACK all look related but none of them says in its own words that it is for this.
  2. Is the fetch proportional to the number of snapshot ranges (26-49 copies/frame, 408 ranges, 396 MB in copies of 1 MiB or more) or to their total bytes? If the latter, is VICTORY_KEEP_SNAPSHOTS_MB / VICTORY_KEEP_SNAPSHOTS the intended lever?
  3. On this title, is VICTORY_WRITE_SKIP=0 (declare every range) ever faster than the default on NVIDIA? The default already skips, so I assume not, but it is worth a line.

Separate, and probably the bigger loss on 1080p-class hardware: the present is 2-3 fps even though the yard draws about 5000 draws/frame and GPU is 60-90%. If the copy-back is a fixed ~350 ms it will never be playable here, so knowing whether that is expected (a known cost of the shadow model) or a bug would settle a lot.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7155233291 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/55#issuecomment-7155233291). Originally posted by [bailu12300](https://github.com/bailu12300) on 2026-11-25T06:51:35Z. --- Tried the three knobs this issue names, one group at a time, same save and cache, same yard. Result: none of them helps, two make it clearly worse. | setting | frames | ms/frame | relay landing | wait for fetches of card copies' pieces | copies/frame | hash passes | |---|---|---|---|---|---|---| | baseline (`RELAY=2 LATE_WAIT=3 WIDE_BACK=1`) | 2 | 406-458 | **319-353 ms** | **187-189 ms** | 43 | 185 | | `JOIN_COPIES=1 CARD_REHASH_RUNS=1 CARD_BUFFERS_MIN_MB=1` | 2 | 445 | 344 ms | 164 ms | 49 | 225 | | `UNWATCHED_FRAMES=8` | 2 | 407 | 353 ms | 189 ms | 43 | 185 | So: CARD_BUFFERS_MIN_MB=1 moved more work to the card and raised both copies and hash passes; JOIN_COPIES did not merge anything (`0 continue the one before` stayed 0 in both runs); UNWATCHED_FRAMES=8 changed nothing measurable. The line that never moves is `waited ... for fetches of card copies' pieces` at 187-189 ms of a ~400 ms frame, with `48-55 ms` also spent waiting for the card with nothing to land. That is about 60% of the frame, on a card that is 60-90% busy with our own work. Questions I could not answer from the comments in the source: 1. Which knob (if any) is meant to shorten that fetch? `VICTORY_COPY_MODE`, `VICTORY_DIRECT_WRITES`, `VICTORY_INPLACE`/`VICTORY_INPLACE_MB`, `VICTORY_READ_BACK` all look related but none of them says in its own words that it is for this. 2. Is the fetch proportional to the number of snapshot ranges (`26-49 copies/frame`, `408 ranges`, `396 MB in copies of 1 MiB or more`) or to their total bytes? If the latter, is `VICTORY_KEEP_SNAPSHOTS_MB` / `VICTORY_KEEP_SNAPSHOTS` the intended lever? 3. On this title, is `VICTORY_WRITE_SKIP=0` (declare every range) ever faster than the default on NVIDIA? The default already skips, so I assume not, but it is worth a line. Separate, and probably the bigger loss on 1080p-class hardware: the present is 2-3 fps even though the yard draws about 5000 draws/frame and GPU is 60-90%. If the copy-back is a fixed ~350 ms it will never be playable here, so knowing whether that is expected (a known cost of the shadow model) or a bug would settle a lot.
bailu12300 commented 2026-11-25 11:10:48 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by bailu12300 on 2026-11-25T10:14:55Z.


Built fxceless/victory-fork HEAD a26859f on Win10 19045 / RTX 5060 8GB, following the same Win10 Agility route we used on ztrx main (D3D12SDKVersion 614 + .\D3D12\ + the two /EXPORT link args). It compiles (~40 s) and it is the best picture we have had so far on this box: both opening key arts render fully (Luz "GET CASH NOW", Jason porch) at 30 fps with correct colour, and the first in-world tutorial frame ("使用 L 四处移动 / 使用 R 移动镜头") now appears. No crash in ~40 min.

But the world frame is still flat blue-grey. Frame log at that point (VICTORY_BVH_BUILDER=1, RELAY=2, LATE_WAIT=3, WIDE_BACK=1):

  • 1.4 fps, 716.6 ms/frame (187.6 preparing: copies 113.6 ms / 125.1 MB, textures 6.2 ms; 21.7 on the GPU; 126.4 copying back / 43.6 MB), 3955 draws/frame
  • dropped 1324 without a host pipeline (1263 being made), 1377 indirect
  • heap buffers 1.0 passes 266.7 ms
  • textures picked by index: 14912 uploaded (4238 MB), 31828 waiting, 10601 passed over unmapped
  • buffer views left null 107
  • shadow: "buffer views off their copy's elements (they were refused and read zeros; VICTORY_VIEW_OWN_COPY=0 refuses them...)" repeated every frame

So the grey walls look like: pipeline backlog (1324 draws with no host pipeline this frame) + 31828 texture slots not yet uploaded + 107 null buffer views + shadow reading zeros for off-element views. The GPU is idle-ish (21.7 ms of 716), the frame is CPU/copy bound: 266.7 ms heap passes + 126.4 ms copy-back + 113.6 ms copies.

Two questions:

  1. Is VICTORY_VIEW_OWN_COPY=1 the intended switch for the off-element views, or does it trade memory for correctness in a way you would not ship?
  2. On a 32-lane-wave host, is the 1324/1263 pipeline backlog expected to drain, or does the translation queue itself need the wave64 work that landed in #49?

We also carry the #49 (v_permlane16/v_permlanex16) and #36 (32-lane LDS / integer-target blend) changes locally on ztrx; the fork tree already has both, so we are keeping the fork as the main tree and only porting the Win10 Agility shim.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7159434184 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/55#issuecomment-7159434184). Originally posted by [bailu12300](https://github.com/bailu12300) on 2026-11-25T10:14:55Z. --- Built fxceless/victory-fork HEAD a26859f on Win10 19045 / RTX 5060 8GB, following the same Win10 Agility route we used on ztrx main (D3D12SDKVersion 614 + `.\D3D12\` + the two /EXPORT link args). It compiles (~40 s) and it is the best picture we have had so far on this box: both opening key arts render fully (Luz "GET CASH NOW", Jason porch) at 30 fps with correct colour, and the first in-world tutorial frame ("使用 L 四处移动 / 使用 R 移动镜头") now appears. No crash in ~40 min. But the world frame is still flat blue-grey. Frame log at that point (VICTORY_BVH_BUILDER=1, RELAY=2, LATE_WAIT=3, WIDE_BACK=1): - 1.4 fps, 716.6 ms/frame (187.6 preparing: copies 113.6 ms / 125.1 MB, textures 6.2 ms; 21.7 on the GPU; 126.4 copying back / 43.6 MB), 3955 draws/frame - dropped 1324 without a host pipeline (1263 being made), 1377 indirect - heap buffers 1.0 passes 266.7 ms - textures picked by index: 14912 uploaded (4238 MB), 31828 waiting, 10601 passed over unmapped - buffer views left null 107 - shadow: "buffer views off their copy's elements (they were refused and read zeros; VICTORY_VIEW_OWN_COPY=0 refuses them...)" repeated every frame So the grey walls look like: pipeline backlog (1324 draws with no host pipeline this frame) + 31828 texture slots not yet uploaded + 107 null buffer views + shadow reading zeros for off-element views. The GPU is idle-ish (21.7 ms of 716), the frame is CPU/copy bound: 266.7 ms heap passes + 126.4 ms copy-back + 113.6 ms copies. Two questions: 1. Is VICTORY_VIEW_OWN_COPY=1 the intended switch for the off-element views, or does it trade memory for correctness in a way you would not ship? 2. On a 32-lane-wave host, is the 1324/1263 pipeline backlog expected to drain, or does the translation queue itself need the wave64 work that landed in #49? We also carry the #49 (v_permlane16/v_permlanex16) and #36 (32-lane LDS / integer-target blend) changes locally on ztrx; the fork tree already has both, so we are keeping the fork as the main tree and only porting the Win10 Agility shim.
bailu12300 commented 2026-11-25 11:10:49 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by bailu12300 on 2026-11-25T10:48:34Z.


Found the reason the world is black on a cold cache, and it is a one-line design problem rather than a shader gap.

crates/victory-gpu/src/pipeline.rs::builder_runs(): the first time it is asked, it counts the builder's programs that have no host pipeline yet; if any are missing it sets b.off = true and returns false. b.off is sticky for the life of the process, so on a cold compile (no shader cache) the answer is always "not ready" and the ray-tracing structure builder never runs again - the world stays black for the whole session. With a warm cache the same build lights up, which is why this looked like a cache-dependent flake.

I changed it to return false without setting off, logging the wait once via Once, so the builder starts as soon as the last program compiles. Same tree (main 90b529f + #49 + #36 + the Win10 Agility shim), cold cache, RTX 5060 8GB:

  • before: 3797 draws, world fully black, 1.5 fps, WARN ... builder stays off
  • after: 6939 draws, the courtyard renders with sun, volumetrics, hair rim light and silhouettes, 3 fps, the ray-tracing structure builder runs never needed a restart

So on a cold cache the fix is b.off must not be set by the "missing pipelines" path. Worth landing upstream - anyone without a warm cache sees a black world otherwise.

Also still seen here: textures picked by index: the card has no room for more; they wait at 8 GB, so texture residency is the next ceiling after this.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7160201697 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/55#issuecomment-7160201697). Originally posted by [bailu12300](https://github.com/bailu12300) on 2026-11-25T10:48:34Z. --- Found the reason the world is black on a cold cache, and it is a one-line design problem rather than a shader gap. `crates/victory-gpu/src/pipeline.rs::builder_runs()`: the first time it is asked, it counts the builder's programs that have no host pipeline yet; if any are missing it sets `b.off = true` and returns false. `b.off` is sticky for the life of the process, so on a cold compile (no shader cache) the answer is always "not ready" and the ray-tracing structure builder never runs again - the world stays black for the whole session. With a warm cache the same build lights up, which is why this looked like a cache-dependent flake. I changed it to return false without setting `off`, logging the wait once via `Once`, so the builder starts as soon as the last program compiles. Same tree (main 90b529f + #49 + #36 + the Win10 Agility shim), cold cache, RTX 5060 8GB: - before: 3797 draws, world fully black, 1.5 fps, `WARN ... builder stays off` - after: 6939 draws, the courtyard renders with sun, volumetrics, hair rim light and silhouettes, 3 fps, `the ray-tracing structure builder runs` never needed a restart So on a cold cache the fix is `b.off` must not be set by the "missing pipelines" path. Worth landing upstream - anyone without a warm cache sees a black world otherwise. Also still seen here: `textures picked by index: the card has no room for more; they wait` at 8 GB, so texture residency is the next ceiling after this.
bailu12300 commented 2026-11-25 12:07:13 +00:00 (Migrated from github.com)
Author

Imported from Zettrox/ztrx. Originally posted by bailu12300 on 2026-11-25T11:53:20Z.


Two more data points from the same box (Win10 19045, RTX 5060 8GB, i5-14490F, 32 GB), ztrx main 90b529f + #36/#47/#48/#49/#51/#52/#54 + the builder fix from my earlier comment, 1440p, same save and cache.

1. The recipe from #37 does not hold here. Exact settings VICTORY_LATE_WAIT=1 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_TEXTURE_BUDGET_MB=5600 gave 1.4–1.7 fps / 574–693 ms per frame (copies 110–123 ms 156–158 MB, GPU 207–241 ms, copy-back 109 ms 73 MB, heap passes 270–318 ms), against 2.0–2.6 fps / 387–512 ms for the configuration that works here (RELAY=2 LATE_WAIT=3 WIDE_BACK=1 BVH_BUILDER=1). VICTORY_LATE_WAIT=1 on its own looks like the loss: at level 3 the copies and the heap passes are roughly halved.

2. VICTORY_PIPELINE_WAIT_MS=2000 (#73) is strongly negative on 8 GB here: 0.4–0.7 fps / 1398–2541 ms, dropped 1224–1742 with 1721–1728 being made and heap passes 308.8 → 609.8 ms. On a 4 GB card it apparently clears the "being made" drops; on this box it just makes every frame wait the full budget while the queue still cannot drain. Suggest the issue notes the VRAM dependence, since the knob reads like a universal win.

3. Input: the stand-in pad had no mouse at all. crates/victory-hle/src/modules/gameinput.rs only ever built the fallback pad from keys(), and Host::keys() deliberately starts at 0x08 ("no mouse buttons"), so a keyboard-and-mouse player could not look around or fire; FALLBACK_BUTTONS (14 entries, Q/E shoulders, F/H stick clicks, Z/C triggers) already covers the pad buttons. I added a small Mouse { buttons, dx, dy } to Source and, in the fallback pad: mouse 1 → right trigger, mouse 2 → left trigger, and the cursor delta added to the right stick. The title does not capture the cursor, so look() pins it to the middle of the foreground window (GetWindowRect centre, SetCursorPos) on every 8 ms poll and takes the offset as the delta, scaled by LOOK_SCALE / LOOK_PIN (12 px per full deflection). Keyboard I/J/K/L still adds on top, so nothing that worked before regresses.

Two questions: (a) is pinning the cursor the approach you want, or would you rather accumulate raw input in the window procedure / WM_INPUT and keep the pointer free? (b) FALLBACK_BUTTONS is a const, so there is no rebinding — is a VICTORY_BIND_<button>=<vk> environment table acceptable upstream, or do you want it in a config file?

Not yet verified in gameplay: both runs I could drive ended in the opening cutscene (2 fps, 5414 and 7554 draws, correct picture: porch sun, volumetric light, hair rim light, burned-in Chinese subtitles), and a cinematic camera cannot show whether the right stick is being read. The build is 7da6144 on top of fffff92 locally.

<!-- greyfinch-sync:Zettrox/ztrx:comment:7161638187 --> Imported from [Zettrox/ztrx](https://github.com/Zettrox/ztrx/issues/55#issuecomment-7161638187). Originally posted by [bailu12300](https://github.com/bailu12300) on 2026-11-25T11:53:20Z. --- Two more data points from the same box (Win10 19045, RTX 5060 8GB, i5-14490F, 32 GB), ztrx main `90b529f` + #36/#47/#48/#49/#51/#52/#54 + the builder fix from my earlier comment, 1440p, same save and cache. **1. The recipe from #37 does not hold here.** Exact settings `VICTORY_LATE_WAIT=1 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_TEXTURE_BUDGET_MB=5600` gave 1.4–1.7 fps / 574–693 ms per frame (copies 110–123 ms 156–158 MB, GPU 207–241 ms, copy-back 109 ms 73 MB, heap passes 270–318 ms), against 2.0–2.6 fps / 387–512 ms for the configuration that works here (`RELAY=2 LATE_WAIT=3 WIDE_BACK=1 BVH_BUILDER=1`). `VICTORY_LATE_WAIT=1` on its own looks like the loss: at level 3 the copies and the heap passes are roughly halved. **2. `VICTORY_PIPELINE_WAIT_MS=2000` (#73) is strongly negative on 8 GB here**: 0.4–0.7 fps / 1398–2541 ms, dropped 1224–1742 with 1721–1728 being made and heap passes 308.8 → 609.8 ms. On a 4 GB card it apparently clears the "being made" drops; on this box it just makes every frame wait the full budget while the queue still cannot drain. Suggest the issue notes the VRAM dependence, since the knob reads like a universal win. **3. Input: the stand-in pad had no mouse at all.** `crates/victory-hle/src/modules/gameinput.rs` only ever built the fallback pad from `keys()`, and `Host::keys()` deliberately starts at `0x08` ("no mouse buttons"), so a keyboard-and-mouse player could not look around or fire; `FALLBACK_BUTTONS` (14 entries, Q/E shoulders, F/H stick clicks, Z/C triggers) already covers the pad buttons. I added a small `Mouse { buttons, dx, dy }` to `Source` and, in the fallback pad: mouse 1 → right trigger, mouse 2 → left trigger, and the cursor delta added to the right stick. The title does not capture the cursor, so `look()` pins it to the middle of the foreground window (`GetWindowRect` centre, `SetCursorPos`) on every 8 ms poll and takes the offset as the delta, scaled by `LOOK_SCALE / LOOK_PIN` (12 px per full deflection). Keyboard I/J/K/L still adds on top, so nothing that worked before regresses. Two questions: (a) is pinning the cursor the approach you want, or would you rather accumulate raw input in the window procedure / `WM_INPUT` and keep the pointer free? (b) `FALLBACK_BUTTONS` is a `const`, so there is no rebinding — is a `VICTORY_BIND_<button>=<vk>` environment table acceptable upstream, or do you want it in a config file? Not yet verified in gameplay: both runs I could drive ended in the opening cutscene (2 fps, 5414 and 7554 draws, correct picture: porch sun, volumetric light, hair rim light, burned-in Chinese subtitles), and a cinematic camera cannot show whether the right stick is being read. The build is `7da6144` on top of `fffff92` locally.
Sign in to join this conversation.
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
Zettrox/ztrx#55
No description provided.