Linux with plain Wine 11.23 on an RTX 4090: measured bring-up at 87feabed, and the title holds at 21 draws/frame #4

Open
opened 2026-12-03 04:02:37 +00:00 by github-bot · 8 comments
Owner

@⁠Headache3318 on GitHub · 2026-12-03 04:00 UTC · original

A Linux / plain-Wine data point for docs/linux-proton.md, from one machine, with the numbers you ask for in the issue form.

Environment. Arch Linux, kernel 7.3.6-arch1-2, 8 cores, 60 GB RAM, three RTX 4090 (the title ran on the card nothing else was holding; the other two carry a VRAM-resident model), NVIDIA driver 620.73.04. wine-11.23 — plain wine, no Proton and no umu-run.

Build. clone at 87feabed8efd2c7879181cf007f2d049db961648, then
cargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc
(cargo-xwin 0.24.2, rustc 1.98.1 from rust-toolchain.toml, clang 23.1.5, ld.lld 23.1.5): Finished release profile [optimized + debuginfo] ... in 39.18s. Result: longroad.exe 12,648,448 bytes, sha256 6edba7a2d529b0433085d1fee2358dda6e55fa3d37d1988f96b1145fc19e797e. The D3D12SDKVersion / D3D12SDKPath exports and /DELAYLOAD:d3d12.dll in apps/longroad/build.rs need the MSVC linker, so cargo-xwin is the cross path that works on Linux — as your own doc says; a windows-gnu cross-build of the same source would not carry those exports.

Loader stack (fresh prefix, no Proton): our own build of vkd3d-proton master 55efc5324aec1c94387540d77df352a4f0435be3 as native d3d12.dll (md5 2255367890af2d8823e72637a4ee5fe3) with d3d12core.dll (md5 c2a0eff8bca20753d9fd0fd9ff362ff6, the same core file also in D3D12/D3D12Core.dll), and DXVK's dxgi.dll from GE-Proton 11-14 (md5 2383c4265af1ee4f267663c99f3acb6a).

WINEDLLOVERRIDES='d3d12=n,b;d3d12core=n,b;dxgi=n,b'
LONGROAD_GAME_DIR='Z:...\my own dump...' LONGROAD_HOME=... LONGROAD_CACHE_DIR=... LONGROAD_DATA_DIR=...
LONGROAD_LOG_FILE=... LONGROAD_PIPELINE_BOOK=1
wine ./longroad.exe play 'Z:...\game_scarlett_master.exe' --dlss off --no-framegen-ready --res 1440 --fps 1000

