From c7c82150b1194867cfcd5da8ee7ffea679cfaf31 Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:13:30 +0100 Subject: [PATCH 1/4] docs/port_status.md: the measured list-values pair past the world load The device-loss paragraph now has the measured reproduction on a 12 GB NVIDIA card: with the list values on, the opening sequence's night scene waits in one console value for 101 minutes; with LEONIDA_LIST_VALUES=0 it draws further and ends in the title's device-removed handler, with no fault address. Links the two #2464 run comments. AI-assisted. --- docs/port_status.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/port_status.md b/docs/port_status.md index 889f369cae..1b8f4ddb60 100644 --- a/docs/port_status.md +++ b/docs/port_status.md @@ -319,6 +319,15 @@ up to 420 MiB imported again as single 64 KiB pages are mapped), single pages th replaces the per-range imports with one sparse buffer over the title's windows, bound to one import of the physical page pool, so a page mapping is a sparse bind and an unmapped page reads zero, as on the console. +Past the world load the opening sequence's night scene has two ends on an RTX 3060 12 GB under Wine 11.22. With the +list values on, one console value wait stayed unmet for 101 minutes, with no presents and no queue calls and no gate +released unmet. With `LEONIDA_LIST_VALUES=0` the scene draws further, then `vkWaitSemaphores` and `vkQueueSubmit` +return `VK_ERROR_DEVICE_LOST` and the title's device-removed handler raises `0x80000003`; `VK_EXT_device_fault` named +five compute queues in flight and gave no address on this driver, as above. Host memory was 19-20 GB in the stalled +run and peaked at 18.9 and 23.6 GB in the two device-loss runs, of a 24 GB cgroup. The runs are +[#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) and +[comment 7300173397](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7300173397). + Also this session: depth-bounds PSOs are built (`166c49386`); the title's 2,680 slot-67 FSPX compute programs, which no build translated, are captured at run time and translated by the shaders stage (`349be3469`, docs/fspx.md); `port/pipelines`, `port/wave64-tiers` and `port/rect-lists` are merged. From f589493c5feb37577d72b5fe68a8347755b6c44b Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:35:33 +0100 Subject: [PATCH 2/4] docs/port_status.md: scope the second machine's list-values runs Move the runs out of the 2026-11-25 boot section into their own dated section, name the build and driver, say how many runs each configuration has, keep "draws further" with run24 only, and report cgroup memory. Scope the two test-machine statements that said the title stops before its first frame. AI-assisted. --- docs/port_status.md | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/docs/port_status.md b/docs/port_status.md index 1b8f4ddb60..b9f1b27421 100644 --- a/docs/port_status.md +++ b/docs/port_status.md @@ -184,7 +184,7 @@ is on), so title GPU memory can live in VRAM and still be written by the CPU. `LEONIDA_DISPLAY_MODE=2560x1440` the window and both back buffers are 2560x1440 (`LEONIDA_RENDER_SCALE=0.75` renders 1080p into it). Other sizes are refused (1920x1080 still gave 2560x1440 buffers). Its frame-time effect - is not measured yet: the title stops before its first frame. + is not measured yet: on the test machine the title stops before its first frame. - The title's allocator (`port/xmem-hooks`, from VIctory's xmem.rs and resource.rs): XMemAlloc/XMemFree call the routines the exe exports as `__XMemAllocationHooks__`, and committed resources take their memory from @@ -215,8 +215,8 @@ is on), so title GPU memory can live in VRAM and still be written by the CPU. 70/71 textures are detiled whole (mips, tails, slices, 3D; linear, S and D modes, SW_64KB_R_X); Write64's GPU timestamp is a timestamp query the GPU writes when it gets there, the system timestamp the performance counter - once the submission has run. The real title cannot exercise them yet: it - stops at its render-target pool check before its first frame. + once the submission has run. The real title cannot exercise them yet: on the test + machine it stops at its render-target pool check before its first frame. - Time step (unmerged `port/frame-timing` branch, `frame_step.h`): the title's timer (+0x22264d0, once a frame) steps its time sets by the measured QueryPerformanceCounter delta held to [1/30 s, 1/15 s]: the floor is @@ -319,14 +319,8 @@ up to 420 MiB imported again as single 64 KiB pages are mapped), single pages th replaces the per-range imports with one sparse buffer over the title's windows, bound to one import of the physical page pool, so a page mapping is a sparse bind and an unmapped page reads zero, as on the console. -Past the world load the opening sequence's night scene has two ends on an RTX 3060 12 GB under Wine 11.22. With the -list values on, one console value wait stayed unmet for 101 minutes, with no presents and no queue calls and no gate -released unmet. With `LEONIDA_LIST_VALUES=0` the scene draws further, then `vkWaitSemaphores` and `vkQueueSubmit` -return `VK_ERROR_DEVICE_LOST` and the title's device-removed handler raises `0x80000003`; `VK_EXT_device_fault` named -five compute queues in flight and gave no address on this driver, as above. Host memory was 19-20 GB in the stalled -run and peaked at 18.9 and 23.6 GB in the two device-loss runs, of a 24 GB cgroup. The runs are -[#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) and -[comment 7300173397](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7300173397). +A second machine's runs past the world load, a held console value and a device loss, are in +[A second machine, 2026-11-30/12-01](#a-second-machine-2026-11-3012-01). Also this session: depth-bounds PSOs are built (`166c49386`); the title's 2,680 slot-67 FSPX compute programs, which no build translated, are captured at run time and translated by the shaders stage (`349be3469`, docs/fspx.md); @@ -405,6 +399,23 @@ legal list's Next, Up Enter twice and Down Down Enter on the terms screen). Still open from this: culling is off for console pipelines until `LEONIDA_CONSOLE_CULL=1` is checked on screen; the world itself; a root signature that spills past the 32 user dwords (its dispatches are dropped). +## A second machine, 2026-11-30/12-01 + +The runs below are on a different machine from the test machine above (RTX 3060 12 GB, Wine 11.22, NVIDIA 620.70.10), +and do not change its results. They used `main` `d8ca18240` plus a local `run_game_wine.sh` change that leaves +`--trace-d3d12` off. + +Past the world load, the opening sequence's night scene has two ends: one run with the list values on, and two with +`LEONIDA_LIST_VALUES=0` (the second, run25, is run24 plus `LEONIDA_DEVICE_FAULT=1`). With the list values on, one +console value wait stayed unmet for 101 minutes, with no presents and no queue calls and no gate released unmet. +With `LEONIDA_LIST_VALUES=0` one run (run24) drew further, then `vkWaitSemaphores` and `vkQueueSubmit` returned +`VK_ERROR_DEVICE_LOST` and the title's device-removed handler raised `0x80000003`; the next run (run25) lost the +device 8 s after the same kind of frame. Only run25 carried the fault-report switch, which is why the report named +five compute queues in flight and gave no address on this driver (620.70.10). Cgroup memory was 19-20 GB in the +stalled run and peaked at 18.9 and 23.6 GB in the two device-loss runs, of 24 GB. The runs are +[#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) and +[comment 7300173397](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7300173397). + ## Open items, in order 1. The world past the start screen: translate what each run captures (console stages, compute programs), then look From 8e0594344cdb9b077bd097d9261cc63898d1284b Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:53:14 +0100 Subject: [PATCH 3/4] docs/port_status.md: name the call that first returned device lost run24's loss came from vkWaitSemaphores; run25's from vkQueueSubmit before vkWaitSemaphores. The paragraph attributed both to run24. AI-assisted. --- docs/port_status.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/port_status.md b/docs/port_status.md index b9f1b27421..5b0e5188b0 100644 --- a/docs/port_status.md +++ b/docs/port_status.md @@ -408,9 +408,9 @@ and do not change its results. They used `main` `d8ca18240` plus a local `run_ga Past the world load, the opening sequence's night scene has two ends: one run with the list values on, and two with `LEONIDA_LIST_VALUES=0` (the second, run25, is run24 plus `LEONIDA_DEVICE_FAULT=1`). With the list values on, one console value wait stayed unmet for 101 minutes, with no presents and no queue calls and no gate released unmet. -With `LEONIDA_LIST_VALUES=0` one run (run24) drew further, then `vkWaitSemaphores` and `vkQueueSubmit` returned -`VK_ERROR_DEVICE_LOST` and the title's device-removed handler raised `0x80000003`; the next run (run25) lost the -device 8 s after the same kind of frame. Only run25 carried the fault-report switch, which is why the report named +With `LEONIDA_LIST_VALUES=0` one run (run24) drew further, then `vkWaitSemaphores` returned `VK_ERROR_DEVICE_LOST` +and the title's device-removed handler raised `0x80000003`; the next run (run25) lost the device 8 s after the same +kind of frame, with `vkQueueSubmit` returning it first. Only run25 carried the fault-report switch, which is why the report named five compute queues in flight and gave no address on this driver (620.70.10). Cgroup memory was 19-20 GB in the stalled run and peaked at 18.9 and 23.6 GB in the two device-loss runs, of 24 GB. The runs are [#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) and From 7b06905c87736757e113c0af9686a1a0b312b4e6 Mon Sep 17 00:00:00 2001 From: aznohonza Date: Tue, 1 Dec 2026 07:54:06 +0100 Subject: [PATCH 4/4] docs/port_status.md: wrap the device-loss paragraph AI-assisted. --- docs/port_status.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/port_status.md b/docs/port_status.md index 5b0e5188b0..68bfcaab4a 100644 --- a/docs/port_status.md +++ b/docs/port_status.md @@ -410,9 +410,9 @@ Past the world load, the opening sequence's night scene has two ends: one run wi console value wait stayed unmet for 101 minutes, with no presents and no queue calls and no gate released unmet. With `LEONIDA_LIST_VALUES=0` one run (run24) drew further, then `vkWaitSemaphores` returned `VK_ERROR_DEVICE_LOST` and the title's device-removed handler raised `0x80000003`; the next run (run25) lost the device 8 s after the same -kind of frame, with `vkQueueSubmit` returning it first. Only run25 carried the fault-report switch, which is why the report named -five compute queues in flight and gave no address on this driver (620.70.10). Cgroup memory was 19-20 GB in the -stalled run and peaked at 18.9 and 23.6 GB in the two device-loss runs, of 24 GB. The runs are +kind of frame, with `vkQueueSubmit` returning it first. Only run25 carried the fault-report switch, which is why +the report named five compute queues in flight and gave no address on this driver (620.70.10). Cgroup memory was +19-20 GB in the stalled run and peaked at 18.9 and 23.6 GB in the two device-loss runs, of 24 GB. The runs are [#2464, comment 7299367912](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7299367912) and [comment 7300173397](https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7300173397).