upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMoonEyes <ducoinbenjamin@yahoo.fr>2026-11-28 19:24:16 +0100
committerGitHub <noreply@github.com>2026-11-28 19:24:16 +0100
commit2bad446dfd31fa640c6b6f6cf55d5c30cc9ff72a (patch)
treee547258f2999a7ff7be379342f834ac52cd03b82 /docs
parent8451fbdaac00124082db0b10c18e4a41ed7b7be5 (diff)
parent3bbeb55299d6dd41f15a2f0c5b0c218139ee1b8a (diff)
Merge pull request #1078 from nicoco23/docs-related-victory
docs: related_projects lists Marvisak/VIctory and where its line is
Diffstat (limited to 'docs')
-rw-r--r--docs/related_projects.md37
1 files changed, 34 insertions, 3 deletions
diff --git a/docs/related_projects.md b/docs/related_projects.md
index a3a58ff99..145b4741e 100644
--- a/docs/related_projects.md
+++ b/docs/related_projects.md
@@ -143,16 +143,47 @@ lane nodes stand on polygons with both bit 8 and bit 13, and which bit or combin
143 143
144<https://github.com/Marvisak/VIctory> 144<https://github.com/Marvisak/VIctory>
145 145
146A Windows compatibility project for Xbox Series. Its GPU layer translates console command streams to host 146A Rust Xbox Series compatibility layer for the same game, started on 2026-11-23. Like Leonida it runs the title's
147Direct3D 12. 147x64 code natively and reimplements the console libraries (`crates/victory-hle`); unlike Leonida its GPU layer
148forwards D3D12.X command streams to the PC's Direct3D 12 and recompiles the RDNA2 shaders to DXIL when a pipeline is
149created. Its README (status 2026-11-23, read at commit `ffe310e`) reports a retail executable running through the
150first-boot screens, the intro video with sound, the start screen, saves and the load into the world, where the scene
151is still mostly dark at 0.5-1.8 s per frame, on one machine (Windows 11, RX 6700 XT). It does not say which package
152version that executable is from: its build table (`crates/victory-game/src/lib.rs`) is empty.
148 153
149**Licence:** **GPL-3.0-or-later**, as declared in the [workspace manifest][victory-workspace] and the 154**Licence:** **GPL-3.0-or-later**, as declared in the [workspace manifest][victory-workspace] and the
150[README][victory-readme]. The [GPU crate][victory-gpu] inherits the workspace licence. 155[README][victory-readme]; the [GPU crate][victory-gpu] inherits the workspace licence. That is compatible with this
156project's. As with SCARAB and SixNG, **facts first**: verify a claim, write the implementation in our style and name
157the file a fact came from in the pull request. One file is excluded outright:
158`crates/victory-formats/src/bcpack-tables.bin`, constant BCPack tables that its own asset-policy document says are
159not its work and not covered by its licence. They fall under "no game data" here: **nothing from that file, or
160derived from it, enters Leonida**, even though the missing BC6H/BC7 history tables of [textures.md](textures.md) are
161that kind of data.
151 162
152**What we use it for:** prior art for deferring CPU-side value writes until the recorded command-list work has 163**What we use it for:** prior art for deferring CPU-side value writes until the recorded command-list work has
153completed, as discussed in [#622](https://github.com/ubiquitarianism/leonida/pull/622). That PR uses synthetic 164completed, as discussed in [#622](https://github.com/ubiquitarianism/leonida/pull/622). That PR uses synthetic
154tests to verify the ordering of submissions and writes in Leonida's own implementation. 165tests to verify the ordering of submissions and writes in Leonida's own implementation.
155 166
167It is also a second reading, made by running the retail executable, of console imports whose behaviour Leonida has
168measured only statically. Its `victory-hle` modules serve the 22 imports that
169[audio_hal_exe_calls.md](audio_hal_exe_calls.md) counts, which Leonida serves too: `AcpHal.dll`
170(`src/modules/audio.rs`: the APU heap, the SHAPE context arrays, the coprocessor's command and message queues, XMA
171decoding; here `runtime/shims/acphal.cpp`), `xapu.dll` (`apu.rs`: an Opus decode queue; here
172`runtime/shims/xapu_queue.cpp`), `chad.dll` (`dsp.rs`: the command protocol, with silent output; here
173`runtime/shims/xapu_chad.cpp`), `XCRDAPI.dll` (`dstorage.rs`; here `runtime/shims/dstorage.cpp`) and `xg_xs.dll`
174(`xg.rs`; here `runtime/shims/xg_xs.cpp`). Its signatures agree with the call-site shapes measured there:
175`ApuCreateHeap(cached, non_cached)` gets `0x226e00` as its second argument, `ApuAlloc(out, apu_address, size,
176alignment, flags)` passes a null device-address pointer and an alignment of `0x800`, and the second argument of
177`ApuIsVirtualAddressValid` is an alignment. Two calls pass one argument more than it reads (`AcpHalCreate`'s second,
178`XApuDisconnect`'s `0x20`). The `xapu.dll` layouts in `xapu_queue.cpp`, including the 24-byte first argument of
179`XApuConnect` read as an input (processing kind, 1 being Opus decoding, stream count, commands per stream, memory
180size, frames per output and options), come from `apu.rs`; [audio_hal_exe_calls.md](audio_hal_exe_calls.md) lists
181them against the shapes. Its shader counts (world mesh 8,191 of 8,506, vertex and pixel 10,617 of 12,346, compute
1821,643 of 2,539) come from its own DXIL translator and say nothing about Leonida's.
183
184A fact from it is a hypothesis until a Leonida test or run confirms it: the README reports one machine, and most of
185the repository was written within its first two days.
186
156[victory-workspace]: https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/Cargo.toml 187[victory-workspace]: https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/Cargo.toml
157[victory-readme]: https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/README.md#license 188[victory-readme]: https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/README.md#license
158[victory-gpu]: https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/Cargo.toml 189[victory-gpu]: https://github.com/Marvisak/VIctory/blob/ffe310eb2098e52169f4c44db5ffdabf43a72622/crates/victory-gpu/Cargo.toml