(Z: is Wine's drive-c spelling of ordinary folders on this machine; longroad.toml was not used, the environment paths were.)

What worked, with counts.

  • The boot lines came through: GameInputCreate, input device callback kind=0x40000 enumeration=2 devices=1, PlayStation pad connected pad="DualSense" (a pad really attached to this PC), HDR mode: disabled (SDR presentation), dstorage opening the title's shader archive through the G: mount, the audio decoder and DSP connected, swap chain ... tearing=true, and frame presented frame=1 1.9 s after the process started.
  • Window title for 46 minutes: Americas | Longroad (RT off) 683-925 fps 1.1-1.5 ms/frame 21 draws/frame. The frame presented markers longroad writes on power-of-two frames date the real present rate: frame 131072 at 03:03:53, 262144 at 03:06:25, 524288 at 03:11:35, 1048576 at 03:22:35 → 862-1080 presents a second between those markers, so those fps figures are the host's present loop, not the title's.
  • landed per frame: 0 pieces, 0 with a new byte in every report line for the whole 46 min — the title never fetched or landed title memory the way it does once the world streams, so the run stayed outside the world from end to end.
  • 26 shader translated lines, 513 host pipeline lines in 46 min; title pipelines known from earlier runs pipelines=0 shaders=0; no host pipeline library yet; starting an empty one then host pipeline library saved bytes=248 early=1 made=1 loaded=0. So on this path a library is made and written even on a first run, and the wording differs from the line quoted in docs/linux-proton.md ("pipelines are not kept"). What we could not measure is the second boot: loaded=0 should become loaded>0 there, and we had to stop this run before a second start.
  • a pipeline creation method that is not implemented: the title goes without this pipeline: 29 lines, two slots (0x218, 0x1c8), calls= from 1 up to 32, all before the frame-1 present line. Is that expected on a first run, or is it something the title asked for and did not get?
  • No crash, no shader-compiler fault: 0 occurrences of the illegal instruction inside NVIDIA's shader compiler that docs/linux-proton.md reports with proton-cachyos (err:vulkan:vkCreateComputePipelines Exception 0xc000001d) — 0 in 46 min here, on an RTX 4090 with driver 620.73.04, no Proton, and the second-hand evidence there is a proton-cachyos + vkd3d-proton 3.1.0 stack. Nothing wrote a crash report; we stopped the run with SIGTERM at 46 min 27 s, its last line being 683.4 fps, 1.5 ms/frame.
  • What it cost while it sat there: process 3.5-3.7 GB resident (VIRT 94.7 GB), 2,823 MB of card memory on its own card, about 40% of 8 cores at its peak, the card about 15-19% busy by this count, the submitting thread stood waiting for the card 0.0 ms — so longroad's own bookkeeping says the layer was not the bottleneck.

What did not move it, tested one thing at a time.

  1. --fps 1000 was my own deviation from the README's 30. The next launch was identical in every other way with --fps 30 ("the title's own rate"): the window title went to 30 fps 33.3 ms/frame, the present markers spaced to the cap — and the state stayed 21 draws/frame, 0 pieces landed. So the frame cap is not what holds it.
  2. Keyboard: xdotool windowactivate --sync <window> then plain XTEST keys — Return, space, Down, Right — 8 presses in the uncapped run and 6 in the capped one, 8-10 s apart: no change in draws per frame, no change in the title bar, nothing new in the log.
  3. A diagnostics build for ground truth: cargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc --features diagnostics (17,370,112 bytes, Finished ... in 33.51s), run 4 min at --fps 30 with LONGROAD_CAPTURE=<folder> and LONGROAD_CAPTURE_WORLD=1 — 0 PNGs written — and LONGROAD_KEYS_FILE was set with six lines (Enter, Down, Enter, Right, Enter, Start 2) appended while the title ran, but the line keys are read from a file as it grows (LONGROAD_KEYS_FILE) never appeared in the layer log. strings on the two builds: LONGROAD_CAPTURE appears once in the diagnostics exe and not once in the release exe, so the switch is compiled into the diagnostics build; LONGROAD_KEYS_FILE appears twice in both. So the capture and scripted-keys paths did not run in this run, and we have no picture of what screen the title is sitting on — which is why everything below is measured blind.

The question we cannot answer from this machine alone: what does the title need to get past 21 draws/frame under Linux? A pad really attached before launch is registered at boot (longroad_hle::modules::gameinput logged the DualSense in every run). Does the front-end want an Xbox-layout pad in particular? We can create an x360-layout device through uinput and have it present before the title starts, and report what changes. Or is it a first-run --preload you expect before the title advances, or an --set LONGROAD_... we should be using, or the XUser flow?

Also from this machine, unrelated to Wine: cargo test -p longroad-pe turns four tests red on a Linux host build at this head, because own_image() reads the test binary, which is ELF there — see PR #3, which gates those four and carries the before/after counts, including the Windows test binary run here under Wine (36 passed; 0 failed).

AI-assisted (Hermes Agent, Nous Hermes). Every number above came from a real run on this box; happy to re-run any of it, or to bring an x360-layout pad up before launch and report what it does to the front-end.

**@⁠Headache3318** on GitHub · 2026-12-03 04:00 UTC · [original](https://github.com/Lesloo/longroad/issues/4) A Linux / plain-Wine data point for `docs/linux-proton.md`, from one machine, with the numbers you ask for in the issue form. **Environment.** Arch Linux, kernel 7.3.6-arch1-2, 8 cores, 60 GB RAM, three RTX 4090 (the title ran on the card nothing else was holding; the other two carry a VRAM-resident model), NVIDIA driver 620.73.04. `wine-11.23` — plain wine, **no Proton and no umu-run**. **Build.** clone at `87feabed8efd2c7879181cf007f2d049db961648`, then `cargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc` (cargo-xwin 0.24.2, `rustc 1.98.1` from `rust-toolchain.toml`, clang 23.1.5, `ld.lld` 23.1.5): `Finished release profile [optimized + debuginfo] ... in 39.18s`. Result: `longroad.exe` 12,648,448 bytes, `sha256 6edba7a2d529b0433085d1fee2358dda6e55fa3d37d1988f96b1145fc19e797e`. The `D3D12SDKVersion` / `D3D12SDKPath` exports and `/DELAYLOAD:d3d12.dll` in `apps/longroad/build.rs` need the MSVC linker, so `cargo-xwin` is the cross path that works on Linux — as your own doc says; a `windows-gnu` cross-build of the same source would not carry those exports. **Loader stack** (fresh prefix, no Proton): our own build of `vkd3d-proton` master `55efc5324aec1c94387540d77df352a4f0435be3` as native `d3d12.dll` (`md5 2255367890af2d8823e72637a4ee5fe3`) with `d3d12core.dll` (`md5 c2a0eff8bca20753d9fd0fd9ff362ff6`, the same core file also in `D3D12/D3D12Core.dll`), and DXVK's `dxgi.dll` from GE-Proton 11-14 (`md5 2383c4265af1ee4f267663c99f3acb6a`). ```text WINEDLLOVERRIDES='d3d12=n,b;d3d12core=n,b;dxgi=n,b' LONGROAD_GAME_DIR='Z:...\my own dump...' LONGROAD_HOME=... LONGROAD_CACHE_DIR=... LONGROAD_DATA_DIR=... LONGROAD_LOG_FILE=... LONGROAD_PIPELINE_BOOK=1 wine ./longroad.exe play 'Z:...\game_scarlett_master.exe' --dlss off --no-framegen-ready --res 1440 --fps 1000 ``` (`Z:` is Wine's drive-c spelling of ordinary folders on this machine; `longroad.toml` was not used, the environment paths were.) **What worked, with counts.** - The boot lines came through: `GameInputCreate`, `input device callback kind=0x40000 enumeration=2 devices=1`, `PlayStation pad connected pad="DualSense"` (a pad really attached to this PC), `HDR mode: disabled (SDR presentation)`, `dstorage` opening the title's shader archive through the `G:` mount, the audio decoder and DSP connected, `swap chain ... tearing=true`, and `frame presented frame=1` 1.9 s after the process started. - Window title for 46 minutes: `Americas | Longroad (RT off) 683-925 fps 1.1-1.5 ms/frame 21 draws/frame`. The `frame presented` markers longroad writes on power-of-two frames date the real present rate: frame 131072 at 03:03:53, 262144 at 03:06:25, 524288 at 03:11:35, 1048576 at 03:22:35 → 862-1080 presents a second between those markers, so those `fps` figures are the host's present loop, not the title's. - `landed per frame: 0 pieces, 0 with a new byte` in every report line for the whole 46 min — the title never fetched or landed title memory the way it does once the world streams, so the run stayed outside the world from end to end. - 26 `shader translated` lines, 513 `host pipeline` lines in 46 min; `title pipelines known from earlier runs pipelines=0 shaders=0`; `no host pipeline library yet; starting an empty one` then `host pipeline library saved bytes=248 early=1 made=1 loaded=0`. So on this path a library is made and written even on a first run, and the wording differs from the line quoted in `docs/linux-proton.md` ("pipelines are not kept"). What we could not measure is the second boot: `loaded=0` should become `loaded>0` there, and we had to stop this run before a second start. - `a pipeline creation method that is not implemented: the title goes without this pipeline`: 29 lines, two slots (`0x218`, `0x1c8`), `calls=` from 1 up to 32, all before the frame-1 present line. Is that expected on a first run, or is it something the title asked for and did not get? - **No crash, no shader-compiler fault**: 0 occurrences of the illegal instruction inside NVIDIA's shader compiler that `docs/linux-proton.md` reports with `proton-cachyos` (`err:vulkan:vkCreateComputePipelines Exception 0xc000001d`) — 0 in 46 min here, on an RTX 4090 with driver 620.73.04, no Proton, and the second-hand evidence there is a `proton-cachyos` + vkd3d-proton 3.1.0 stack. Nothing wrote a crash report; we stopped the run with SIGTERM at 46 min 27 s, its last line being `683.4 fps, 1.5 ms/frame`. - What it cost while it sat there: process 3.5-3.7 GB resident (`VIRT 94.7 GB`), 2,823 MB of card memory on its own card, about 40% of 8 cores at its peak, `the card about 15-19% busy by this count`, the submitting thread `stood waiting for the card 0.0 ms` — so longroad's own bookkeeping says the layer was not the bottleneck. **What did not move it, tested one thing at a time.** 1. `--fps 1000` was my own deviation from the README's 30. The next launch was identical in every other way with `--fps 30` ("the title's own rate"): the window title went to `30 fps 33.3 ms/frame`, the present markers spaced to the cap — and the state stayed `21 draws/frame`, `0 pieces landed`. So the frame cap is not what holds it. 2. Keyboard: `xdotool windowactivate --sync <window>` then plain XTEST keys — `Return`, `space`, `Down`, `Right` — 8 presses in the uncapped run and 6 in the capped one, 8-10 s apart: no change in draws per frame, no change in the title bar, nothing new in the log. 3. A diagnostics build for ground truth: `cargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc --features diagnostics` (17,370,112 bytes, `Finished ... in 33.51s`), run 4 min at `--fps 30` with `LONGROAD_CAPTURE=<folder>` and `LONGROAD_CAPTURE_WORLD=1` — **0 PNGs written** — and `LONGROAD_KEYS_FILE` was set with six lines (`Enter`, `Down`, `Enter`, `Right`, `Enter`, `Start 2`) appended while the title ran, but the line `keys are read from a file as it grows (LONGROAD_KEYS_FILE)` never appeared in the layer log. `strings` on the two builds: `LONGROAD_CAPTURE` appears once in the diagnostics exe and not once in the release exe, so the switch is compiled into the diagnostics build; `LONGROAD_KEYS_FILE` appears twice in both. So the capture and scripted-keys paths did not run in this run, and we have no picture of what screen the title is sitting on — which is why everything below is measured blind. **The question we cannot answer from this machine alone:** what does the title need to get past `21 draws/frame` under Linux? A pad really attached before launch is registered at boot (`longroad_hle::modules::gameinput` logged the DualSense in every run). Does the front-end want an Xbox-layout pad in particular? We can create an x360-layout device through `uinput` and have it present before the title starts, and report what changes. Or is it a first-run `--preload` you expect before the title advances, or an `--set LONGROAD_...` we should be using, or the `XUser` flow? Also from this machine, unrelated to Wine: `cargo test -p longroad-pe` turns four tests red on a Linux host build at this head, because `own_image()` reads the test binary, which is ELF there — see PR #3, which gates those four and carries the before/after counts, including the Windows test binary run here under Wine (`36 passed; 0 failed`). AI-assisted (Hermes Agent, Nous Hermes). Every number above came from a real run on this box; happy to re-run any of it, or to bring an x360-layout pad up before launch and report what it does to the front-end.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 04:02:37 +00:00
Author
Owner

@⁠Lesloo on GitHub · 2026-12-03 04:36 UTC · original

Thanks, that's a really useful data point, and thanks for all the counts.

A few things that may narrow it down:

  1. The 29 a pipeline creation method that is not implemented lines are expected. A Windows run here (a branch just ahead of 87feabed) logs the same 29, on the same two slots (0x1c8 16 times, 0x218 13 times), and goes on into the world. They are not what holds it.

  2. LONGROAD_KEYS_FILE and LONGROAD_CAPTURE most likely never reached that process. Input is polled in the background every 8 ms from the moment GameInput starts (where your log shows the DualSense), and with LONGROAD_KEYS_FILE set, the first poll logs keys are read from a file as it grows (LONGROAD_KEYS_FILE). With capture on, every frame it tries to save logs either frame saved or frame not saved with the error (the folder has to exist already). Neither showing up points at how the variables were passed for that diagnostics run, rather than at the title.

  3. For the start screens, LONGROAD_KEYS is the simpler route:
    LONGROAD_KEYS=15:Enter,19:Enter,23:Enter,27:Enter,31:Enter,35:Enter,39:Enter,43:Enter,47:Enter,51:Enter
    presses Enter at those seconds after input starts, with or without window focus, and also presses A on the first pad when a real one is connected. That is what our Windows test runs use to get from the start screens into the world. Keys from the real keyboard (XTEST included) only count while the layer sees the title's window as focused, which may not hold under Wine.

  4. On Windows, about a second after frame presented frame=1, the log shows XUserAddAsync: the offline local user options=1, and landed per frame: 0 pieces is normal until the world starts loading. If your log has no XUserAddAsync line, the title is stopping before its start screens, and the first couple of thousand lines of the layer log would be the quickest way to see where.

Thanks for #3 as well.

**@⁠Lesloo** on GitHub · 2026-12-03 04:36 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7367833019) Thanks, that's a really useful data point, and thanks for all the counts. A few things that may narrow it down: 1. The 29 `a pipeline creation method that is not implemented` lines are expected. A Windows run here (a branch just ahead of `87feabed`) logs the same 29, on the same two slots (`0x1c8` 16 times, `0x218` 13 times), and goes on into the world. They are not what holds it. 2. `LONGROAD_KEYS_FILE` and `LONGROAD_CAPTURE` most likely never reached that process. Input is polled in the background every 8 ms from the moment GameInput starts (where your log shows the DualSense), and with `LONGROAD_KEYS_FILE` set, the first poll logs `keys are read from a file as it grows (LONGROAD_KEYS_FILE)`. With capture on, every frame it tries to save logs either `frame saved` or `frame not saved` with the error (the folder has to exist already). Neither showing up points at how the variables were passed for that diagnostics run, rather than at the title. 3. For the start screens, `LONGROAD_KEYS` is the simpler route: `LONGROAD_KEYS=15:Enter,19:Enter,23:Enter,27:Enter,31:Enter,35:Enter,39:Enter,43:Enter,47:Enter,51:Enter` presses Enter at those seconds after input starts, with or without window focus, and also presses A on the first pad when a real one is connected. That is what our Windows test runs use to get from the start screens into the world. Keys from the real keyboard (XTEST included) only count while the layer sees the title's window as focused, which may not hold under Wine. 4. On Windows, about a second after `frame presented frame=1`, the log shows `XUserAddAsync: the offline local user options=1`, and `landed per frame: 0 pieces` is normal until the world starts loading. If your log has no `XUserAddAsync` line, the title is stopping before its start screens, and the first couple of thousand lines of the layer log would be the quickest way to see where. Thanks for #3 as well.
Author
Owner

@⁠Headache3318 on GitHub · 2026-12-03 08:57 UTC · original

Follow-up on our report: your four points moved us forward, and the front end is still the wall. Fresh data, one variable per run.

Since the first post we pulled 8 commits and rebuilt night-1203 (ceb62d06): cargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc → 12,796,416 B, sha256 502f2ece2113ef8d5dbe11374433984638c9e64f6ca46a7b6a7aa424865624d4. The two new scripts/ files arrived after our first checkout, so we re-read play-longroad.ps1 and mirrored its base $set verbatim (Linux has no PowerShell here, so the launcher exports the same env before wine): the result is run 5 below.

Run 4 — single variable, your LONGROAD_KEYS recipe, no other change (same exe/env as our first three runs, --fps 1000):
LONGROAD_KEYS=*** only, Z: paths. No XInput log line exists for either form, and no key-press marker appears in the console — the presses have no observable trace, and the window still reports 21 draws/frame (title-bar 607→894→919 fps at the uncapped --fps 1000), frame presented markers 18, landed per frame: 0 pieces on all 229 longroad_gpu::land lines, from (LONGROAD_PLACED_READS) 229 lines, XUserAddAsync logged.

Run 5 — night-1203 + the full maintainer env mirror (your $set exported, --fps 30):
proof the env reached the process — the knobs log their own values now:

INFO longroad_gpu::pool: texture park (LONGROAD_TEX_PARK=auto): card_mb=24564 most_gb=12 on=false ...
INFO longroad_gpu::pagewin: page windows (LONGROAD_PAGE_WINDOWS=1): 0 windows, whole 0 MB ...
INFO longroad_hle::modules::xuser: XUserAddAsync: the offline local user options=1   <- ~1 s after start, as in your run
WARN  ... a pipeline creation method that ...                                        29 total, 0x1c8 x16, 0x218 x13
INFO ... frame presented ...                                                         14 markers
INFO longroad_gpu::land: landed per frame: 0 pieces ...

The 29 refused pipeline-creation methods match your Windows log count for count (0x1c8×16 + 0x218×13), and XUserAddAsync fires on schedule now — which, per your point 4, means the title really is sitting at its start screens, not before them. on=false for the park is honest on this 24 GB card (card_mb=24564 most_gb=12); we are not >12.5 GB-gated out of the big-card set — it just is not on here, and 0 windows, whole 0 MB for pagewin is the night-1203 default with --fps 30 still holding 30 fps 33.3 ms/frame. Nothing in run 5 moved the state counters: 21 draws/frame constant, 0 pieces constant, the heaps lines scale with fps as expected, nothing else.

What we tried since, and what it shows

  • LONGROAD_KEYS=*** at boot (run 4 control): consumed, no effect.
  • XTEST keyboard Return/space/Down/Right sent to the focused window, 8 and 6 presses in the two runs: no counter, no draws change, no landed change — consistent with your note that keys only count while the layer sees the title's window focused, which may not hold here.
  • Diagnostics build (--features diagnostics at 87feabed, exe contains frame saved / frame not saved: not 8-bit colors strings): LONGROAD_CAPTURE + LONGROAD_CAPTURE_WORLD wrote 0 PNGs in 14+ min, and neither stream (LONGROAD_LOG_FILE title log, console) ever printed the frame saved/frame not saved or keys are read from a file lines, although strings confirms both exist in the binary. So we could not get screen-state ground truth this way; state counters are the only channel we have.
  • Pad experiment from the sibling fork: on ReVIctory v0.2.0 (same title, Wine, 4090) a uinput x360 pad created before launch moved 21 draws/frame → 39 draws/frame and let the 4K intro movie play through at full speed with audio — so the title does notice a pad at boot there. But pad A every ~2 s and focused XTEST Enter ×12, plus F1/F2/F3, never moved it past 39 either, on either fork. Two different codebases, same wall, same counter signature (XUserAddAsync → fixed low draw count → 0 pieces).

Our three questions, now with our data behind them

  1. Is there a log line in your Windows runs that proves the start screens were crossed (a draws jump? landed: >0? something else)? That marker is what we would watch for on Linux.
  2. Does your Windows run have a pad, or do LONGROAD_KEYS stand-in-pad presses carry it? On Wine the stand-in table is there in source, presses are accepted, and the title is unfazed.
  3. preload: your docs' play-once-warm rule — we cannot play once yet, so longroad preload would warm only the pipelines the front end emits. Worth running against --all style warming anyway, or pointless until point 1 is answered?

If the answer to 2 is 'a pad carries it', tell us what your pad is (XInput via Xbox 360 driver on Windows, or XUSER device 0?) and we will reproduce the exact device under Wine before the next run — on our box the pad-before-launch experiment is a two-minute change. AI-assisted (Hermes Agent).

**@⁠Headache3318** on GitHub · 2026-12-03 08:57 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7372970629) Follow-up on our report: your four points moved us forward, and the front end is still the wall. Fresh data, one variable per run. **Since the first post we pulled 8 commits** and rebuilt `night-1203` (`ceb62d06`): `cargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc` → 12,796,416 B, sha256 `502f2ece2113ef8d5dbe11374433984638c9e64f6ca46a7b6a7aa424865624d4`. The two new `scripts/` files arrived after our first checkout, so we re-read `play-longroad.ps1` and mirrored its base `$set` verbatim (Linux has no PowerShell here, so the launcher exports the same env before `wine`): the result is run 5 below. **Run 4 — single variable, your `LONGROAD_KEYS` recipe, no other change** (same exe/env as our first three runs, `--fps 1000`): `LONGROAD_KEYS=***` only, `Z:` paths. No `XInput` log line exists for either form, and no key-press marker appears in the console — the presses have no observable trace, and the window still reports `21 draws/frame` (title-bar `607→894→919 fps` at the uncapped `--fps 1000`), `frame presented` markers 18, `landed per frame: 0 pieces` on all 229 `longroad_gpu::land` lines, `from (LONGROAD_PLACED_READS)` 229 lines, `XUserAddAsync` logged. **Run 5 — night-1203 + the full maintainer env mirror** (your `$set` exported, `--fps 30`): proof the env reached the process — the knobs log their own values now: ``` INFO longroad_gpu::pool: texture park (LONGROAD_TEX_PARK=auto): card_mb=24564 most_gb=12 on=false ... INFO longroad_gpu::pagewin: page windows (LONGROAD_PAGE_WINDOWS=1): 0 windows, whole 0 MB ... INFO longroad_hle::modules::xuser: XUserAddAsync: the offline local user options=1 <- ~1 s after start, as in your run WARN ... a pipeline creation method that ... 29 total, 0x1c8 x16, 0x218 x13 INFO ... frame presented ... 14 markers INFO longroad_gpu::land: landed per frame: 0 pieces ... ``` The `29` refused pipeline-creation methods match your Windows log count for count (`0x1c8`×16 + `0x218`×13), and `XUserAddAsync` fires on schedule now — which, per your point 4, means the title really is sitting **at** its start screens, not before them. `on=false` for the park is honest on this 24 GB card (`card_mb=24564 most_gb=12`); we are not `>12.5 GB`-gated out of the big-card set — it just is not `on` here, and `0 windows, whole 0 MB` for pagewin is the night-1203 default with `--fps 30` still holding `30 fps 33.3 ms/frame`. Nothing in run 5 moved the state counters: `21 draws/frame` constant, `0 pieces` constant, `the heaps` lines scale with fps as expected, nothing else. **What we tried since, and what it shows** - `LONGROAD_KEYS=***` at boot (run 4 control): consumed, no effect. - XTEST keyboard `Return`/`space`/`Down`/`Right` sent to the focused window, 8 and 6 presses in the two runs: no counter, no `draws` change, no `landed` change — consistent with your note that keys only count while the layer sees the title's window focused, which may not hold here. - Diagnostics build (`--features diagnostics` at `87feabed`, exe contains `frame saved` / `frame not saved: not 8-bit colors` strings): `LONGROAD_CAPTURE` + `LONGROAD_CAPTURE_WORLD` wrote **0 PNGs** in 14+ min, and neither stream (`LONGROAD_LOG_FILE` title log, console) ever printed the `frame saved`/`frame not saved` or `keys are read from a file` lines, although `strings` confirms both exist in the binary. So we could not get screen-state ground truth this way; state counters are the only channel we have. - **Pad experiment from the sibling fork**: on ReVIctory v0.2.0 (same title, Wine, 4090) a uinput x360 pad created before launch moved `21 draws/frame` → `39 draws/frame` and let the 4K intro movie play through at full speed with audio — so the title does notice a pad at boot there. But `pad A` every ~2 s and focused XTEST `Enter` ×12, plus `F1`/`F2`/`F3`, never moved it past `39` either, on either fork. Two different codebases, same wall, same counter signature (`XUserAddAsync` → fixed low draw count → `0 pieces`). **Our three questions, now with our data behind them** 1. Is there a log line in your Windows runs that proves the start screens were crossed (a `draws` jump? `landed: >0`? something else)? That marker is what we would watch for on Linux. 2. Does your Windows run have a pad, or do `LONGROAD_KEYS` stand-in-pad presses carry it? On Wine the stand-in table is there in source, presses are accepted, and the title is unfazed. 3. `preload`: your docs' play-once-warm rule — we cannot play once yet, so `longroad preload` would warm only the pipelines the front end emits. Worth running against `--all` style warming anyway, or pointless until point 1 is answered? If the answer to 2 is 'a pad carries it', tell us what your pad is (XInput via Xbox 360 driver on Windows, or `XUSER` device 0?) and we will reproduce the exact device under Wine before the next run — on our box the pad-before-launch experiment is a two-minute change. AI-assisted (Hermes Agent).
Author
Owner

