Linux with plain Wine 11.23 on an RTX 4090: measured bring-up at 87feabed, and the title holds at 21 draws/frame #4
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Lesloo--longroad#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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, thencargo xwin build --release --locked -p longroad --target x86_64-pc-windows-msvc(cargo-xwin 0.24.2,
rustc 1.98.1fromrust-toolchain.toml, clang 23.1.5,ld.lld23.1.5):Finished release profile [optimized + debuginfo] ... in 39.18s. Result:longroad.exe12,648,448 bytes,sha256 6edba7a2d529b0433085d1fee2358dda6e55fa3d37d1988f96b1145fc19e797e. TheD3D12SDKVersion/D3D12SDKPathexports and/DELAYLOAD:d3d12.dllinapps/longroad/build.rsneed the MSVC linker, socargo-xwinis the cross path that works on Linux — as your own doc says; awindows-gnucross-build of the same source would not carry those exports.Loader stack (fresh prefix, no Proton): our own build of
vkd3d-protonmaster55efc5324aec1c94387540d77df352a4f0435be3as natived3d12.dll(md5 2255367890af2d8823e72637a4ee5fe3) withd3d12core.dll(md5 c2a0eff8bca20753d9fd0fd9ff362ff6, the same core file also inD3D12/D3D12Core.dll), and DXVK'sdxgi.dllfrom GE-Proton 11-14 (md5 2383c4265af1ee4f267663c99f3acb6a).(
Z:is Wine's drive-c spelling of ordinary folders on this machine;longroad.tomlwas not used, the environment paths were.)What worked, with counts.
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),dstorageopening the title's shader archive through theG:mount, the audio decoder and DSP connected,swap chain ... tearing=true, andframe presented frame=11.9 s after the process started.Americas | Longroad (RT off) 683-925 fps 1.1-1.5 ms/frame 21 draws/frame. Theframe presentedmarkers 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 thosefpsfigures are the host's present loop, not the title's.landed per frame: 0 pieces, 0 with a new bytein 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.shader translatedlines, 513host pipelinelines in 46 min;title pipelines known from earlier runs pipelines=0 shaders=0;no host pipeline library yet; starting an empty onethenhost 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 indocs/linux-proton.md("pipelines are not kept"). What we could not measure is the second boot:loaded=0should becomeloaded>0there, 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?docs/linux-proton.mdreports withproton-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 aproton-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 being683.4 fps, 1.5 ms/frame.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 threadstood 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.
--fps 1000was 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 to30 fps 33.3 ms/frame, the present markers spaced to the cap — and the state stayed21 draws/frame,0 pieces landed. So the frame cap is not what holds it.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.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 30withLONGROAD_CAPTURE=<folder>andLONGROAD_CAPTURE_WORLD=1— 0 PNGs written — andLONGROAD_KEYS_FILEwas set with six lines (Enter,Down,Enter,Right,Enter,Start 2) appended while the title ran, but the linekeys are read from a file as it grows (LONGROAD_KEYS_FILE)never appeared in the layer log.stringson the two builds:LONGROAD_CAPTUREappears once in the diagnostics exe and not once in the release exe, so the switch is compiled into the diagnostics build;LONGROAD_KEYS_FILEappears 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/frameunder Linux? A pad really attached before launch is registered at boot (longroad_hle::modules::gameinputlogged the DualSense in every run). Does the front-end want an Xbox-layout pad in particular? We can create an x360-layout device throughuinputand have it present before the title starts, and report what changes. Or is it a first-run--preloadyou expect before the title advances, or an--set LONGROAD_...we should be using, or theXUserflow?Also from this machine, unrelated to Wine:
cargo test -p longroad-peturns four tests red on a Linux host build at this head, becauseown_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.
@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:
The 29
a pipeline creation method that is not implementedlines are expected. A Windows run here (a branch just ahead of87feabed) logs the same 29, on the same two slots (0x1c816 times,0x21813 times), and goes on into the world. They are not what holds it.LONGROAD_KEYS_FILEandLONGROAD_CAPTUREmost 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 withLONGROAD_KEYS_FILEset, the first poll logskeys are read from a file as it grows (LONGROAD_KEYS_FILE). With capture on, every frame it tries to save logs eitherframe savedorframe not savedwith 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.For the start screens,
LONGROAD_KEYSis the simpler route:LONGROAD_KEYS=15:Enter,19:Enter,23:Enter,27:Enter,31:Enter,35:Enter,39:Enter,43:Enter,47:Enter,51:Enterpresses 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.
On Windows, about a second after
frame presented frame=1, the log showsXUserAddAsync: the offline local user options=1, andlanded per frame: 0 piecesis normal until the world starts loading. If your log has noXUserAddAsyncline, 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.
@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, sha256502f2ece2113ef8d5dbe11374433984638c9e64f6ca46a7b6a7aa424865624d4. The two newscripts/files arrived after our first checkout, so we re-readplay-longroad.ps1and mirrored its base$setverbatim (Linux has no PowerShell here, so the launcher exports the same env beforewine): the result is run 5 below.Run 4 — single variable, your
LONGROAD_KEYSrecipe, no other change (same exe/env as our first three runs,--fps 1000):LONGROAD_KEYS=***only,Z:paths. NoXInputlog line exists for either form, and no key-press marker appears in the console — the presses have no observable trace, and the window still reports21 draws/frame(title-bar607→894→919 fpsat the uncapped--fps 1000),frame presentedmarkers 18,landed per frame: 0 pieceson all 229longroad_gpu::landlines,from (LONGROAD_PLACED_READS)229 lines,XUserAddAsynclogged.Run 5 — night-1203 + the full maintainer env mirror (your
$setexported,--fps 30):proof the env reached the process — the knobs log their own values now:
The
29refused pipeline-creation methods match your Windows log count for count (0x1c8×16 +0x218×13), andXUserAddAsyncfires on schedule now — which, per your point 4, means the title really is sitting at its start screens, not before them.on=falsefor 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 notonhere, and0 windows, whole 0 MBfor pagewin is the night-1203 default with--fps 30still holding30 fps 33.3 ms/frame. Nothing in run 5 moved the state counters:21 draws/frameconstant,0 piecesconstant,the heapslines 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.Return/space/Down/Rightsent to the focused window, 8 and 6 presses in the two runs: no counter, nodrawschange, nolandedchange — consistent with your note that keys only count while the layer sees the title's window focused, which may not hold here.--features diagnosticsat87feabed, exe containsframe saved/frame not saved: not 8-bit colorsstrings):LONGROAD_CAPTURE+LONGROAD_CAPTURE_WORLDwrote 0 PNGs in 14+ min, and neither stream (LONGROAD_LOG_FILEtitle log, console) ever printed theframe saved/frame not savedorkeys are read from a filelines, althoughstringsconfirms both exist in the binary. So we could not get screen-state ground truth this way; state counters are the only channel we have.21 draws/frame→39 draws/frameand let the 4K intro movie play through at full speed with audio — so the title does notice a pad at boot there. Butpad Aevery ~2 s and focused XTESTEnter×12, plusF1/F2/F3, never moved it past39either, 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
drawsjump?landed: >0? something else)? That marker is what we would watch for on Linux.LONGROAD_KEYSstand-in-pad presses carry it? On Wine the stand-in table is there in source, presses are accepted, and the title is unfazed.preload: your docs' play-once-warm rule — we cannot play once yet, solongroad preloadwould warm only the pipelines the front end emits. Worth running against--allstyle 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
XUSERdevice 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).@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 afterGameInputCreatein all four runs, within a second of the 9th Enter;landed per frame:goes above0 pieces4 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) anddevice=5(the keyboard). Then comesinput device callback kind=0x40000 enumeration=2 devices=1: the title asked for gamepads and was given that one.LONGROAD_KEYSpresses 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 defaultLONGROAD_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 (GameInputCreateand the three above).Two things about
LONGROAD_KEYSthat may matter under Wine: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)***, so we couldn't tell what the process got.LONGROAD_KEYS_FILEgives you a trace. With it set, the first input poll logskeys 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, runwhile 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 (noGameInputCreateline).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 longerLONGROAD_KEYSlist or the keys file. Send a screenshot of the window on the screen it sits at, along with theGameInputCreate/input devicelines.@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:
The
kind=0x10callback 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_PADwas 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_FILEroute you suggested, 43 Enter lines appended at the first input poll): press lands (kind=0x10+1.9 s),XUserAddAsync: the offline local user options=1logs at +2.4 s, then within 0.3 s the title throwsfirst-chance exception 0x80000003atlongroad-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 underkernel32.dll+0x117b9.That
+0x31f50is the same assert site recorded on the same title build (build hashb99f876b74d4a77f) in this machine's sibling-port Linux report: there the lines right before the unhandled0x80000003at…image-b99f876b74d4a77f.dll+0x31f50wereXUserAddAsync: the offline local user options=1plus twoXMemprotects, and the worker frames+0x2215c35/+0x2215ecareappear in this fork's write-0x0crash family too. So: on Wine, an Enter at the start screens firesXUserAddAsyncand 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 for0x80000003atimage+0x31f50around 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.
GameInputCreateat +4 s, press callback ✓,XUserAddAsync✓, no int3 through +48 s — but this run never showed a frame:err: DXGI: CreateSwapChainForHwnd … hr -2147024809repeats 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 readsthe card's own: budget 4771 MB, in use 1535 MBwhere run 5 — same exe, same env, three hours earlier — readbudget 22948 MB, in use 48 MB, andcard buffer limits vram_budget_mb=4803in 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
87feabedwrote 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_ADAPTERis 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 (drawsjump, theFidelityFX … upscaleline,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 beforewine, the path is aZ: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 defaultLONGROAD_LOGlevel? 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
@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=0x10is not a press. That line is logged when the title callsRegisterDeviceCallback.kindis theGameInputKindmask it registers for:0x10isGameInputKindKeyboardand0x40000isGameInputKindGamepad.devices=1is the stand-in device we report back to it. Sokind=0x103 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 hadLONGROAD_KEYS_FILEin 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:wine cmd /c set LONGROAD_.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+0x31f50on 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 logXUserAddAsync: 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 afterXUserAddAsynccomes back different there. The twoXMemprotects in your sibling report are a good lead. If you can, log theXUserAddAsynccompletion (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.
@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=0x10I 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_printsso 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'(yourpick_adaptersubstring pick, verified incrates/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=24564at 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.0x80070057swap-chain failures (run 7: 1250), zerounhandled/first-chance/error=lines in 43,051 console lines.GameInputCreate15:33:53Z →host device→XUserAddAsync: the offline local user options=115:33:56Z, and then the run survived 18 minutes pastXUserAddAsyncwith no int3 — run 6's0x80000003atimage+0x31f50needed 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 theXUserAddAsyncpath itself, as far as this box shows.frame presentedlines; window title steady:Americas | Longroad (RT off) 31 fps 32.1 ms/frame 21 draws/framefor the entire 18 minutes.But the title never polled, and the presses never landed. I appended the three
Enterlines reactively afterGameInputCreate(+6/+16/+26 s), plus a fourth at minute 17 — and thekeys are read from a fileINFO 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 noLONGROAD_KEYS_FILEcontent is consumed, and (per your correction) noRegisterDeviceCallbackhappened either: runs 6 and 7 loggedinput device callback kind=0x10, run 8 logged nokind=line at all in 18 minutes. That also means run 8 stopped earlier than runs 6-7 reached.On-screen ground truth, KWin
ScreenShot2workspace 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 verbatimProgram Errorsits 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 aProgram Error-caption dialog ever appear on your Windows dev runs' start path, and what does the Windows title do afterXUserAddAsync— at what moment does it callRegisterDeviceCallback/ 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 (
XUserAddAsyncasync block result + the user handle, plus the next reads gate), and/or theLONGROAD_KEYS-from-environment run once you tell us the state that should poll — with the title bar sitting atAmericas21 draws/frame, env vs file shouldn't matter yet, since neither is consumed before the first poll.AI-assisted (Hermes Agent). posted by Headache3318
@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 Errorwindow 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:crashes.login the title's data folder (<LONGROAD_DATA_DIR>\<title id>\crashes.log, beside itstempfolder).WINEDEBUG=-allhides Wine'serr:sehlines, so one run with the defaultWINEDEBUG(or+seh) shows which thread faulted.What Windows does after
GameInputCreate(today's release build, RTX 5080, from the run log):GameInputCreateinput device callback kind=0x40000(the title registers for gamepads)host device ...frame presented frame=1 draws=0input device callback kind=0x10(it registers for keyboards)XUserAddAsync: the offline local user options=1The 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 ofGameInputCreate. It also stayed at 21 draws a frame for 18 minutes, where Windows passes 294 by frame 128. My reading: the title thread that calledGameInputCreatedidn't get to its next call, so the title never reached its start screens and never polled. That's the same place theProgram Errordialog would come from, if it's longroad.exe's.Two questions back:
kind=0x40000too, or onlykind=0x10?A PR with the
XUserAddAsynccompletion trace is welcome. Given the above, it would help to log the next few system calls theGameInputCreatethread makes after it returns too, since that thread seems to stop there.@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-Linuxcargo checkfails identically onmain— 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).