[pr-docs][MULDER] docs/larp-port.md: the larp ports already in Darner (T2) #706

Open
Jesper-A wants to merge 1 commit from Jesper-A/Darner:up-t2-larp-port into Main
Collaborator

Task: T2

Research

What larp does. larp v1.1.0 (reference/larp/) has no on/off switch for most of the features Darner ported from it. They are simply how larp works. Examples: the heap feed (crates/larp-gpu/src/heapfeed.rs:1-25), the texture heaps (texheap.rs), the write-combined heap committed on demand (wcdemand.rs:1-18), the alias pool owned by the card (regions.rs:106-125), giving up streamed textures' pages (streamed.rs:147-154, give_up), shared command allocators (allocators.rs), a table's room kept over a reset (host.rs:3550-3563, Reuse), and pipelines made ahead being released (pipeline/make.rs:174-190). Its front end always installs the decoded-result store (apps/larp/src/run.rs:38), the stream pager (run.rs:213) and the descriptor table hooks (run.rs:220). Indirect records run as the title made them, except a list of programs (indirect.rs:461 OVER, indirect.rs:563-570 bounded). Where larp has a switch, it is on by default: two host queues unless LARP_ONE_QUEUE=1 (queues.rs:87-102), and 8 recording threads unless LARP_SUBRENDER_WORKERS says otherwise (apps/larp/src/subrender.rs:622-627). The stream budget is the one that is off unless chosen: the --stream-budget option or the menu (crates/larp-hle/src/settings/extra.rs:71-76).

What Darner does today (Main 33ff92cc4). The ports of 2026-12-05 (commits faa631a0b, ea947e133, 290430956, 2b239cc77, f6d87e70a, 247215f80, e93a8dbcc, 2f22e4111, b43f04d4b, 9d7347c98, 3fa26046a, ace6ee425, d17debbc4) brought 15 of these in, each behind its own DARNER_ switch. 14 are off by default. DARNER_PIPELINE_RELEASE is on unless 0 (crates/darner-gpu/src/pipeline/make.rs:509-510). None is in play mode's SETTINGS (apps/darner/src/play.rs:67) or in the README's switch tables. Several are partial ports: the heap feed is the transport only (crates/darner-gpu/src/host/heapfeed.rs:5-17), table fills are the transient half only (crates/darner-gpu/src/tablefill.rs:1-3), the write-combined heap is the commit on demand only (crates/darner-hle/src/wcdemand.rs:1-4), and the compute queue is a second direct queue, not a compute queue (crates/darner-gpu/src/host/compute_queue.rs:1-22). No page lists them all together.

The difference. larp runs all of these together and (mostly) always. Darner has them as separate switches, off, and some cut down. The ROADMAP's Frozen section says staff's rebar branch deletes or replaces most of the files (A1, A8, A9, A10, A12, D6b, D6c).

Plan. One new file, docs/larp-port.md: one table with each switch, what it does, its larp source, its Darner files, its default and values, known problems (only where a source is named), and what the ROADMAP says rebar does with it. Notes for the cells that are too long, and the commit of each port. Docs only: no code, no switch, no default changed.

Contributor role (optional)

  • Fluxer ID:

What it changes

  • The problem on main: read from the code only. The 15 larp ports are spread over many files and commits, and no page lists them together with their larp sources, defaults and what rebar does with them.

Adds docs/larp-port.md (90 lines, the only file in this pull request). It covers the 15 switches named on the T2 row. Each known problem in it comes from the code, a commit message, or an issue or pull request; none of the switches was run for this page. Where the ROADMAP says nothing about rebar for a port, the cell says "Not stated".