@⁠Lesloo on GitHub · 2026-12-03 09:30 UTC · original

Thanks for the careful runs. Answers to the three, from this morning's Windows runs (night-1203, RTX 5080, Series X profile, no pad connected):

1. Markers that the start screens were crossed

The host line every 5 s, <fps> fps, ... <n> draws/frame, is the easiest. On Windows it reads 3 to 18 draws/frame on the start screens and changes as the presses land (13 → 6 → 14 → 18 in one run). When the world loads it jumps to about 1,000 and then about 10,000. At the same moment:

  • FidelityFX: the title's first upscale dispatch (the first 3D frame) appears 47 to 48 s after GameInputCreate in all four runs, within a second of the 9th Enter;
  • landed per frame: goes above 0 pieces 4 to 5 s later;
  • token and signature: offline url=".../achievements/..." lines start.

We never see a steady 21 on Windows, so the screen you're stuck on may be one our runs never pass through. A plain desktop screenshot of the window (any Linux screenshot tool, nothing from longroad) would show what it is. While our capture gives you nothing, that's the quickest ground truth.

2. Pad

There's no pad in our test runs. The log shows only input device device=4 connected=true (the keyboard's stand-in pad) and device=5 (the keyboard). Then comes input device callback kind=0x40000 enumeration=2 devices=1: the title asked for gamepads and was given that one.

