Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions docs/port_status.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -319,6 +319,9 @@ 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.

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);
`port/pipelines`, `port/wave64-tiers` and `port/rect-lists` are merged.
Expand Down Expand Up @@ -396,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` 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
[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
Expand Down