How it was tested

  • Tested revision: af5880f26 (on Main 33ff92cc4).
  • Commands and results: cargo xtask policy --staged, run at commit time: asset policy ok, 1 file. Nothing else was run. The file references were read from the code on Main 33ff92cc4 and from reference/larp/; the game was not run and nothing was built.
  • Changes a default: no.
  • A/B result: not applicable. This is a results and docs task (track T), not a speed claim, and the ROADMAP's "Measuring" paragraph covers tracks A, B and C. No numbers are posted and no summary.json is attached.
  • Gates run on that revision (the three in AGENTS.md; there is no CI): cargo xtask policy --staged only. cargo clippy --workspace --all-targets --locked -- -D warnings, the same with --all-features, and cargo test --workspace --locked were not run: the change is one markdown file.
  • Gameplay, when relevant: not run in the game.
  • Shader wave sizes tested, when relevant: not relevant.
  • Hardware dependence: none (docs).
  • Coverage gaps: the table says what the code and the ROADMAP say. It was not checked by running any switch. The rebar column follows the ROADMAP's Frozen section only, because the branch is not public.

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only). Not ticked: a docs-only change, nothing to run in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found. I searched open and closed pull requests and issues for "larp-port" and "port table" (and "larp ports"); only the ROADMAP (#693) came up. ROADMAP task S3 keeps this page current once it is merged.
  • Replaces or overlaps: none found

Spec dependence

Likely general: docs only, nothing that depends on a card, driver or PC.

This change was made with AI assistance (Claude Code).

Task: T2 ## Research **What larp does.** larp v1.1.0 (`reference/larp/`) has no on/off switch for most of the features Darner ported from it. They are simply how larp works. Examples: the heap feed (`crates/larp-gpu/src/heapfeed.rs:1-25`), the texture heaps (`texheap.rs`), the write-combined heap committed on demand (`wcdemand.rs:1-18`), the alias pool owned by the card (`regions.rs:106-125`), giving up streamed textures' pages (`streamed.rs:147-154`, `give_up`), shared command allocators (`allocators.rs`), a table's room kept over a reset (`host.rs:3550-3563`, `Reuse`), and pipelines made ahead being released (`pipeline/make.rs:174-190`). Its front end always installs the decoded-result store (`apps/larp/src/run.rs:38`), the stream pager (`run.rs:213`) and the descriptor table hooks (`run.rs:220`). Indirect records run as the title made them, except a list of programs (`indirect.rs:461` `OVER`, `indirect.rs:563-570` `bounded`). Where larp has a switch, it is on by default: two host queues unless `LARP_ONE_QUEUE=1` (`queues.rs:87-102`), and 8 recording threads unless `LARP_SUBRENDER_WORKERS` says otherwise (`apps/larp/src/subrender.rs:622-627`). The stream budget is the one that is off unless chosen: the `--stream-budget` option or the menu (`crates/larp-hle/src/settings/extra.rs:71-76`). **What Darner does today (Main 33ff92cc4).** The ports of 2026-12-05 (commits faa631a0b, ea947e133, 290430956, 2b239cc77, f6d87e70a, 247215f80, e93a8dbcc, 2f22e4111, b43f04d4b, 9d7347c98, 3fa26046a, ace6ee425, d17debbc4) brought 15 of these in, each behind its own `DARNER_` switch. 14 are off by default. `DARNER_PIPELINE_RELEASE` is on unless `0` (`crates/darner-gpu/src/pipeline/make.rs:509-510`). None is in play mode's `SETTINGS` (`apps/darner/src/play.rs:67`) or in the README's switch tables. Several are partial ports: the heap feed is the transport only (`crates/darner-gpu/src/host/heapfeed.rs:5-17`), table fills are the transient half only (`crates/darner-gpu/src/tablefill.rs:1-3`), the write-combined heap is the commit on demand only (`crates/darner-hle/src/wcdemand.rs:1-4`), and the compute queue is a second direct queue, not a compute queue (`crates/darner-gpu/src/host/compute_queue.rs:1-22`). No page lists them all together. **The difference.** larp runs all of these together and (mostly) always. Darner has them as separate switches, off, and some cut down. The ROADMAP's Frozen section says staff's rebar branch deletes or replaces most of the files (A1, A8, A9, A10, A12, D6b, D6c). **Plan.** One new file, `docs/larp-port.md`: one table with each switch, what it does, its larp source, its Darner files, its default and values, known problems (only where a source is named), and what the ROADMAP says rebar does with it. Notes for the cells that are too long, and the commit of each port. Docs only: no code, no switch, no default changed. ## Contributor role (optional) - Fluxer ID: ## What it changes - The problem on main: read from the code only. The 15 larp ports are spread over many files and commits, and no page lists them together with their larp sources, defaults and what rebar does with them. Adds `docs/larp-port.md` (90 lines, the only file in this pull request). It covers the 15 switches named on the T2 row. Each known problem in it comes from the code, a commit message, or an issue or pull request; none of the switches was run for this page. Where the ROADMAP says nothing about rebar for a port, the cell says "Not stated". ## How it was tested - Tested revision: af5880f26 (on Main 33ff92cc4). - Commands and results: `cargo xtask policy --staged`, run at commit time: asset policy ok, 1 file. Nothing else was run. The file references were read from the code on Main 33ff92cc4 and from `reference/larp/`; the game was not run and nothing was built. - Changes a default: no. - A/B result: not applicable. This is a results and docs task (track T), not a speed claim, and the ROADMAP's "Measuring" paragraph covers tracks A, B and C. No numbers are posted and no `summary.json` is attached. - Gates run on that revision (the three in AGENTS.md; there is no CI): `cargo xtask policy --staged` only. `cargo clippy --workspace --all-targets --locked -- -D warnings`, the same with `--all-features`, and `cargo test --workspace --locked` were not run: the change is one markdown file. - Gameplay, when relevant: not run in the game. - Shader wave sizes tested, when relevant: not relevant. - Hardware dependence: none (docs). - Coverage gaps: the table says what the code and the ROADMAP say. It was not checked by running any switch. The rebar column follows the ROADMAP's Frozen section only, because the branch is not public. ## Checklist - [ ] I ran this change in the game, or say below why it can't be (docs, tests only). Not ticked: a docs-only change, nothing to run in the game. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found. I searched open and closed pull requests and issues for "larp-port" and "port table" (and "larp ports"); only the ROADMAP (#693) came up. ROADMAP task S3 keeps this page current once it is merged. - Replaces or overlaps: none found ## Spec dependence Likely general: docs only, nothing that depends on a card, driver or PC. This change was made with AI assistance (Claude Code).
One table of the fifteen larp v1.1.0 ports on Main: what each does, its larp source under reference/larp/,
its Darner files, default and values, known problems (only those written down in the code, commit messages,
issues or pull requests) and what the ROADMAP's Frozen section says staff's rebar branch does with it.
Notes on the switches whose cells would be too long, and the commit that brought each port.

This change was made with AI assistance (Claude Code).
Owner

Next task for @Jesper-A: T3 — Where Darner's RAM goes: from a 1-hour scripts\bench.ps1 run, break the commit down (title copies, upload buffers, pipelines, textures, card spill) with DARNER_MEM_OWNERS=1 and the memory lines; post a table (needs: game)

Next task for @Jesper-A: T3 — Where Darner's RAM goes: from a 1-hour `scripts\bench.ps1` run, break the commit down (title copies, upload buffers, pipelines, textures, card spill) with `DARNER_MEM_OWNERS=1` and the memory lines; post a table (needs: game)
This pull request can be merged automatically.
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 'up-t2-larp-port:Jesper-A-up-t2-larp-port'
git switch 'Jesper-A-up-t2-larp-port'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'Jesper-A-up-t2-larp-port'
git switch 'Jesper-A-up-t2-larp-port'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'Jesper-A-up-t2-larp-port'
git switch 'Jesper-A-up-t2-larp-port'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'Jesper-A-up-t2-larp-port'
git switch 'Main'
git merge --squash 'Jesper-A-up-t2-larp-port'
git switch 'Main'
git merge --ff-only 'Jesper-A-up-t2-larp-port'
git switch 'Main'
git merge 'Jesper-A-up-t2-larp-port'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!706
No description provided.