LONGROAD_KEYS presses Enter, which is A on that stand-in pad. It's a GameInput device of the layer's own, not XInput and not an XUser device. With the default LONGROAD_ONE_PAD, a real pad (XInput, or a PlayStation pad over HID) is merged into that same device, so the title always sees exactly one pad. It's worth checking that your log has those four lines (GameInputCreate and the three above).

Two things about LONGROAD_KEYS that may matter under Wine:

  • Its seconds count from the first input poll (GameInputCreate), not from process start, and nothing logs a press. If the screens come up slower under Wine, all ten presses (the last at 51 s) can land before the title listens. A longer list rules that out. This one presses Enter every 4 s for about 5 minutes: LONGROAD_KEYS=$(seq -s, -f '%g:Enter' 15 4 299)
  • The value in your post shows as ***, so we couldn't tell what the process got.

LONGROAD_KEYS_FILE gives you a trace. With it set, the first input poll logs keys are read from a file as it grows (LONGROAD_KEYS_FILE), in release builds too. The layer opens the path through Windows, so give it a Windows path, e.g. LONGROAD_KEYS_FILE='Z:\tmp\lr-keys.txt'. Then, after launch, run while sleep 4; do echo Enter >> /tmp/lr-keys.txt; done. If that line never shows, either the variable isn't reaching the process or GameInput never started (no GameInputCreate line).

As for the capture, the env may not be the only reason. The capture gives up without a log line in a couple of places (making its read-back buffer, mapping it), so under vkd3d-proton it could be failing silently on our side. The window screenshot sidesteps that.

3. Preload

Not worth it for this. Preload only builds shaders and pipelines ahead of time, so there's less stutter once you play. It doesn't change what the title waits for on its start screens. (docs/linux-proton.md also notes vkd3d-proton failing to open its cache write file during a preload under Proton.)

Suggested next run: your run-5 env with --fps 30, plus the longer LONGROAD_KEYS list or the keys file. Send a screenshot of the window on the screen it sits at, along with the GameInputCreate / input device lines.

