docs: title memory layout for 1.0.2.1 (static analysis, unverified) #1271

Open
github-bot wants to merge 1 commit from github-bot/gh-1271 into main AGit
Owner

@⁠Jonirulah on GitHub · 2026-11-26 07:40 UTC · original
Jonirulah:docs-title-memory-layout → main · +157 −0 · 1 files · 1 commits · open

What this adds

docs/title-memory-layout.md: a reference for what the title (build 1.0.2.1) keeps where in memory, so the layer can read the engine's own state instead of inferring it.

  • The 174 MiB buffer the layer logs as title buffer X+0xae00000: where it is created, and its three parts (27 MiB of per-list dynamic data written by the CPU, then 47 and 100 MiB of per-frame draw data), plus the whole-buffer SRV and UAV the title creates over it.
  • Streaming state: asset stores and the global resource index, the loaded bitmap, the request engine and its steps, and the disk reads in flight.
  • Ped skinning buffers: the two output buffers, their per-frame cursors and the job records.

Status

Static analysis only. Nothing in it is verified at run time: I have the executable but not the game data, and the image was never executed. Every section says what was seen and what is a guess, and the document ends with eight read-only checks (expected values at given addresses) that would confirm or refute it. If someone with the title can run them, I will correct whatever fails.

This is documentation. It changes no code and proposes no fix.

Asset policy

The document holds no title code, listing, string or table: only addresses, field offsets and sizes, described in our own words, with names we chose. asset-policy.md allows per-build offsets of functions we hook; this lists addresses of functions and globals the layer does not hook (yet). If that is more than the policy intends, tell me what to cut.

Possible follow-up

A read-only, off-by-default diagnostic that logs the values in the checks, so one run confirms the document. Not included here.

AI-assisted, with human direction and review.

🤖 Generated with Claude Code

**@⁠Jonirulah** on GitHub · 2026-11-26 07:40 UTC · [original](https://github.com/fxceless/victory-fork/pull/1271) `Jonirulah:docs-title-memory-layout` → `main` · +157 −0 · 1 files · 1 commits · open ## What this adds `docs/title-memory-layout.md`: a reference for what the title (build 1.0.2.1) keeps where in memory, so the layer can read the engine's own state instead of inferring it. - **The 174 MiB buffer** the layer logs as `title buffer X+0xae00000`: where it is created, and its three parts (27 MiB of per-list dynamic data written by the CPU, then 47 and 100 MiB of per-frame draw data), plus the whole-buffer SRV and UAV the title creates over it. - **Streaming state**: asset stores and the global resource index, the loaded bitmap, the request engine and its steps, and the disk reads in flight. - **Ped skinning buffers**: the two output buffers, their per-frame cursors and the job records. ## Status **Static analysis only. Nothing in it is verified at run time**: I have the executable but not the game data, and the image was never executed. Every section says what was seen and what is a guess, and the document ends with eight read-only checks (expected values at given addresses) that would confirm or refute it. If someone with the title can run them, I will correct whatever fails. This is documentation. It changes no code and proposes no fix. ## Asset policy The document holds no title code, listing, string or table: only addresses, field offsets and sizes, described in our own words, with names we chose. `asset-policy.md` allows per-build offsets of functions we hook; this lists addresses of functions and globals the layer does not hook (yet). If that is more than the policy intends, tell me what to cut. ## Possible follow-up A read-only, off-by-default diagnostic that logs the values in the checks, so one run confirms the document. Not included here. AI-assisted, with human direction and review. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
What the title keeps where: the 174 MiB buffer that the layer logs as one
title buffer (three parts of 27, 47 and 100 MiB), the streaming state
(asset stores, loaded bitmap, request engine, disk reads in flight) and
the ped skinning buffers. Addresses, field offsets and sizes only, in our
own words; no title code, strings or tables. Nothing is verified at run
time yet; the document ends with read-only checks.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:45:55 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1271/head:github-bot/gh-1271'
git switch 'github-bot/gh-1271'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1271'
git switch 'github-bot/gh-1271'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1271'
git switch 'github-bot/gh-1271'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1271'
git switch 'main'
git merge --squash 'github-bot/gh-1271'
git switch 'main'
git merge --ff-only 'github-bot/gh-1271'
git switch 'main'
git merge 'github-bot/gh-1271'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.