**@⁠Lesloo** on GitHub · 2026-12-03 09:30 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7373759529) Thanks for the careful runs. Answers to the three, from this morning's Windows runs (night-1203, RTX 5080, Series X profile, no pad connected): **1. Markers that the start screens were crossed** The host line every 5 s, `<fps> fps, ... <n> draws/frame`, is the easiest. On Windows it reads 3 to 18 draws/frame on the start screens and changes as the presses land (13 → 6 → 14 → 18 in one run). When the world loads it jumps to about 1,000 and then about 10,000. At the same moment: - `FidelityFX: the title's first upscale dispatch` (the first 3D frame) appears 47 to 48 s after `GameInputCreate` in all four runs, within a second of the 9th Enter; - `landed per frame:` goes above `0 pieces` 4 to 5 s later; - `token and signature: offline url=".../achievements/..."` lines start. We never see a steady 21 on Windows, so the screen you're stuck on may be one our runs never pass through. A plain desktop screenshot of the window (any Linux screenshot tool, nothing from longroad) would show what it is. While our capture gives you nothing, that's the quickest ground truth. **2. Pad** There's no pad in our test runs. The log shows only `input device device=4 connected=true` (the keyboard's stand-in pad) and `device=5` (the keyboard). Then comes `input device callback kind=0x40000 enumeration=2 devices=1`: the title asked for gamepads and was given that one. `LONGROAD_KEYS` presses Enter, which is A on that stand-in pad. It's a GameInput device of the layer's own, not XInput and not an XUser device. With the default `LONGROAD_ONE_PAD`, a real pad (XInput, or a PlayStation pad over HID) is merged into that same device, so the title always sees exactly one pad. It's worth checking that your log has those four lines (`GameInputCreate` and the three above). Two things about `LONGROAD_KEYS` that may matter under Wine: - Its seconds count from the first input poll (`GameInputCreate`), not from process start, and nothing logs a press. If the screens come up slower under Wine, all ten presses (the last at 51 s) can land before the title listens. A longer list rules that out. This one presses Enter every 4 s for about 5 minutes: `LONGROAD_KEYS=$(seq -s, -f '%g:Enter' 15 4 299)` - The value in your post shows as `***`, so we couldn't tell what the process got. `LONGROAD_KEYS_FILE` gives you a trace. With it set, the first input poll logs `keys are read from a file as it grows (LONGROAD_KEYS_FILE)`, in release builds too. The layer opens the path through Windows, so give it a Windows path, e.g. `LONGROAD_KEYS_FILE='Z:\tmp\lr-keys.txt'`. Then, after launch, run `while sleep 4; do echo Enter >> /tmp/lr-keys.txt; done`. If that line never shows, either the variable isn't reaching the process or GameInput never started (no `GameInputCreate` line). As for the capture, the env may not be the only reason. The capture gives up without a log line in a couple of places (making its read-back buffer, mapping it), so under vkd3d-proton it could be failing silently on our side. The window screenshot sidesteps that. **3. Preload** Not worth it for this. Preload only builds shaders and pipelines ahead of time, so there's less stutter once you play. It doesn't change what the title waits for on its start screens. (docs/linux-proton.md also notes vkd3d-proton failing to open its cache write file during a preload under Proton.) **Suggested next run:** your run-5 env with `--fps 30`, plus the longer `LONGROAD_KEYS` list or the keys file. Send a screenshot of the window on the screen it sits at, along with the `GameInputCreate` / `input device` lines.
Author
Owner

@⁠Headache3318 on GitHub · 2026-12-03 13:13 UTC · original

Your four points, answered from two more runs on this machine — same exe as our run 5 (night-1203, sha256 502f2ece…), one variable per run; these are runs 6 and 7 here.

The GameInput check you asked for (point 2): present and identical to yours — run 7, verbatim:

12:24:29.486900Z  INFO longroad_hle::modules::gameinput: GameInputCreate
12:24:29.487583Z  INFO ... input device device=4 connected=true
12:24:29.487610Z  INFO ... input device device=5 connected=true
12:24:29.487709Z  INFO ... input device callback kind=0x40000 enumeration=2 devices=1
12:24:32.550742Z  INFO ... input device callback kind=0x10 enumeration=2 devices=1   <- 3 s after our first keys-file press

The kind=0x10 callback is the press trace your answer put in doubt: it is the first observable sign a keys-file press reached the title, and it fires in run 6 as well. Our presses do land. LONGROAD_ONE_PAD was not set in either run, so that single stand-in pad is what the title saw, as in your Windows runs.

The marker hunt (point 1) turned up something to ask you — a site, not a screen. Run 6 (the LONGROAD_KEYS_FILE route you suggested, 43 Enter lines appended at the first input poll): press lands (kind=0x10 +1.9 s), XUserAddAsync: the offline local user options=1 logs at +2.4 s, then within 0.3 s the title throws first-chance exception 0x80000003 at longroad-image-b99f876b74d4a77f.dll+0x31f50, which this fork's exception path then reports unhandled — run ends. Frames below the int3: +0x4e319db → +0x4e311fe → +0x4d5a53 → +0x12224f → +0x4fd1c3e → +0x23cf247 → +0x23cf104 → +0x2215eca, a worker thread under kernel32.dll+0x117b9.

That +0x31f50 is the same assert site recorded on the same title build (build hash b99f876b74d4a77f) in this machine's sibling-port Linux report: there the lines right before the unhandled 0x80000003 at …image-b99f876b74d4a77f.dll+0x31f50 were XUserAddAsync: the offline local user options=1 plus two XMem protects, and the worker frames +0x2215c35/+0x2215eca reappear in this fork's write-0x0 crash family too. So: on Wine, an Enter at the start screens fires XUserAddAsync and then an int3 at a fixed title offset. Your Enters carry the screens in Windows (13→6→14→18 draws). The question worth a check on your side: instrument the Windows run for first-chance exceptions and look for 0x80000003 at image+0x31f50 around the nine Enters. If it fires there too but is swallowed, the press path asserts on every platform and our forks' exception handling (breakpad first-chance, unhandled under Wine) is what turns it into a death. If it does not fire on Windows, the press path itself differs, and I keep digging on this side.

Run 7 (reactive three presses, fresh file) — honest status on the screenshot you asked for. GameInputCreate at +4 s, press callback ✓, XUserAddAsync ✓, no int3 through +48 s — but this run never showed a frame: err: DXGI: CreateSwapChainForHwnd … hr -2147024809 repeats 1250 times from +4 s; the fork's own frame markers still reach the ~1024th frame at 30 fps, so the title ran, only every windowed present failed. Its memory line at swap-chain time reads the card's own: budget 4771 MB, in use 1535 MB where run 5 — same exe, same env, three hours earlier — read budget 22948 MB, in use 48 MB, and card buffer limits vram_budget_mb=4803 in run 6 is the same 4.7 GB family. This machine has grown heavy multi-GPU work since run 5, and runs 6-7 followed enumeration order onto a busy card (it has three identical 4090s, so device 0 is not a stable choice). Runs 6-7 are host-degraded and cannot be compared to runs 1-5. Run 7 ends cleanly at +48 s — window closed: suspending the title constrained=1 routines=2 → title suspended; ending the title — an external window close, not a title crash (no exception in its log); another full-screen session started on this desktop 11 s later.

So there is no screenshot of the screen-it-sits-at yet: run 7 never presented, so there was no screen content to capture, and the longroad-diag capture at 87feabed wrote 0 PNGs as reported. The workspace-capture path itself works — nine full-desktop frames per minute were captured during run 7 — so the screenshot will come with run 8, which pins the card (LONGROAD_ADAPTER is in the exe) to this machine's idle 4090 and keeps the rest of run 7's env, then posts the screenshot together with your markers (draws jump, the FidelityFX … upscale line, landed … >0 pieces) if it gets through.

One question from us: keys are read from a file as it grows (LONGROAD_KEYS_FILE) never printed in run 6 or 7 — the env is exported in the launcher before wine, the path is a Z: Windows path, the presses demonstrably reach the title (callback above), and the string is in the exe. What level is that line logged at, and does the release exe print it at the default LONGROAD_LOG level? If it sits below INFO, that fully explains our silence and nothing is broken.

Point 3 (preload): agreed with you — not worth it for this wall, we will not spend a run on it.

AI-assisted (Hermes Agent). posted by Headache3318

**@⁠Headache3318** on GitHub · 2026-12-03 13:13 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7379494665) **Your four points, answered from two more runs on this machine** — same exe as our run 5 (night-1203, sha256 `502f2ece…`), one variable per run; these are runs 6 and 7 here. **The GameInput check you asked for (point 2): present and identical to yours** — run 7, verbatim: ``` 12:24:29.486900Z INFO longroad_hle::modules::gameinput: GameInputCreate 12:24:29.487583Z INFO ... input device device=4 connected=true 12:24:29.487610Z INFO ... input device device=5 connected=true 12:24:29.487709Z INFO ... input device callback kind=0x40000 enumeration=2 devices=1 12:24:32.550742Z INFO ... input device callback kind=0x10 enumeration=2 devices=1 <- 3 s after our first keys-file press ``` The `kind=0x10` callback is the press trace your answer put in doubt: it is the first observable sign a keys-file press reached the title, and it fires in run 6 as well. Our presses do land. `LONGROAD_ONE_PAD` was not set in either run, so that single stand-in pad is what the title saw, as in your Windows runs. **The marker hunt (point 1) turned up something to ask you — a site, not a screen.** Run 6 (the `LONGROAD_KEYS_FILE` route you suggested, 43 Enter lines appended at the first input poll): press lands (`kind=0x10` +1.9 s), `XUserAddAsync: the offline local user options=1` logs at +2.4 s, then within 0.3 s the title throws `first-chance exception 0x80000003` at `longroad-image-b99f876b74d4a77f.dll+0x31f50`, which this fork's exception path then reports **unhandled** — run ends. Frames below the int3: `+0x4e319db → +0x4e311fe → +0x4d5a53 → +0x12224f → +0x4fd1c3e → +0x23cf247 → +0x23cf104 → +0x2215eca`, a worker thread under `kernel32.dll+0x117b9`. That `+0x31f50` is the same assert site recorded on the same title build (build hash `b99f876b74d4a77f`) in this machine's sibling-port Linux report: there the lines right before the unhandled `0x80000003` at `…image-b99f876b74d4a77f.dll+0x31f50` were `XUserAddAsync: the offline local user options=1` plus two `XMem` protects, and the worker frames `+0x2215c35/+0x2215eca` reappear in this fork's write-`0x0` crash family too. **So: on Wine, an Enter at the start screens fires `XUserAddAsync` and then an int3 at a fixed title offset.** Your Enters carry the screens in Windows (13→6→14→18 draws). The question worth a check on your side: instrument the Windows run for first-chance exceptions and look for `0x80000003` at `image+0x31f50` around the nine Enters. If it fires there too but is swallowed, the press path asserts on every platform and our forks' exception handling (breakpad first-chance, unhandled under Wine) is what turns it into a death. If it does not fire on Windows, the press path itself differs, and I keep digging on this side. **Run 7 (reactive three presses, fresh file) — honest status on the screenshot you asked for.** `GameInputCreate` at +4 s, press callback ✓, `XUserAddAsync` ✓, no int3 through +48 s — but this run never showed a frame: `err: DXGI: CreateSwapChainForHwnd … hr -2147024809` repeats **1250 times** from +4 s; the fork's own frame markers still reach the ~1024th frame at 30 fps, so the title ran, only every windowed present failed. Its memory line at swap-chain time reads `the card's own: budget 4771 MB, in use 1535 MB` where run 5 — same exe, same env, three hours earlier — read `budget 22948 MB, in use 48 MB`, and `card buffer limits vram_budget_mb=4803` in run 6 is the same 4.7 GB family. This machine has grown heavy multi-GPU work since run 5, and runs 6-7 followed enumeration order onto a busy card (it has three identical 4090s, so device 0 is not a stable choice). **Runs 6-7 are host-degraded and cannot be compared to runs 1-5.** Run 7 ends cleanly at +48 s — `window closed: suspending the title constrained=1 routines=2` → `title suspended; ending the title` — an external window close, not a title crash (no exception in its log); another full-screen session started on this desktop 11 s later. So there is **no screenshot of the screen-it-sits-at yet**: run 7 never presented, so there was no screen content to capture, and the longroad-diag capture at `87feabed` wrote 0 PNGs as reported. The workspace-capture path itself works — nine full-desktop frames per minute were captured during run 7 — so the screenshot will come with run 8, which pins the card (`LONGROAD_ADAPTER` is in the exe) to this machine's idle 4090 and keeps the rest of run 7's env, then posts the screenshot together with your markers (`draws` jump, the `FidelityFX … upscale` line, `landed … >0 pieces`) if it gets through. **One question from us:** `keys are read from a file as it grows (LONGROAD_KEYS_FILE)` never printed in run 6 or 7 — the env is exported in the launcher before `wine`, the path is a `Z:` Windows path, the presses demonstrably reach the title (callback above), and the string is in the exe. What level is that line logged at, and does the release exe print it at the default `LONGROAD_LOG` level? If it sits below INFO, that fully explains our silence and nothing is broken. **Point 3 (preload): agreed with you** — not worth it for this wall, we will not spend a run on it. AI-assisted (Hermes Agent). posted by Headache3318
Author
Owner

@⁠Lesloo on GitHub · 2026-12-03 14:27 UTC · original

Thanks for runs 6 and 7, and for flagging that 6-7 ran on a busy card. Agreed, they don't compare with 1-5. Two corrections first, because they change what the logs show:

1. input device callback kind=0x10 is not a press. That line is logged when the title calls RegisterDeviceCallback. kind is the GameInputKind mask it registers for: 0x10 is GameInputKindKeyboard and 0x40000 is GameInputKindGamepad. devices=1 is the stand-in device we report back to it. So kind=0x10 3 s after your first press means the title started listening for keyboards then. It doesn't show that a key arrived.

2. The keys-file line is INFO (tracing::info!), so the release exe prints it at the default level. It's printed once, the first time our input code reads the scripted keys, which happens on the input thread's first keyboard or pad poll. A run that never prints it either never had LONGROAD_KEYS_FILE in the process environment, or never got that far. With the line missing in both 6 and 7, I don't think your presses reached the title. Two quick ways to tell:

  • Print the environment from inside Wine, using the same launcher shell: wine cmd /c set LONGROAD_.
  • Use LONGROAD_KEYS (presses at fixed times, read from the environment, no file) for one run, e.g. LONGROAD_KEYS='15:Enter,19:Enter,23:Enter,27:Enter,31:Enter'. If the screens move with that and not with the file, it's the file path or the environment.

3. The int3 at image+0x31f50 on Windows: our crash handler is a vectored handler. It prints every first-chance breakpoint (0x80000003) and access violation to stderr, before anything else can take them. Across today's ~100 Windows dev runs, all of which go through the start screens on Enter presses and log XUserAddAsync: the offline local user options=1, there isn't a single first-chance report of any kind. So on Windows that assert doesn't fire, swallowed or otherwise. The difference is on the Wine side: something the title checks right after XUserAddAsync comes back different there. The two XMem protects in your sibling report are a good lead. If you can, log the XUserAddAsync completion (the async block's result and the user handle it hands back) on both sides, plus what the title reads next.

Looking forward to run 8 on the idle 4090.

**@⁠Lesloo** on GitHub · 2026-12-03 14:27 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7381490585) Thanks for runs 6 and 7, and for flagging that 6-7 ran on a busy card. Agreed, they don't compare with 1-5. Two corrections first, because they change what the logs show: **1. `input device callback kind=0x10` is not a press.** That line is logged when the title calls `RegisterDeviceCallback`. `kind` is the `GameInputKind` mask it registers for: `0x10` is `GameInputKindKeyboard` and `0x40000` is `GameInputKindGamepad`. `devices=1` is the stand-in device we report back to it. So `kind=0x10` 3 s after your first press means the title started listening for keyboards then. It doesn't show that a key arrived. **2. The keys-file line is INFO** (`tracing::info!`), so the release exe prints it at the default level. It's printed once, the first time our input code reads the scripted keys, which happens on the input thread's first keyboard or pad poll. A run that never prints it either never had `LONGROAD_KEYS_FILE` in the process environment, or never got that far. With the line missing in both 6 and 7, I don't think your presses reached the title. Two quick ways to tell: - Print the environment from inside Wine, using the same launcher shell: `wine cmd /c set LONGROAD_`. - Use `LONGROAD_KEYS` (presses at fixed times, read from the environment, no file) for one run, e.g. `LONGROAD_KEYS='15:Enter,19:Enter,23:Enter,27:Enter,31:Enter'`. If the screens move with that and not with the file, it's the file path or the environment. **3. The int3 at `image+0x31f50` on Windows:** our crash handler is a vectored handler. It prints every first-chance breakpoint (`0x80000003`) and access violation to stderr, before anything else can take them. Across today's ~100 Windows dev runs, all of which go through the start screens on Enter presses and log `XUserAddAsync: the offline local user options=1`, there isn't a single first-chance report of any kind. So on Windows that assert doesn't fire, swallowed or otherwise. The difference is on the Wine side: something the title checks right after `XUserAddAsync` comes back different there. The two `XMem` protects in your sibling report are a good lead. If you can, log the `XUserAddAsync` completion (the async block's result and the user handle it hands back) on both sides, plus what the title reads next. Looking forward to run 8 on the idle 4090.
Author
Owner

@⁠Headache3318 on GitHub · 2026-12-03 16:10 UTC · original

Run 8 is done on this box — answers your two checks, and it says the blocker is earlier than key delivery. Corrections accepted first: kind=0x10 I read as a press is the registration mask (GameInputKindKeyboard), and the keys-file line being INFO means its absence in runs 6-7 was "never got that far", not a level question. Thank you — that reframed this whole run.

Your check 1, run verbatim in the same launcher shell (wine 11.23, WINEDEBUG=-all): wine cmd /c set LONGROAD_ prints

LONGROAD_CACHE_DIR=Z:\...\lr-run\home\cache
LONGROAD_DATA_DIR=Z:\...\lr-run\home\data
LONGROAD_GAME_DIR=Z:\...\GTA6.Xbox.v1.0.2.1-CYBERLEEK
LONGROAD_HOME=Z:\...\lr-run\home
LONGROAD_KEYS_FILE=Z:\...\lr-run\keys.live8
LONGROAD_LOG_FILE=Z:\...\lr-run\logs\title-runX.log

so the variable does reach the wine process environment. "Not in the environment" is ruled out for runs 6-7: it was the "never got that far" branch, exactly as you guessed.

Run 8 = run 7's env EXACTLY, one variable: LONGROAD_ADAPTER='4090' (your pick_adapter substring pick, verified in crates/longroad-shader/src/emit/host.rs — this box has three identical 4090s, so the name pin takes the first enumerated one and bypasses the monitor/most-free heuristics that drifted run 7 onto a busy card). Boot became healthy:

  • host device ... adapter=NVIDIA GeForce RTX 4090 own_memory_mb=24564 at 15:33:54Z, and the card it actually filled is the one free card here: that GPU's used memory grew 994 → 2856 MiB during the run and fell back to 978 MiB after the clean stop (pkill -TERM + wineserver -k, verified); the two cards our other sessions hold did not move.
  • zero 0x80070057 swap-chain failures (run 7: 1250), zero unhandled/first-chance/error= lines in 43,051 console lines.
  • GameInputCreate 15:33:53Z → host device → XUserAddAsync: the offline local user options=1 15:33:56Z, and then the run survived 18 minutes past XUserAddAsync with no int3 — run 6's 0x80000003 at image+0x31f50 needed the 43-line burst present at poll-open; with 0→3 lines this run got none. Your Windows-side answer (no first-chance in ~100 Windows runs) plus this: the int3 is a burst-path artifact, not the XUserAddAsync path itself, as far as this box shows.
  • 15 frame presented lines; window title steady: Americas | Longroad (RT off) 31 fps 32.1 ms/frame 21 draws/frame for the entire 18 minutes.

But the title never polled, and the presses never landed. I appended the three Enter lines reactively after GameInputCreate (+6/+16/+26 s), plus a fourth at minute 17 — and the keys are read from a file INFO line appeared in none of runs 6, 7, or 8. With check 1 proving the variable reaches the process environment, the consistent reading is: in this state the title does not do its first keyboard/pad poll — so no LONGROAD_KEYS_FILE content is consumed, and (per your correction) no RegisterDeviceCallback happened either: runs 6 and 7 logged input device callback kind=0x10, run 8 logged no kind= line at all in 18 minutes. That also means run 8 stopped earlier than runs 6-7 reached.

On-screen ground truth, KWin ScreenShot2 workspace captures (decorations render correctly — the live title-bar text is readable in the shots): the game window's client area is black with one small icon and one faint horizontal line, unchanged across the presses and 18 minutes. And one thing I can't explain and you may recognize: a second small window whose caption reads verbatim Program Error sits overlapping the top-left of the game window — present already in the +3-minute capture of this run, still there at minute 18. On Windows the same route never shows such a box, so: does a Program Error-caption dialog ever appear on your Windows dev runs' start path, and what does the Windows title do after XUserAddAsync — at what moment does it call RegisterDeviceCallback / first poll keyboard, and which screen is up then? Those two answers tell us what this Linux path is missing before the input stage.

If useful, next on our side: a small PR adding the completion trace you asked for (XUserAddAsync async block result + the user handle, plus the next reads gate), and/or the LONGROAD_KEYS-from-environment run once you tell us the state that should poll — with the title bar sitting at Americas 21 draws/frame, env vs file shouldn't matter yet, since neither is consumed before the first poll.

AI-assisted (Hermes Agent). posted by Headache3318

**@⁠Headache3318** on GitHub · 2026-12-03 16:10 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7384380017) Run 8 is done on this box — answers your two checks, and it says the blocker is earlier than key delivery. Corrections accepted first: `kind=0x10` I read as a press is the registration mask (GameInputKindKeyboard), and the keys-file line being INFO means its absence in runs 6-7 was "never got that far", not a level question. Thank you — that reframed this whole run. **Your check 1, run verbatim in the same launcher shell (wine 11.23, `WINEDEBUG=-all`):** `wine cmd /c set LONGROAD_` prints ``` LONGROAD_CACHE_DIR=Z:\...\lr-run\home\cache LONGROAD_DATA_DIR=Z:\...\lr-run\home\data LONGROAD_GAME_DIR=Z:\...\GTA6.Xbox.v1.0.2.1-CYBERLEEK LONGROAD_HOME=Z:\...\lr-run\home LONGROAD_KEYS_FILE=Z:\...\lr-run\keys.live8 LONGROAD_LOG_FILE=Z:\...\lr-run\logs\title-runX.log ``` so the variable **does** reach the wine process environment. "Not in the environment" is ruled out for runs 6-7: it was the "never got that far" branch, exactly as you guessed. **Run 8 = run 7's env EXACTLY, one variable:** `LONGROAD_ADAPTER='4090'` (your `pick_adapter` substring pick, verified in `crates/longroad-shader/src/emit/host.rs` — this box has three identical 4090s, so the name pin takes the first enumerated one and bypasses the monitor/most-free heuristics that drifted run 7 onto a busy card). Boot became healthy: - `host device ... adapter=NVIDIA GeForce RTX 4090 own_memory_mb=24564` at 15:33:54Z, and the card it actually filled is the one free card here: that GPU's used memory grew 994 → 2856 MiB during the run and fell back to 978 MiB after the clean stop (`pkill -TERM` + `wineserver -k`, verified); the two cards our other sessions hold did not move. - **zero** `0x80070057` swap-chain failures (run 7: 1250), zero `unhandled`/`first-chance`/`error=` lines in 43,051 console lines. - `GameInputCreate` 15:33:53Z → `host device` → `XUserAddAsync: the offline local user options=1` 15:33:56Z, and then the run **survived 18 minutes past `XUserAddAsync` with no int3** — run 6's `0x80000003` at `image+0x31f50` needed the 43-line burst present at poll-open; with 0→3 lines this run got none. Your Windows-side answer (no first-chance in ~100 Windows runs) plus this: the int3 is a burst-path artifact, not the `XUserAddAsync` path itself, as far as this box shows. - 15 `frame presented` lines; window title steady: `Americas | Longroad (RT off) 31 fps 32.1 ms/frame 21 draws/frame` for the entire 18 minutes. **But the title never polled, and the presses never landed.** I appended the three `Enter` lines reactively after `GameInputCreate` (+6/+16/+26 s), plus a fourth at minute 17 — and the `keys are read from a file` INFO line appeared **in none of runs 6, 7, or 8**. With check 1 proving the variable reaches the process environment, the consistent reading is: in this state the title does not do its first keyboard/pad poll — so no `LONGROAD_KEYS_FILE` content is consumed, and (per your correction) no `RegisterDeviceCallback` happened either: runs 6 and 7 logged `input device callback kind=0x10`, **run 8 logged no `kind=` line at all in 18 minutes.** That also means run 8 stopped *earlier* than runs 6-7 reached. On-screen ground truth, KWin `ScreenShot2` workspace captures (decorations render correctly — the live title-bar text is readable in the shots): the game window's client area is black with one small icon and one faint horizontal line, unchanged across the presses and 18 minutes. And one thing I can't explain and you may recognize: **a second small window whose caption reads verbatim `Program Error`** sits overlapping the top-left of the game window — present already in the +3-minute capture of this run, still there at minute 18. On Windows the same route never shows such a box, so: **does a `Program Error`-caption dialog ever appear on your Windows dev runs' start path, and what does the Windows title do after `XUserAddAsync` — at what moment does it call `RegisterDeviceCallback` / first poll keyboard, and which screen is up then?** Those two answers tell us what this Linux path is missing before the input stage. If useful, next on our side: a small PR adding the completion trace you asked for (`XUserAddAsync` async block result + the user handle, plus the next reads gate), and/or the `LONGROAD_KEYS`-from-environment run once you tell us the state that should poll — with the title bar sitting at `Americas` 21 draws/frame, env vs file shouldn't matter yet, since neither is consumed before the first poll. AI-assisted (Hermes Agent). posted by Headache3318
Author
Owner

@⁠Lesloo on GitHub · 2026-12-03 17:23 UTC · original

Thanks for run 8, and for pinning the idle 4090. That clears up the swap-chain errors and the int3. Two things in it point at the same place.

The Program Error window is Wine's own crash dialog (winedbg's), not ours and not the title's. The title never shows one on Windows. It means a process in that prefix hit an exception nothing handled. Two ways to see what it was:

  • Its "Show Details" button names the process, the exception code and the address, with a backtrace. If you can paste that, it's the most useful single thing right now.
  • If the process was longroad.exe, our handler also appends the report, with the title's last debug output, to crashes.log in the title's data folder (<LONGROAD_DATA_DIR>\<title id>\crashes.log, beside its temp folder). WINEDEBUG=-all hides Wine's err:seh lines, so one run with the default WINEDEBUG (or +seh) shows which thread faulted.

What Windows does after GameInputCreate (today's release build, RTX 5080, from the run log):

after GameInputCreate line
+0.4 ms input device callback kind=0x40000 (the title registers for gamepads)
+0.4 s host device ...
+4.5 s frame presented frame=1 draws=0
+5.0 s input device callback kind=0x10 (it registers for keyboards)
+5.5 s XUserAddAsync: the offline local user options=1
+6 s to +16 s frames climb: 24 draws by frame 16, 294 by frame 128, ~1,500 by frame 256 (the start screens)

The scripted presses start at 15 s, and the keys line prints at the first poll after that. The window caption is the same on Windows (Americas | Longroad ... is the title's own window name), so that part is normal.

So run 8 logged no kind= line at all, not even the gamepad registration that Windows logs within a millisecond of GameInputCreate. It also stayed at 21 draws a frame for 18 minutes, where Windows passes 294 by frame 128. My reading: the title thread that called GameInputCreate didn't get to its next call, so the title never reached its start screens and never polled. That's the same place the Program Error dialog would come from, if it's longroad.exe's.

Two questions back:

  • Did runs 6 and 7 log kind=0x40000 too, or only kind=0x10?
  • What do the dialog's details say?

A PR with the XUserAddAsync completion trace is welcome. Given the above, it would help to log the next few system calls the GameInputCreate thread makes after it returns too, since that thread seems to stop there.

**@⁠Lesloo** on GitHub · 2026-12-03 17:23 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7386436204) Thanks for run 8, and for pinning the idle 4090. That clears up the swap-chain errors and the int3. Two things in it point at the same place. **The `Program Error` window is Wine's own crash dialog** (winedbg's), not ours and not the title's. The title never shows one on Windows. It means a process in that prefix hit an exception nothing handled. Two ways to see what it was: - Its "Show Details" button names the process, the exception code and the address, with a backtrace. If you can paste that, it's the most useful single thing right now. - If the process was longroad.exe, our handler also appends the report, with the title's last debug output, to `crashes.log` in the title's data folder (`<LONGROAD_DATA_DIR>\<title id>\crashes.log`, beside its `temp` folder). `WINEDEBUG=-all` hides Wine's `err:seh` lines, so one run with the default `WINEDEBUG` (or `+seh`) shows which thread faulted. **What Windows does after `GameInputCreate`** (today's release build, RTX 5080, from the run log): | after `GameInputCreate` | line | |---|---| | +0.4 ms | `input device callback kind=0x40000` (the title registers for gamepads) | | +0.4 s | `host device ...` | | +4.5 s | `frame presented frame=1 draws=0` | | +5.0 s | `input device callback kind=0x10` (it registers for keyboards) | | +5.5 s | `XUserAddAsync: the offline local user options=1` | | +6 s to +16 s | frames climb: 24 draws by frame 16, 294 by frame 128, ~1,500 by frame 256 (the start screens) | The scripted presses start at 15 s, and the keys line prints at the first poll after that. The window caption is the same on Windows (`Americas | Longroad ...` is the title's own window name), so that part is normal. So run 8 logged no `kind=` line at all, not even the gamepad registration that Windows logs within a millisecond of `GameInputCreate`. It also stayed at 21 draws a frame for 18 minutes, where Windows passes 294 by frame 128. My reading: the title thread that called `GameInputCreate` didn't get to its next call, so the title never reached its start screens and never polled. That's the same place the `Program Error` dialog would come from, if it's longroad.exe's. Two questions back: - Did runs 6 and 7 log `kind=0x40000` too, or only `kind=0x10`? - What do the dialog's details say? A PR with the `XUserAddAsync` completion trace is welcome. Given the above, it would help to log the next few system calls the `GameInputCreate` thread makes after it returns too, since that thread seems to stop there.
Author
Owner

@⁠Headache3318 on GitHub · 2026-12-04 10:54 UTC · original

Your two questions first, from what our posts already recorded — then the instrumentation you asked for.

(1) Which runs logged which registrations. Run 7 logged the gamepad registration: our 13:13 comment quotes it verbatim — GameInputCreate at 12:24:29.486900Z, then input device callback kind=0x40000 enumeration=2 devices=1 at 12:24:29.487709Z, 0.8 ms later (your Windows figure is about 0.4 ms), and kind=0x10 3 s after. Run 6 logged at least kind=0x10 (our 13:13 comment); its kind=0x40000 line we cannot re-check now. Run 8 logged neither. So runs 6-7 reached the registration stage and run 8 stopped before the +0.4 ms line — same exe, GameInputCreate fired in all of them. The single variable that changed into run 8 was LONGROAD_ADAPTER='4090' (and the card it consequently landed on: run 8 on the one idle card, 6-7 on a busy one). If an adapter pin can change whether the title registers for pads a millisecond after GameInputCreate, that is the shortest lead this thread has had — we will re-run that differential (adapter pin on/off, cards in the same load state) when our machine frees.

(2) The dialog details: we cannot paste run 8's Show Details — the kits from those runs (console logs, crashes.log in the title data dir, the prefix) were deleted by operator request when the session ended. The next run on this box keeps them and runs with default WINEDEBUG + seh, per your note.

The PR you welcomed is here: #10 — it logs both things you asked for: the XUserAddAsync completion (async result code + the XUserHandle handed back), and a budgeted trace of the next layer calls made by the GameInputCreate thread after that call returns. Same binary on both sides, so a Windows run shows the normal next-calls sequence and a Wine run shows where that thread stops. (cargo xwin check -p longroad-hle --target x86_64-pc-windows-msvc → Finished, exit 0, repo-pinned rustc 1.98.1; native-Linux cargo check fails identically on main — the crate builds for the Windows target, so that is the check that means anything.)

All three of our 4090s currently hold 20-23 GiB for another workload and the run kits need a rebuild, so the adapter-pin differential and the instrumented run follow as soon as a card frees; we will post both results in this thread. Thanks for the GameInputKind correction and the Windows timeline table — between them they turned 'front end is the wall' into a one-call gap.

AI-assisted (Hermes Agent).

**@⁠Headache3318** on GitHub · 2026-12-04 10:54 UTC · [original](https://github.com/Lesloo/longroad/issues/4#issuecomment-7409361407) **Your two questions first, from what our posts already recorded — then the instrumentation you asked for.** **(1) Which runs logged which registrations.** Run 7 logged the gamepad registration: our 13:13 comment quotes it verbatim — GameInputCreate at 12:24:29.486900Z, then input device callback kind=0x40000 enumeration=2 devices=1 at 12:24:29.487709Z, 0.8 ms later (your Windows figure is about 0.4 ms), and kind=0x10 3 s after. Run 6 logged at least kind=0x10 (our 13:13 comment); its kind=0x40000 line we cannot re-check now. Run 8 logged neither. So runs 6-7 reached the registration stage and run 8 stopped before the +0.4 ms line — same exe, GameInputCreate fired in all of them. The single variable that changed into run 8 was LONGROAD_ADAPTER='4090' (and the card it consequently landed on: run 8 on the one idle card, 6-7 on a busy one). If an adapter pin can change whether the title registers for pads a millisecond after GameInputCreate, that is the shortest lead this thread has had — we will re-run that differential (adapter pin on/off, cards in the same load state) when our machine frees. **(2) The dialog details:** we cannot paste run 8's Show Details — the kits from those runs (console logs, crashes.log in the title data dir, the prefix) were deleted by operator request when the session ended. The next run on this box keeps them and runs with default WINEDEBUG + seh, per your note. **The PR you welcomed is here: https://git.gtahub.st/github/Lesloo--longroad/pulls/10** — it logs both things you asked for: the XUserAddAsync completion (async result code + the XUserHandle handed back), and a budgeted trace of the next layer calls made by the GameInputCreate thread after that call returns. Same binary on both sides, so a Windows run shows the normal next-calls sequence and a Wine run shows where that thread stops. (`cargo xwin check -p longroad-hle --target x86_64-pc-windows-msvc` → Finished, exit 0, repo-pinned rustc 1.98.1; native-Linux `cargo check` fails identically on `main` — the crate builds for the Windows target, so that is the check that means anything.) All three of our 4090s currently hold 20-23 GiB for another workload and the run kits need a rebuild, so the adapter-pin differential and the instrumented run follow as soon as a card frees; we will post both results in this thread. Thanks for the GameInputKind correction and the Windows timeline table — between them they turned 'front end is the wall' into a one-call gap. AI-assisted (Hermes Agent).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Lesloo--longroad#4
No description provided.