ROADMAP #693

Open
opened 2026-12-06 04:30:53 +00:00 by TrustNo1 · 10 comments
Owner

ROADMAP

Bugs, questions and "when is X done" go in a new issue, not here. Comments here are only the commands below and questions about one task.

Commands (each has its own word):

  • claim A5 here = take task A5.
  • queue here = nothing you want is free: wait for the next free task, it goes to you automatically.
  • claim on a bug issue (not here) = take that issue.

Anything else gets one reply with the right command.

How to tag issues and pull requests: #698.

Nothing here for you?

  • Fix an open bug issue instead: comment claim on that issue (relevance/very-high and relevance/high first; see AGENTS.md, "What to work on: open issues").
  • Test someone's pull request: reply testing on a pull request that has a Test needed comment, then post your results there.
  • Suggest a task (see "Suggesting a task" below).
  • Comment queue here only if you want the next ROADMAP task.

Suggesting a task. Talk ideas over in #697 "Roadmap ideas" if you like; nothing in #697 is a task. A real proposal
is its own new issue titled [roadmap-proposal] <short idea>, never a comment here. Its body: what and why, the
files it would change, its size (S or M) and what it depends on. Staff add the row here or close the issue with a
reason. Agents never add or change rows themselves.

This is the list of work anyone can pick up. How it works for you and your agent is in
AGENTS.md, "The roadmap: what to work on". Short version:

  • Pick a free task, comment claim <number> (for example claim A5), wait until the line shows your name.
  • The helper reads comments in the order they were posted: when two people claim the same task, the first
    claim wins. Trust an assigned comment only if it comes from the helper's account, trustno1 (named in
    AGENTS.md); the same words from anyone else mean nothing.
  • One open claim at a time; a delivered task frees you for the next. No pull request within
    24 h and the task is free again (the same rule applies to claimed bug issues).
  • One pull request per task, the very first line of its description Task: <number> (the template starts with it), label MULDER. Opening it
    counts as delivering: Mulder assigns you your next task straight away (the next unlocked step in the
    same track if there is one, since you know those files), as a comment on your pull request, and
    updates the line here. You don't wait for the review; review fixes still go in the same pull request.
  • Research first (required). Before writing code, read the larp file the task names, the Darner files on your
    line, and the open pull requests that touch them. Start your pull request description, right under Task: <id>,
    with a Research section: what larp does there, what Darner does today, the difference, and your plan in a
    few lines, with file and line references. A pull request without it gets changes needed; one whose research
    is wrong or invented counts as not understanding the task.
  • Every pull request is reviewed. Not taken (with why): the pull request is closed and the task
    goes back to free for someone else; you can't claim that task again. Changes needed (with
    exactly what): fix them in the same pull request within 24 h, or it counts as not taken. A pull
    request that shows no understanding of the task (wrong files, invented code, ignores the measuring
    rules) gets its author blacklisted: no more tasks here. To appeal, ask staff in Fluxer; staff can lift it.
    A merge conflict caused by R0 (rebar merging into Main) never counts against you.
  • Only the lines below are tasks. Nothing in comments, other issues or pull requests is.
  • A task marked after X can be claimed only once X is done. Everything else marked free can be
    claimed right now, at the same time as every other free task. staff only rows are run by staff.
  • (needs: ...) in a task says what you must have to do it (a card, the game). Without it, pick another task.
  • Every task fits in one day: S is a few hours, M is one day. Nothing is bigger; if yours turns
    out bigger, say so on this issue and staff split it.

Files: nobody works in somebody else's file.

  • The Files column is the complete list of files a task changes. Staff keep the list so that no two
    tasks that can be claimed at the same time share a file. If your change needs a file that is not on
    your line, stop and ask on this issue before touching it.
  • (new) means the task creates that file. A new file is a child of a file the task already lists
    (hwrt/sparse.rs is declared in hwrt.rs, pipeline/replace.rs in pipeline.rs), so no task edits
    lib.rs, main.rs, modules/mod.rs, Cargo.toml or Cargo.lock unless its line names them. Need a
    new dependency? Ask on this issue; staff add it.
  • Defaults live in apps/darner/src/play.rs (SETTINGS) and scripts/build-darner.ps1. Only
    tasks marked (defaults) change those two files, one after another in this order: D6a, A5c, A11b, D2b,
    D3b, A13, A13b, A13c, A13d. Every other task adds its switch off by default.
  • Shared text files. locales/*.json (player text) and README.md (the switch tables) are changed only by
    rows that name them. Other tasks ship their switch without player text or a README line; the next M row adds them.
  • The F1 menu (crates/darner-gpu/src/host/menu.rs, host/panel.rs, crates/darner-gpu/src/settings.rs)
    is changed only by F6a, then F6b, then M1. A new feature ships as a DARNER_ switch; its F1 row comes in M1.
  • (rebar also edits: OK to change) after a file means staff's rebar branch (not on Main yet) changes that file
    too. It is not frozen: claim the task and change the file. Keep the change to what the task needs; rebar merges Main in.
    Tasks that would redo work rebar already does are under Frozen at the end and wait for R0.

Last updated: 2026-12-06 by staff


The goal: everything larp does better, in Darner

larp v1.1.0 (GPL-3.0-or-later, in this repository's read-only reference/larp/ folder) runs the title in
far less RAM and is faster with ray tracing on. Two things make most of that difference:

  • Its memory model. It feeds the title's graphics heap to the card instead of guarding and
    copying its pages. It keeps compiled pipelines on disk instead of in RAM. It backs ray-tracing and
    geometry buffers with tiled memory and cuts textures from pooled heaps. Darner keeps copies of
    title memory (shadow/watch) and re-copies what the title writes. That is why Darner's commit
    climbs from about 12 GB to 50–60 GB in long sessions.
  • Its shader rework. It ships 85 hand-written replacement programs (157 files with their
    binding files and two shared headers) for the title's heaviest shaders: the ray-traced shadows use
    the card's own ray tracing instead of walking the console's structures in shader code. Its
    translator has fixes too. Darner has no replacement-shader system at all yet.

Some older larp code is already in Darner behind switches that are off by default. Turning more
switches on will not get us there: the memory model and the replacement shaders have to become how
Darner works. That is what tracks A and B are for.

Done means: at the Series X profile and native 1440p (no upscaling), with ray tracing on (bench: -Dlss off -RayTracing on):

  • Darner's private bytes (bench's private_gb) stay under 12 GB, and both they and the PC's commit charge
    (commit_gb) stay flat for 2 hours: a soak run (T8) whose slope is under 0.1 GB an hour;
  • the game fits inside a 12 GB card (Darner's own figure, vram_used_mb, not the whole card);
  • fps is at least larp's on the same PC;
  • no new crash: zero crash records (bench's crashes) in 2 runs of 2 hours on each of the two main cards, and in 1 run of 45 minutes on the 8 GB card and on the PC without Resizable BAR; and no new
    flicker (bench -Flicker: no more events than before);
  • all of it is on by default.

Measuring (every task in tracks A, B and C): run scripts\bench.ps1 (see its help) before and
after your change, same save, same settings, same card. Post Darner's private bytes, the PC's commit, card memory, fps
(median and p99) and the run length in the pull request, and attach both runs' summary.json. A difference smaller
than the noise floor (T7) is no difference. Use what Main already has:

  • flicker and black frames: -Flicker (DARNER_FLICKER_DETECT=1, host/flicker.rs); objects that pop in: DARNER_POP_WATCH;
  • both settings in one run: DARNER_AB (ab.rs); replays: darner replay --compare --shaders <folder>;
  • picture check for B5–B8: a replay with and without the replacements (--compare --shaders), plus flicker runs; post what differs.

A task that turns something on by default needs results from two different cards: one NVIDIA, plus one AMD or a
second NVIDIA generation. Before any default flips (A13–A13d) or an old path is removed (A14a, A14b) there must
also be results from an 8 GB card, from a PC without Resizable BAR, and from every vendor the change touches
(NVIDIA, AMD, Intel), and the old path stays reachable behind a switch as the fallback. Ask for testers on this issue
if you have only one card.

Paths: reference/larp/... is larp v1.1.0, read-only (see reference/README.md); everything else is Darner's own code on Main.

Milestone 0: the numbers to beat

# Task Files Size Status
T0 larp v1.1.0's code, shaders and LICENSE in reference/larp/, read-only, with where it came from reference/ S done
T1a Staff-run. larp against Darner, card 1 (NVIDIA): staff run larp v1.1.0 and today's Darner Main on the same PC, save, settings and route; post commit, private bytes, card memory and fps over 30+ minutes for each. Contributors' agents never run larp none (results only) S staff only
T1b Staff-run. The same as T1a on an AMD card. Contributors' agents never run larp none (results only) S staff only
T1c Staff-run. The same as T1a on a second NVIDIA generation. Contributors' agents never run larp none (results only) S staff only
T1d Small card: today's Darner Main on an 8 GB card (Series X profile, then Series S) and on a PC without Resizable BAR: private bytes, commit, card memory, fps and crash records over 30+ minutes (needs: 8 GB card or no-ReBAR PC, game) none (results only) S free
T2 List every larp port already in Darner in one table: what each does, its larp file, its Darner file, on/off, known problems, and whether staff's rebar branch keeps it. The switches: DARNER_HEAP_FEED, DARNER_TEXHEAP, DARNER_ALIAS_ON_CARD, DARNER_TEX_DISCARD, DARNER_WC_ON_DEMAND, DARNER_DSTORAGE_CACHE, DARNER_TABLEFILL, DARNER_INDIRECT_DIRECT, DARNER_SHARED_ALLOCATORS, DARNER_LIST_REUSE, DARNER_RECORD_THREADS, DARNER_COMPUTE_QUEUE, DARNER_STREAM_BUDGET_MB, DARNER_STREAM_ARENA, DARNER_PIPELINE_RELEASE (this one is already on by default, pipeline/make.rs) docs/larp-port.md (new) S PR #706 in review
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) none (results only) S claimed by @Jesper-A (2026-12-06 05:47Z)
T4 Back buffers: 2 against 8 (DARNER_SWAP_BUFFERS) on the same route: fps median and p99, pauses, card memory (needs: game) none (results only) S free
T5 Queue overlap: on your card, does work on two direct queues overlap as well as a direct plus a compute queue? Measure with a small test program kept outside the repository; post the program's source and the timings (needs: a card) none (results only) S free
T6 Mesh program census: for every mesh and amplification program the title creates, its declared outputs, groupshared size and payload size, as a table with the program hashes (read from the programs in your own shader cache; no shader code or other game data in the post) (needs: game) none (results only) S free
T7 The noise floor: the same bench run 5 times on one PC with no change (the first run after a new translator thrown away): the spread of median fps, p99, private bytes and card memory. That spread is what a result has to beat (needs: game) none (results only) S free
T8 A soak mode for bench: -Soak runs 2 hours and keeps moving (repeats the route instead of standing still when it ends), and the summary gives the slope of private bytes, commit and card memory per hour scripts/bench.ps1 (rebar also edits: OK to change) M free
T9 Bench presets: -Goal sets what "Done means" measures (Series X profile, native 1440p, -Dlss off, -RayTracing on); the summary says which preset a run used scripts/bench.ps1 (rebar also edits: OK to change) S after T8
T10 Darner's own card memory in bench: bench sets DARNER_BENCH_CSV and the summary gives vram_used_mb (window mean and peak) beside the whole-card figure, so AMD and Intel get a number too scripts/bench.ps1 (rebar also edits: OK to change) S after T9

Track A: the memory model

The heap feed and its first follow-up are being done on the rebar branch (A1, A2 under Frozen).
A3 onwards build on them.

# Task Files Size Status
A3a With the feed on, stop mirroring the graphics heap, shadow side: no host copy of the ranges the feed already put on the card; measure commit over 1 hour crates/darner-gpu/src/shadow.rs (rebar also edits: OK to change) M after A2
A3b The same, resource side: title resources in the fed heap made without a host copy crates/darner-gpu/src/resource.rs (rebar also edits: OK to change) M after A3a
A4 Copy-backs and readbacks without the mirror, as reference/larp/crates/larp-gpu/src/copyback/readbacks.rs (and copyback/readbacks/tests.rs, copyback.rs, copyback/buffers.rs, and reference/larp/apps/larp/src/copyback.rs): title readbacks and copy-backs read what the card holds instead of the host mirror, with tests for both. Anything else A3 broke outside these three files goes on this issue as a new row, not into this task crates/darner-gpu/src/land.rs (rebar also edits: OK to change), crates/darner-gpu/src/land/reads.rs, crates/darner-gpu/src/texback.rs (rebar also edits: OK to change) M after A3b
A5 Pipelines on disk: compare reference/larp/crates/larp-gpu/src/pipeline/created.rs (with created/tests.rs, created/retry_tests.rs), pipeline/make.rs and pipeline/blobs.rs with Darner's pipeline book and library, port what Darner lacks (the blobs are A5b); measure RAM after a full preload crates/darner-gpu/src/pipeline/make.rs (rebar also edits: OK to change), crates/darner-gpu/src/pipeline/library.rs, crates/darner-gpu/src/pipeline/known.rs M free
A5b Pipelines that survive a translator change: one cached blob per pipeline, named by what its description holds, as reference/larp/crates/larp-gpu/src/pipeline/blobs.rs, behind a DARNER_ switch; a translator change then remakes only the pipelines whose translation changed. Measure the second start after a translator change crates/darner-gpu/src/pipeline/make.rs (rebar also edits: OK to change), crates/darner-gpu/src/pipeline/library.rs, crates/darner-gpu/src/pipeline/blobs.rs (new) M after A5
A5c (defaults) On by default: A5's and A5b's switches, and play's clean-up after a translator change (clear_stale_shaders) keeps the blob folder; two cards apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after A5b, D6a
A6 Tiled (reserved) memory for the ray-tracing structures and the positions pool, as reference/larp/crates/larp-gpu/src/sparse.rs (its crate::rt users); measure card memory with RT on crates/darner-gpu/src/hwrt.rs (rebar also edits: OK to change), crates/darner-gpu/src/hwrt/sparse.rs (new) M free
A11 Host memory accounts and the card budget: larp v1.1.0's reference/larp/crates/larp-gpu/src/hostmem.rs and cardmem.rs against Darner's ledger and admission; port what is missing (larp's pager.rs belongs to the stream pager, under Frozen) crates/darner-gpu/src/cardledger.rs (rebar also edits: OK to change), crates/darner-gpu/src/residency.rs M free
A11b (defaults) On by default: A11's switches; two cards plus the small-card results apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after A11, A5c
A13 (defaults) On by default: the heap feed with no guards or mirror (A3a, A3b, A4) becomes the default path; the old shadow path stays behind a switch for one release; two cards, 2-hour soak runs, small-card results apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 M after A3b, A4, D3b
A13b (defaults) On by default: tiled memory (A6, A7); the untiled path stays behind a switch; two cards with RT on (45-minute runs), small-card results apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after A6, A7, A13
A13c (defaults) On by default: the texture pools (A8); the old path stays behind a switch; two cards (45-minute runs), small-card results apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after A8, A13b
A13d (defaults) On by default: the stream pager (A9); the old path stays behind a switch; two cards, 2-hour soak runs, small-card results. A10's and A12's flips are restated at R0 apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after A9, A13c
A14a Remove the old guarded path for the graphics heap once A13 has been in a release with no regressions, and only with the results the Measuring rules ask for before removing a path (8 GB card, no-ReBAR PC, every vendor) crates/darner-gpu/src/watch.rs (rebar also edits: OK to change) M after A13 (staff)
A14b Remove the old mirrored path for the graphics heap, as A14a crates/darner-gpu/src/shadow.rs (rebar also edits: OK to change) M after A13 (staff)

Track B: replacement shaders

The replacements are named by the title program's hash. B5 to B8 each own their own files, so they all
run at once once B4 is in. Each <hash> line means every file larp has for that program
(shaders/replace/<hash>.<stage>.hlsl and, where larp has them, its .interface and .views files),
ported from reference/larp/shaders/replace/. B5 to B8 each post the picture check from "Measuring".

# Task Files Size Status
B1a The loader: port the matching by hash and the folder lookup of reference/larp/crates/larp-gpu/src/shader_replace.rs, behind DARNER_SHADER_REPLACE=<folder> and 0; with no folder nothing changes crates/darner-gpu/src/pipeline.rs (rebar also edits: OK to change), crates/darner-gpu/src/pipeline/replace.rs (new) M free
B1b The binding files: the .interface and .views files that say what a replacement reads, and the interface for a program the translator refuses (shader_replace.rs, shaders/replace/README.md) crates/darner-gpu/src/pipeline/replace.rs M after B1a
B2 The cache key: a replaced shader's cache entry carries the replacement's hash (as reference/larp/crates/larp-gpu/src/shader_cache.rs) crates/darner-gpu/src/shader_cache.rs (rebar also edits: OK to change) S after B1a
B3 Built into the exe: the replacement folder compiled by darner-gpu's build and unpacked to the cache folder on start, so players need no extra folder; the folder's README from larp's, made Darner's crates/darner-gpu/build.rs (rebar also edits: OK to change), crates/darner-gpu/src/pipeline/replace.rs, shaders/replace/README.md (new) M after B1b
B4 The shared heap-layout header every replacement includes, made to match Darner's view heap (larp's has 1,000,000 and 2,097,152 slot variants) shaders/replace/view_heap_layout.hlsli (new) S after B3
B5 Ray-traced shadows, the programs that walk the light's structure: 002e93a6cc2aa355, 07c93bfb77fecebb, 0e64f14fae060d04, 4e816e1ef600ddcf, 559d9f0184e15fe3, 96ccb14ef981fd85, dbdbf36298727135, with their header; check the picture and fps with RT on shaders/replace/trace_shadow_rays.hlsli (new) and those 7 programs' files (new) M after B4
B6a RT shadow traces, part 1: 1250dc0656b3c091, 17829ac71aab4e8d, 221925bf9ed4e06e, 22f3f0f74693bff9, 32ed072b9f845048, 43ce3255529b200a, 51ada146938b49a2 those 7 programs' files (new) M after B4
B6b RT shadow traces, part 2: 534b3645dd344ab2, 5f13c9550dc4ab39, 693d1d787d4a22eb, 7ec122fc9eedf367, 813783478ebb80e6, 881646f629ed5b13, 9701445db7a7e2f9 those 7 programs' files (new) M after B4
B6c RT shadow traces, part 3: 9ad3577822ed8af2, a1b20bc47e3c9597, a41f0b553a07e79d, a96bb7e19625fc8d, afeea48bbb9913ad, b0f711280e298008, b1e1f8b58b12a8bb those 7 programs' files (new) M after B4
B6d RT shadow traces, part 4: c2d3fdeffa839418, d50c03da6d935d87, e8c962358d862e3f, e9c39e7efe3c508d, f607780aa8e502d0, f656e96a62bb116b, fb515ca95d694c18, ffd9788ba9fec033 those 8 programs' files (new) M after B4
B6e Traced hits (V-buffer) and closest depth: 02737aba304c298a, 08e50a381bf0a55d, 0fa0a1fcb90a8d21, 381ef16494cc782d, 41d9434155880e8a, 6d7fe7745ab9c6d8, 8e5d070d8d4793ea those 7 programs' files (new) M after B4
B6f Screen-probe traces: 0f9382de73901605, f76abe011ea678b3, ca91c1392fd098a4, d5f6125b52723fc9, 306e8053bb5c7b83, 3adb6fc86da11a5b, 9ac4b1d124bf5473, f22a76fcb967ee59 those 8 programs' files (new) M after B4
B6g Gathers of traced hits: 3592426e3e9142d8, 36f04a4ed0ad1d9b, 3d121c93c7f9a057, aeb93e0888250bd3, a74a0746279f960d, b58eb3ca6ee46427 those 6 programs' files (new) M after B4
B6h Deferred gathers, reflections pre-pass and collision rays: 47c46db387f30d7e, 645f920002a6a43f, be1e7049f0bd75d0, c44697c4f620d86e, be59cd593738e557, caf96a3229145fa6 those 6 programs' files (new) M after B4
B7a Lighting and post-processing, part 1: 0873f80dd84a3c5c, 136986812880cead, 191ecaed66eea3b1, 2561af9577c47289, 7c1419b5888b6d38, 7c649c422f6208e4, a1bf269d5b19f025, b8f3f7979d6bbc50 those 8 programs' files (new) M after B4
B7b Decals and the rest: 1f1fbd86759b3da2, b96880482a17f632, c4183d3cbee28e8e, e4a9f58e3acfcf7b, b1eb5db361c10621, c07823591d4c66c0, c3f65a5eb6b8cbb3 those 7 programs' files (new) M after B4
B8 Water: 07fb4c723c4241ed, 6871d6e4b3ac9a10, 926c46bab3b86bd6, a10179ab7eda0dc3, d3c330847c597f3c, d72397c79be4bd1a, ecbdc68c0c21db6f those 7 programs' files (new) M after B4
B9 On by default: the built-in replacements used unless DARNER_SHADER_REPLACE=0 (the switch read with toggled! in the loader, no play.rs line); two cards, RT on and off crates/darner-gpu/src/pipeline/replace.rs S after B2, B5, B6a–B6h, B7a, B7b, B8
B10 Compute shaders failing with E_OUTOFMEMORY in player logs (7f61193d2c0e5f22, c1eee35dbc50a9ef; larp has no replacement for either): find why they are that big and post what a translator fix would be; staff turn a fix into a C line none (results only) S free

Track C: translator fixes (one pull request per fix, each with its test)

# Task Files Size Status
C1 Buffer reads across a page: larp's split of 1–4 dword accesses (reference/larp/crates/larp-shader/src/emit/lower.rs), with larp's tests/page_boundaries.rs, tests/page_boundaries/ and emit/buffer_tests.rs crates/darner-shader/src/emit/lower.rs (rebar also edits: OK to change), crates/darner-shader/src/emit/lower/buffer_tests.rs (new), crates/darner-shader/tests/page_boundaries.rs (new), crates/darner-shader/tests/page_boundaries/dispatch.rs (new), crates/darner-shader/tests/page_boundaries/dxil.rs (new), crates/darner-shader/tests/page_boundaries/page_boundary_input.rs (new) M claimed by @trustno1 (2026-12-06 05:19Z)
C2 Normalized formats converted as the console does (the nearest-float quotient in larp's emit/lower.rs; Darner's is in Lower's unorm/snorm loads) crates/darner-shader/src/emit/lower.rs (rebar also edits: OK to change) S after C1
C3 The wave64 stall guard: programs left at 64 lanes on 32-lane cards still get a pipeline (reference/larp/crates/larp-shader/src/ir.rs, stall_guard_off). The rebar branch works on wave64 speed (lane pairs) in the same translator forms: say on this issue what you change so the two fit crates/darner-shader/src/ir.rs, crates/darner-shader/src/fold.rs, crates/darner-shader/src/emit/wave64_tests.rs M free
C4 List the rest of larp v1.1.0's translator changes (emit/mod.rs, emit/shader.rs, ir.rs, emit/by_hash/, emit/sites.rs, emit/sites/table.rs, emit/halves.rs, emit/made.rs, emit/alike.rs) that Darner lacks, each with the Darner file it would change; leave out the wave64 lane pairs (emit/wave.rs, being done on rebar) docs/larp-translator.md (new) S claimed by @tupacfan04 (2026-12-06 05:59Z)
C5 Port C4's ir.rs items crates/darner-shader/src/ir.rs M after C3, C4
C6 Port C4's emit/mod.rs and emit/shader.rs items crates/darner-shader/src/emit/mod.rs (rebar also edits: OK to change), crates/darner-shader/src/emit/shader.rs (rebar also edits: OK to change) M after C4
C9 The program that loops to the 4,096 cap: find which title program it is (hash), where the loop is in its code and what should bound it; post it here for staff (rebar does the fix) (needs: game) none (results only) S free
C10 Ray tracing, larp against Darner: larp's reference/larp/crates/larp-gpu/src/rt.rs, reference/larp/crates/larp-gpu/src/bvh.rs, reference/larp/crates/larp-shader/src/bvh.rs and reference/larp/crates/larp-shader/src/emit/sites.rs against Darner's crates/darner-gpu/src/hwrt.rs, crates/darner-gpu/src/dxr.rs and crates/darner-hle/src/modules/xboxbvh.rs: what larp does differently and faster, each item with the Darner file it would change docs/larp-raytracing.md (new) S free

Track D: submission and CPU time

# Task Files Size Status
D2 Release of held uploads, as larp's LARP_OPT_RELEASE_HELD (try-lock release, low-priority reaper thread) crates/darner-gpu/src/queue.rs (rebar also edits: OK to change), crates/darner-gpu/src/queue/behind.rs (rebar also edits: OK to change) M free
D2b (defaults) On by default: D2's switch; two cards apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after D2, A11b
D3 List waits and the queue: larp v1.1.0's list.rs/queue.rs changes with list/wait_tests.rs crates/darner-gpu/src/list.rs (rebar also edits: OK to change), crates/darner-gpu/src/queue.rs (rebar also edits: OK to change), crates/darner-gpu/src/list/wait_tests.rs (new) M after D2
D3b (defaults) On by default: D3's switches; two cards apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S after D3, D2b
D5 One place for the speed switches, as larp's perf_flags.rs: check what it gives that toggled!/asked_for! do not; port that, or close this line with the answer crates/darner-gpu/src/switch.rs S free
D6a (defaults) DARNER_LIST_REUSE measured on two cards, then on by default or removed crates/darner-gpu/src/host.rs (rebar also edits: OK to change), apps/darner/src/play.rs (rebar also edits: OK to change), scripts/build-darner.ps1 S free

Track E: frame generation and output

Frame generation rule (E1, E2b): DLSS frame generation stays on Streamline. larp's direct NGX path is not
ported unless it was first tested on an RTX 30 card with MFG Unlocker and that still works; a change that breaks it is not taken.

# Task Files Size Status
E1 larp's frame generation (slfg.rs, slfg/abi.rs, mvfg.rs with mvfg.hlsl, hudless.rs, hud_layout.rs, dlssfg.rs, fsrfg.rs) against Darner's (streamline.rs, streamline/fsr.rs, streamline/fg_rect.rs): write up what is better and why, and for each item whether it needs larp's direct NGX path (see the rule above) docs/larp-framegen.md (new) M free
E2a Port what E1 finds better in FSR 3 frame generation (fsrfg.rs) crates/darner-gpu/src/streamline/fsr.rs, crates/darner-gpu/src/streamline/fsr/camera.rs M after E1
E2b Port what E1 finds better in DLSS frame generation and the interface-free frame (slfg.rs, dlssfg.rs, hudless.rs, hud_layout.rs), keeping Streamline; test on an RTX 30 card with MFG Unlocker (see the rule above) (needs: RTX card) crates/darner-gpu/src/streamline.rs (rebar also edits: OK to change), crates/darner-gpu/src/streamline/fg_rect.rs (rebar also edits: OK to change) M after E1, E5c
E2c larp's own motion-vector frame generation (mvfg.rs, mvfg.hlsl), if E1 finds it worth having crates/darner-gpu/src/streamline.rs (rebar also edits: OK to change), crates/darner-gpu/src/streamline/mvfg.rs (new), crates/darner-gpu/src/streamline/mvfg.hlsl (new) M after E2b
E3 HDR output and output modes (reference/larp/crates/larp-gpu/src/hdr.rs, output_mode.rs: a 1080p scene with a 4K interface plane, and planes.rs) crates/darner-gpu/src/host/hdr.rs, crates/darner-gpu/src/dxgi.rs, crates/darner-gpu/src/compose.rs (rebar also edits: OK to change), crates/darner-gpu/src/compose/output_mode.rs (new) M free
E4a TDR handling (reference/larp/crates/larp-gpu/src/tdr.rs): what it catches that Darner doesn't; port it crates/darner-gpu/src/tdr.rs S free
E5a Sharpening: larp v1.1.0's sharpen.rs changes crates/darner-gpu/src/sharpen.rs (rebar also edits: OK to change) S free
E5b FSR upscaling and the host FidelityFX runtime: larp v1.1.0's fsr.rs and ffx.rs changes crates/darner-hle/src/modules/fidelityfx.rs, crates/darner-hle/src/modules/fidelityfx/pc.rs M free
E5c DLSS upscaling and Reflex: larp v1.1.0's dlss.rs and reflex.rs changes crates/darner-gpu/src/streamline.rs (rebar also edits: OK to change), crates/darner-gpu/src/streamline/plan.rs M free

Track F: everything else larp v1.1.0 added (compare first, port what Darner lacks)

# Task Files Size Status
F1 Audio: list larp's fixes in reference/larp/crates/larp-hle/src/modules/audio.rs, apu.rs, dsp.rs and reference/larp/crates/larp-formats/src/xma.rs, each with the Darner file it would change docs/larp-audio.md (new) S free
F2a Port F1's audio.rs fixes crates/darner-hle/src/modules/audio.rs, crates/darner-hle/src/modules/audio/output.rs, crates/darner-hle/src/modules/audio/capture.rs M after F1
F2b Port F1's apu.rs, dsp.rs and xma.rs fixes (the decode and effects path) crates/darner-hle/src/modules/apu.rs, crates/darner-hle/src/modules/dsp.rs, crates/darner-hle/src/modules/dsp/convolve.rs, crates/darner-formats/src/xma.rs, crates/darner-formats/src/xma/tables.rs M after F1
F3 Mouse: compare larp's modules/gameinput/mouse.rs, modules/gameinput/taps.rs, mapmouse.rs and mousehook.rs with Darner's mouse and keyboard; list the gaps docs/larp-input.md (new) S free
F4a Port F3's gaps in the title's input (larp's gameinput/mouse.rs, gameinput/taps.rs) crates/darner-hle/src/modules/gameinput.rs (rebar also edits: OK to change), crates/darner-hle/src/modules/gameinput/mouse.rs (new), crates/darner-hle/src/modules/gameinput/taps.rs (new) M after F3
F4b Port F3's gaps in the mouse hooks, the world map's mouse among them (larp's mousehook.rs, mapmouse.rs) crates/darner-hle/src/mousehook.rs, crates/darner-hle/src/mousehook/mapmouse.rs (new) M after F3
F4c Port F3's gaps in Darner's mouse-and-keyboard layer crates/darner-hle/src/modules/mnk.rs S after F3, F5a
F5a Vehicle controls for mouse and keyboard (reference/larp/crates/larp-hle/src/vehicle.rs: keyboard driving and its second control; not Darner's vehicle_notch.rs, which is the pad's throttle notch) crates/darner-hle/src/modules/mnk.rs, crates/darner-hle/src/modules/mnk/vehicle.rs (new) M free
F5b First person (reference/larp/crates/larp-hle/src/firstperson.rs), behind a DARNER_ switch crates/darner-hle/src/firstperson.rs (new), crates/darner-hle/src/lib.rs (rebar also edits: OK to change), crates/darner-game/src/lib.rs (rebar also edits: OK to change) M free
F6a The F1 menu's look: larp's settings/look.rs and settings/menu.rs (larp took Darner's look; port what it improved) crates/darner-gpu/src/host/menu.rs (rebar also edits: OK to change), crates/darner-gpu/src/host/panel.rs (rebar also edits: OK to change) M free
F6b larp's extra settings (reference/larp/crates/larp-hle/src/settings/extra.rs, settings/file.rs, with their parents reference/larp/crates/larp-hle/src/settings.rs and reference/larp/crates/larp-game/src/settings.rs) as F1 rows crates/darner-gpu/src/settings.rs (rebar also edits: OK to change), crates/darner-gpu/src/host/menu.rs (rebar also edits: OK to change), locales/en.json, locales/zh-CN.json M after F6a
F7 Mods folder loader (reference/larp/apps/larp/src/mods.rs), off unless asked for; it must keep crates/darner-hle/tests/no_dll_planting.rs passing (staff decide on the folders it may load from) apps/darner/src/main.rs (rebar also edits: OK to change), apps/darner/src/mods.rs (new) M free
F8a Saves (reference/larp/crates/larp-hle/src/modules/xgamesave.rs) crates/darner-hle/src/modules/xgamesave.rs S free
F8b DirectStorage (modules/dstorage.rs, dstorage/destinations.rs, dstorage/stats.rs) crates/darner-hle/src/modules/dstorage.rs (rebar also edits: OK to change), crates/darner-hle/src/modules/dstorage/destinations.rs (new) M free
F9a Movies: larp's modules/bink.rs against Darner's; port what is missing crates/darner-hle/src/modules/bink.rs S free
F9b The UI theme: larp's modules/theme.rs; port what is missing crates/darner-hle/src/modules/theme.rs S free
F9c The button prompts: larp's crates/larp-game/src/prompts.rs and prompts/; port what is missing crates/darner-game/src/prompts.rs, crates/darner-game/src/prompts/font.rs, crates/darner-game/src/prompts/hook.rs, crates/darner-game/src/prompts/playstation.rs S free
F10 The launcher's helpers: reference/larp/apps/larp/src/advisor.rs, host_name.rs, hud_virtual.rs and reference/larp/crates/larp-core/src/i18n.rs, pad.rs (Darner has its own darner-core i18n.rs and pad.rs): what each does and whether Darner wants it docs/larp-launcher.md (new) S free
F11a Crash handling: larp's crates/larp-loader/src/crash.rs and stacks.rs against Darner's crates/darner-loader/src/crash.rs, crates/darner-loader/src/stacks.rs M free
F11b Loader changes: larp's crates/larp-loader/src/windows.rs and callhook.rs against Darner's crates/darner-loader/src/windows.rs, crates/darner-loader/src/callhook.rs (rebar also edits: OK to change) M free
F12 NVIDIA only: at start, read the game's shader-heap profile (darner nv-profile --status). If missing, show one line offering to set it (fewer crashes with ray tracing, needs admin once) and run nv-profile elevated only if the player says yes; remember a no; never prompt on AMD/Intel or when already set apps/darner/src/nvprofile.rs, apps/darner/src/main.rs (rebar also edits: OK to change), locales/en.json, locales/zh-CN.json S after F7, F6b
M1 F1 rows for the switches of the tasks landed by then (E2a–E2c, E3, F4a–F4c, F5a, F5b, F7, B9), their player text, and their lines in the README switch tables (with the defaults changed by then); later ones get an M2 line crates/darner-gpu/src/host/menu.rs (rebar also edits: OK to change), crates/darner-gpu/src/settings.rs (rebar also edits: OK to change), locales/en.json, locales/zh-CN.json, README.md (rebar also edits: OK to change) S after F6b, F12

Starter tasks (good first contribution)

# Task Files Size Status
S1 Test any open pull request on your PC and post the results (card, settings, before/after) none S always free
S2 Add the crash offsets and fixes from larp's reference/larp/docs/troubleshooting-and-crashes.md that apply to Darner docs/troubleshooting.md, docs/crash-addresses.md S PR #707 in review
S3 Keep docs/larp-port.md (T2) current as tasks land docs/larp-port.md S after T2

Frozen: being done on the rebar branch

Staff's rebar branch (Lucid) already does this work: the heap announcements that replace the heap
feed, the card-owned alias pool and its packed heap, the stream pager in place of the title's windows
(pieces), the descriptor and table model, and a sweep of the older switches, several of which it
removes. These lines wait for R0 so nobody does the same work twice. When R0 is done, staff restate
each line against what rebar brought (some will be closed as done), and they become claimable.

Rebar's own list (not tasks here, don't propose them as new tasks): the slow mesh draws (about 5.5 ms a frame),
small dispatches and drains (keeping a barrier only where a dispatch reads what an earlier one wrote), hoisting
per-binding work in translated shaders and the program that loops to the 4,096 cap, runs of draws or dispatches
as one multi-record ExecuteIndirect, the "copies in the card's memory" scan (card_before), refresh-list
entries that copy nothing, and driver recording cost. If you find something in these areas, post it on this
issue for staff instead of opening a pull request (T4, T5, T6 and C9 are results that feed it).

# Task Files Size Status
R0 rebar merged into Main, through its own pull requests; then staff recheck every line below (staff) — staff
A1 Heap feed up to larp v1.1.0: DARNER_HEAP_FEED against reference/larp/crates/larp-gpu/src/heapfeed.rs. rebar deletes host/heapfeed.rs and adds heap_announce.rs (DARNER_HEAP_ANNOUNCE) crates/darner-gpu/src/host/heapfeed.rs, crates/darner-gpu/src/host.rs, crates/darner-gpu/src/host/send.rs M after R0
A2 With the feed on, stop guarding the graphics heap's pages: no page guards or write faults for memory the feed carries (rebar's DARNER_HEAP_ANNOUNCE=replace); measure write faults and fps crates/darner-gpu/src/watch.rs M after A1
A7 Tiled memory for streamed geometry's buffers (the rest of larp's sparse.rs, with pieces.rs and streamed.rs); rebar brings streamed.rs and the stream pager crates/darner-gpu/src/hwrt/sparse.rs, crates/darner-gpu/src/streamed.rs (comes with rebar) M after R0, A6
A8 Texture heaps as larp's 64 MB pooled placed textures inside the card's budget. rebar deletes texheap.rs and d3d12ma/ and brings poolheap.rs and rebar_pool.rs crates/darner-gpu/src/poolheap.rs (comes with rebar) M after R0
A9 The stream pager and budget against larp's pager.rs (and DARNER_STREAM_BUDGET_MB). rebar deletes crates/darner-hle/src/pager.rs and brings crates/darner-gpu/src/pager.rs and apps/darner/src/stream_pager.rs crates/darner-gpu/src/pager.rs (comes with rebar) M after R0
A10 The alias pool against larp v1.1.0 and Lucid's DARNER_ALIAS_SHARE notes. rebar deletes alias_pool.rs and turns on DARNER_POOL_OWNED (restated at R0) M after R0
A12 The smaller savers DARNER_TEX_DISCARD, DARNER_WC_ON_DEMAND, DARNER_DSTORAGE_CACHE: rebar deletes texdiscard.rs, crates/darner-hle/src/wcdemand.rs and dstorage/store.rs; staff close this line or restate it per switch (restated at R0) S after R0
A15 Streamed mip levels kept on the card only, as larp (reference/larp/crates/larp-gpu/src/mips.rs, reference/larp/crates/larp-game/src/mips.rs, reference/larp/apps/larp/src/mips.rs, reference/larp/crates/larp-gpu/src/texevents.rs): no host copy of mip levels the card already holds (restated at R0) M after R0
D1 View mirror fast path, as larp's LARP_OPT_VIEW_MIRROR (null_kind per slot, stride shadow, lock-free buffer bitset): part of the descriptor model rebar ports crates/darner-gpu/src/descriptor/host.rs M after R0
D4 larp's draw.rs and descriptor.rs changes: the same descriptor and table model crates/darner-gpu/src/draw.rs, crates/darner-gpu/src/descriptor.rs M after R0
D6b (defaults) DARNER_TABLEFILL, DARNER_INDIRECT_DIRECT, DARNER_SHARED_ALLOCATORS, DARNER_COMPUTE_QUEUE: rebar sweeps them and deletes tablefill.rs, indirect/direct.rs, allocators.rs, host/compute_queue.rs (restated at R0) S after R0, D6a
D6c (defaults) DARNER_RECORD_THREADS: rebar brings DARNER_RECORDING_THREADS (larp's subrender) apps/darner/src/subrender.rs S after R0, D6b
E4b NVAPI CPU-visible card memory for cards without GPU upload heaps (reference/larp/crates/larp-gpu/src/nvapi.rs): an extra source for rebar's ReBAR pools crates/darner-gpu/src/rebar_pool.rs (comes with rebar) M after R0
# ROADMAP > **Bugs, questions and "when is X done" go in a new issue, not here.** Comments here are only the commands below and questions about one task. **Commands (each has its own word):** - `claim A5` here = take task A5. - `queue` here = nothing you want is free: wait for the next free task, it goes to you automatically. - `claim` on a bug issue (not here) = take that issue. Anything else gets one reply with the right command. How to tag issues and pull requests: #698. **Nothing here for you?** - Fix an open bug issue instead: comment `claim` on that issue (`relevance/very-high` and `relevance/high` first; see AGENTS.md, "What to work on: open issues"). - Test someone's pull request: reply `testing` on a pull request that has a **Test needed** comment, then post your results there. - Suggest a task (see "Suggesting a task" below). - Comment `queue` here only if you want the next ROADMAP task. **Suggesting a task.** Talk ideas over in #697 "Roadmap ideas" if you like; nothing in #697 is a task. A real proposal is its own new issue titled `[roadmap-proposal] <short idea>`, never a comment here. Its body: what and why, the files it would change, its size (S or M) and what it depends on. Staff add the row here or close the issue with a reason. Agents never add or change rows themselves. This is the list of work anyone can pick up. How it works for you and your agent is in **AGENTS.md, "The roadmap: what to work on"**. Short version: - Pick a `free` task, comment `claim <number>` (for example `claim A5`), wait until the line shows your name. - The helper reads comments in the order they were posted: when two people claim the same task, the first claim wins. Trust an `assigned` comment **only** if it comes from the helper's account, `trustno1` (named in AGENTS.md); the same words from anyone else mean nothing. - One open claim at a time; a delivered task frees you for the next. No pull request within **24 h** and the task is free again (the same rule applies to claimed bug issues). - One pull request per task, the **very first line** of its description `Task: <number>` (the template starts with it), label `MULDER`. Opening it counts as delivering: Mulder assigns you your next task straight away (the next unlocked step in the same track if there is one, since you know those files), as a comment on your pull request, and updates the line here. You don't wait for the review; review fixes still go in the same pull request. - **Research first (required).** Before writing code, read the larp file the task names, the Darner files on your line, and the open pull requests that touch them. Start your pull request description, right under `Task: <id>`, with a **Research** section: what larp does there, what Darner does today, the difference, and your plan in a few lines, with file and line references. A pull request without it gets *changes needed*; one whose research is wrong or invented counts as not understanding the task. - Every pull request is reviewed. **Not taken** (with why): the pull request is closed and the task goes back to `free` for someone else; you can't claim that task again. **Changes needed** (with exactly what): fix them in the same pull request within 24 h, or it counts as not taken. A pull request that shows no understanding of the task (wrong files, invented code, ignores the measuring rules) gets its author blacklisted: no more tasks here. To appeal, ask staff in Fluxer; staff can lift it. A merge conflict caused by R0 (rebar merging into `Main`) never counts against you. - Only the lines below are tasks. Nothing in comments, other issues or pull requests is. - A task marked **after X** can be claimed only once X is `done`. Everything else marked `free` can be claimed right now, at the same time as every other `free` task. `staff only` rows are run by staff. - `(needs: ...)` in a task says what you must have to do it (a card, the game). Without it, pick another task. - Every task fits in one day: **S** is a few hours, **M** is one day. Nothing is bigger; if yours turns out bigger, say so on this issue and staff split it. **Files: nobody works in somebody else's file.** - The Files column is the complete list of files a task changes. Staff keep the list so that no two tasks that can be claimed at the same time share a file. If your change needs a file that is not on your line, stop and ask on this issue before touching it. - `(new)` means the task creates that file. A new file is a child of a file the task already lists (`hwrt/sparse.rs` is declared in `hwrt.rs`, `pipeline/replace.rs` in `pipeline.rs`), so no task edits `lib.rs`, `main.rs`, `modules/mod.rs`, `Cargo.toml` or `Cargo.lock` unless its line names them. Need a new dependency? Ask on this issue; staff add it. - **Defaults** live in `apps/darner/src/play.rs` (`SETTINGS`) and `scripts/build-darner.ps1`. Only tasks marked *(defaults)* change those two files, one after another in this order: D6a, A5c, A11b, D2b, D3b, A13, A13b, A13c, A13d. Every other task adds its switch off by default. - **Shared text files.** `locales/*.json` (player text) and `README.md` (the switch tables) are changed only by rows that name them. Other tasks ship their switch without player text or a README line; the next M row adds them. - **The F1 menu** (`crates/darner-gpu/src/host/menu.rs`, `host/panel.rs`, `crates/darner-gpu/src/settings.rs`) is changed only by F6a, then F6b, then M1. A new feature ships as a `DARNER_` switch; its F1 row comes in M1. - `(rebar also edits: OK to change)` after a file means staff's `rebar` branch (not on `Main` yet) changes that file too. It is **not** frozen: claim the task and change the file. Keep the change to what the task needs; rebar merges `Main` in. Tasks that would redo work rebar already does are under **Frozen** at the end and wait for R0. Last updated: 2026-12-06 by staff --- ## The goal: everything larp does better, in Darner larp v1.1.0 (GPL-3.0-or-later, in this repository's read-only `reference/larp/` folder) runs the title in far less RAM and is faster with ray tracing on. Two things make most of that difference: - **Its memory model.** It feeds the title's graphics heap to the card instead of guarding and copying its pages. It keeps compiled pipelines on disk instead of in RAM. It backs ray-tracing and geometry buffers with tiled memory and cuts textures from pooled heaps. Darner keeps copies of title memory (`shadow`/`watch`) and re-copies what the title writes. That is why Darner's commit climbs from about 12 GB to 50–60 GB in long sessions. - **Its shader rework.** It ships 85 hand-written replacement programs (157 files with their binding files and two shared headers) for the title's heaviest shaders: the ray-traced shadows use the card's own ray tracing instead of walking the console's structures in shader code. Its translator has fixes too. **Darner has no replacement-shader system at all yet.** Some older larp code is already in Darner behind switches that are off by default. Turning more switches on will not get us there: the memory model and the replacement shaders have to become how Darner works. That is what tracks A and B are for. **Done means:** at the Series X profile and native 1440p (no upscaling), with ray tracing on (bench: `-Dlss off -RayTracing on`): - Darner's private bytes (bench's `private_gb`) stay under 12 GB, and both they and the PC's commit charge (`commit_gb`) **stay flat for 2 hours**: a soak run (T8) whose slope is under 0.1 GB an hour; - the game fits inside a 12 GB card (Darner's own figure, `vram_used_mb`, not the whole card); - fps is at least larp's on the same PC; - no new crash: zero crash records (bench's `crashes`) in 2 runs of 2 hours on each of the two main cards, and in 1 run of 45 minutes on the 8 GB card and on the PC without Resizable BAR; and no new flicker (bench `-Flicker`: no more events than before); - all of it is on by default. **Measuring (every task in tracks A, B and C):** run `scripts\bench.ps1` (see its help) before and after your change, same save, same settings, same card. Post Darner's private bytes, the PC's commit, card memory, fps (median and p99) and the run length in the pull request, and attach both runs' `summary.json`. A difference smaller than the noise floor (T7) is no difference. Use what `Main` already has: - flicker and black frames: `-Flicker` (`DARNER_FLICKER_DETECT=1`, `host/flicker.rs`); objects that pop in: `DARNER_POP_WATCH`; - both settings in one run: `DARNER_AB` (`ab.rs`); replays: `darner replay --compare --shaders <folder>`; - **picture check for B5–B8:** a replay with and without the replacements (`--compare --shaders`), plus flicker runs; post what differs. A task that turns something on by default needs results from **two different cards**: one NVIDIA, plus one AMD or a second NVIDIA generation. **Before any default flips (A13–A13d) or an old path is removed (A14a, A14b)** there must also be results from an 8 GB card, from a PC without Resizable BAR, and from every vendor the change touches (NVIDIA, AMD, Intel), and the old path stays reachable behind a switch as the fallback. Ask for testers on this issue if you have only one card. Paths: `reference/larp/...` is larp v1.1.0, read-only (see `reference/README.md`); everything else is Darner's own code on `Main`. ## Milestone 0: the numbers to beat | # | Task | Files | Size | Status | |---|---|---|---|---| | T0 | larp v1.1.0's code, shaders and LICENSE in `reference/larp/`, read-only, with where it came from | `reference/` | S | done | | T1a | **Staff-run. larp against Darner, card 1 (NVIDIA):** staff run larp v1.1.0 and today's Darner `Main` on the same PC, save, settings and route; post commit, private bytes, card memory and fps over 30+ minutes for each. Contributors' agents never run larp | none (results only) | S | staff only | | T1b | **Staff-run.** The same as T1a on an AMD card. Contributors' agents never run larp | none (results only) | S | staff only | | T1c | **Staff-run.** The same as T1a on a second NVIDIA generation. Contributors' agents never run larp | none (results only) | S | staff only | | T1d | **Small card:** today's Darner `Main` on an 8 GB card (Series X profile, then Series S) and on a PC without Resizable BAR: private bytes, commit, card memory, fps and crash records over 30+ minutes (needs: 8 GB card or no-ReBAR PC, game) | none (results only) | S | free | | T2 | List every larp port already in Darner in one table: what each does, its larp file, its Darner file, on/off, known problems, and whether staff's rebar branch keeps it. The switches: `DARNER_HEAP_FEED`, `DARNER_TEXHEAP`, `DARNER_ALIAS_ON_CARD`, `DARNER_TEX_DISCARD`, `DARNER_WC_ON_DEMAND`, `DARNER_DSTORAGE_CACHE`, `DARNER_TABLEFILL`, `DARNER_INDIRECT_DIRECT`, `DARNER_SHARED_ALLOCATORS`, `DARNER_LIST_REUSE`, `DARNER_RECORD_THREADS`, `DARNER_COMPUTE_QUEUE`, `DARNER_STREAM_BUDGET_MB`, `DARNER_STREAM_ARENA`, `DARNER_PIPELINE_RELEASE` (this one is already on by default, `pipeline/make.rs`) | `docs/larp-port.md` (new) | S | PR #706 in review | | 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) | none (results only) | S | claimed by @Jesper-A (2026-12-06 05:47Z) | | T4 | Back buffers: 2 against 8 (`DARNER_SWAP_BUFFERS`) on the same route: fps median and p99, pauses, card memory (needs: game) | none (results only) | S | free | | T5 | Queue overlap: on your card, does work on two direct queues overlap as well as a direct plus a compute queue? Measure with a small test program kept outside the repository; post the program's source and the timings (needs: a card) | none (results only) | S | free | | T6 | Mesh program census: for every mesh and amplification program the title creates, its declared outputs, groupshared size and payload size, as a table with the program hashes (read from the programs in your own shader cache; no shader code or other game data in the post) (needs: game) | none (results only) | S | free | | T7 | The noise floor: the same bench run 5 times on one PC with no change (the first run after a new translator thrown away): the spread of median fps, p99, private bytes and card memory. That spread is what a result has to beat (needs: game) | none (results only) | S | free | | T8 | A soak mode for bench: `-Soak` runs 2 hours and keeps moving (repeats the route instead of standing still when it ends), and the summary gives the slope of private bytes, commit and card memory per hour | `scripts/bench.ps1` (rebar also edits: OK to change) | M | free | | T9 | Bench presets: `-Goal` sets what "Done means" measures (Series X profile, native 1440p, `-Dlss off`, `-RayTracing on`); the summary says which preset a run used | `scripts/bench.ps1` (rebar also edits: OK to change) | S | after T8 | | T10 | Darner's own card memory in bench: bench sets `DARNER_BENCH_CSV` and the summary gives `vram_used_mb` (window mean and peak) beside the whole-card figure, so AMD and Intel get a number too | `scripts/bench.ps1` (rebar also edits: OK to change) | S | after T9 | ## Track A: the memory model The heap feed and its first follow-up are being done on the rebar branch (A1, A2 under **Frozen**). A3 onwards build on them. | # | Task | Files | Size | Status | |---|---|---|---|---| | A3a | With the feed on, stop mirroring the graphics heap, shadow side: no host copy of the ranges the feed already put on the card; measure commit over 1 hour | `crates/darner-gpu/src/shadow.rs` (rebar also edits: OK to change) | M | after A2 | | A3b | The same, resource side: title resources in the fed heap made without a host copy | `crates/darner-gpu/src/resource.rs` (rebar also edits: OK to change) | M | after A3a | | A4 | Copy-backs and readbacks without the mirror, as `reference/larp/crates/larp-gpu/src/copyback/readbacks.rs` (and `copyback/readbacks/tests.rs`, `copyback.rs`, `copyback/buffers.rs`, and `reference/larp/apps/larp/src/copyback.rs`): title readbacks and copy-backs read what the card holds instead of the host mirror, with tests for both. Anything else A3 broke outside these three files goes on this issue as a new row, not into this task | `crates/darner-gpu/src/land.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/land/reads.rs`, `crates/darner-gpu/src/texback.rs` (rebar also edits: OK to change) | M | after A3b | | A5 | Pipelines on disk: compare `reference/larp/crates/larp-gpu/src/pipeline/created.rs` (with `created/tests.rs`, `created/retry_tests.rs`), `pipeline/make.rs` and `pipeline/blobs.rs` with Darner's pipeline book and library, port what Darner lacks (the blobs are A5b); measure RAM after a full preload | `crates/darner-gpu/src/pipeline/make.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/pipeline/library.rs`, `crates/darner-gpu/src/pipeline/known.rs` | M | free | | A5b | Pipelines that survive a translator change: one cached blob per pipeline, named by what its description holds, as `reference/larp/crates/larp-gpu/src/pipeline/blobs.rs`, behind a `DARNER_` switch; a translator change then remakes only the pipelines whose translation changed. Measure the second start after a translator change | `crates/darner-gpu/src/pipeline/make.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/pipeline/library.rs`, `crates/darner-gpu/src/pipeline/blobs.rs` (new) | M | after A5 | | A5c | *(defaults)* **On by default:** A5's and A5b's switches, and play's clean-up after a translator change (`clear_stale_shaders`) keeps the blob folder; two cards | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after A5b, D6a | | A6 | Tiled (reserved) memory for the ray-tracing structures and the positions pool, as `reference/larp/crates/larp-gpu/src/sparse.rs` (its `crate::rt` users); measure card memory with RT on | `crates/darner-gpu/src/hwrt.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/hwrt/sparse.rs` (new) | M | free | | A11 | Host memory accounts and the card budget: larp v1.1.0's `reference/larp/crates/larp-gpu/src/hostmem.rs` and `cardmem.rs` against Darner's ledger and admission; port what is missing (larp's `pager.rs` belongs to the stream pager, under Frozen) | `crates/darner-gpu/src/cardledger.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/residency.rs` | M | free | | A11b | *(defaults)* **On by default:** A11's switches; two cards plus the small-card results | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after A11, A5c | | A13 | *(defaults)* **On by default:** the heap feed with no guards or mirror (A3a, A3b, A4) becomes the default path; the old shadow path stays behind a switch for one release; two cards, 2-hour soak runs, small-card results | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | M | after A3b, A4, D3b | | A13b | *(defaults)* **On by default:** tiled memory (A6, A7); the untiled path stays behind a switch; two cards with RT on (45-minute runs), small-card results | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after A6, A7, A13 | | A13c | *(defaults)* **On by default:** the texture pools (A8); the old path stays behind a switch; two cards (45-minute runs), small-card results | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after A8, A13b | | A13d | *(defaults)* **On by default:** the stream pager (A9); the old path stays behind a switch; two cards, 2-hour soak runs, small-card results. A10's and A12's flips are restated at R0 | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after A9, A13c | | A14a | Remove the old guarded path for the graphics heap once A13 has been in a release with no regressions, and only with the results the Measuring rules ask for before removing a path (8 GB card, no-ReBAR PC, every vendor) | `crates/darner-gpu/src/watch.rs` (rebar also edits: OK to change) | M | after A13 (staff) | | A14b | Remove the old mirrored path for the graphics heap, as A14a | `crates/darner-gpu/src/shadow.rs` (rebar also edits: OK to change) | M | after A13 (staff) | ## Track B: replacement shaders The replacements are named by the title program's hash. B5 to B8 each own their own files, so they all run at once once B4 is in. Each `<hash>` line means every file larp has for that program (`shaders/replace/<hash>.<stage>.hlsl` and, where larp has them, its `.interface` and `.views` files), ported from `reference/larp/shaders/replace/`. B5 to B8 each post the picture check from "Measuring". | # | Task | Files | Size | Status | |---|---|---|---|---| | B1a | The loader: port the matching by hash and the folder lookup of `reference/larp/crates/larp-gpu/src/shader_replace.rs`, behind `DARNER_SHADER_REPLACE=<folder>` and `0`; with no folder nothing changes | `crates/darner-gpu/src/pipeline.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/pipeline/replace.rs` (new) | M | free | | B1b | The binding files: the `.interface` and `.views` files that say what a replacement reads, and the interface for a program the translator refuses (`shader_replace.rs`, `shaders/replace/README.md`) | `crates/darner-gpu/src/pipeline/replace.rs` | M | after B1a | | B2 | The cache key: a replaced shader's cache entry carries the replacement's hash (as `reference/larp/crates/larp-gpu/src/shader_cache.rs`) | `crates/darner-gpu/src/shader_cache.rs` (rebar also edits: OK to change) | S | after B1a | | B3 | Built into the exe: the replacement folder compiled by `darner-gpu`'s build and unpacked to the cache folder on start, so players need no extra folder; the folder's README from larp's, made Darner's | `crates/darner-gpu/build.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/pipeline/replace.rs`, `shaders/replace/README.md` (new) | M | after B1b | | B4 | The shared heap-layout header every replacement includes, made to match Darner's view heap (larp's has 1,000,000 and 2,097,152 slot variants) | `shaders/replace/view_heap_layout.hlsli` (new) | S | after B3 | | B5 | Ray-traced shadows, the programs that walk the light's structure: `002e93a6cc2aa355`, `07c93bfb77fecebb`, `0e64f14fae060d04`, `4e816e1ef600ddcf`, `559d9f0184e15fe3`, `96ccb14ef981fd85`, `dbdbf36298727135`, with their header; check the picture and fps with RT on | `shaders/replace/trace_shadow_rays.hlsli` (new) and those 7 programs' files (new) | M | after B4 | | B6a | RT shadow traces, part 1: `1250dc0656b3c091`, `17829ac71aab4e8d`, `221925bf9ed4e06e`, `22f3f0f74693bff9`, `32ed072b9f845048`, `43ce3255529b200a`, `51ada146938b49a2` | those 7 programs' files (new) | M | after B4 | | B6b | RT shadow traces, part 2: `534b3645dd344ab2`, `5f13c9550dc4ab39`, `693d1d787d4a22eb`, `7ec122fc9eedf367`, `813783478ebb80e6`, `881646f629ed5b13`, `9701445db7a7e2f9` | those 7 programs' files (new) | M | after B4 | | B6c | RT shadow traces, part 3: `9ad3577822ed8af2`, `a1b20bc47e3c9597`, `a41f0b553a07e79d`, `a96bb7e19625fc8d`, `afeea48bbb9913ad`, `b0f711280e298008`, `b1e1f8b58b12a8bb` | those 7 programs' files (new) | M | after B4 | | B6d | RT shadow traces, part 4: `c2d3fdeffa839418`, `d50c03da6d935d87`, `e8c962358d862e3f`, `e9c39e7efe3c508d`, `f607780aa8e502d0`, `f656e96a62bb116b`, `fb515ca95d694c18`, `ffd9788ba9fec033` | those 8 programs' files (new) | M | after B4 | | B6e | Traced hits (V-buffer) and closest depth: `02737aba304c298a`, `08e50a381bf0a55d`, `0fa0a1fcb90a8d21`, `381ef16494cc782d`, `41d9434155880e8a`, `6d7fe7745ab9c6d8`, `8e5d070d8d4793ea` | those 7 programs' files (new) | M | after B4 | | B6f | Screen-probe traces: `0f9382de73901605`, `f76abe011ea678b3`, `ca91c1392fd098a4`, `d5f6125b52723fc9`, `306e8053bb5c7b83`, `3adb6fc86da11a5b`, `9ac4b1d124bf5473`, `f22a76fcb967ee59` | those 8 programs' files (new) | M | after B4 | | B6g | Gathers of traced hits: `3592426e3e9142d8`, `36f04a4ed0ad1d9b`, `3d121c93c7f9a057`, `aeb93e0888250bd3`, `a74a0746279f960d`, `b58eb3ca6ee46427` | those 6 programs' files (new) | M | after B4 | | B6h | Deferred gathers, reflections pre-pass and collision rays: `47c46db387f30d7e`, `645f920002a6a43f`, `be1e7049f0bd75d0`, `c44697c4f620d86e`, `be59cd593738e557`, `caf96a3229145fa6` | those 6 programs' files (new) | M | after B4 | | B7a | Lighting and post-processing, part 1: `0873f80dd84a3c5c`, `136986812880cead`, `191ecaed66eea3b1`, `2561af9577c47289`, `7c1419b5888b6d38`, `7c649c422f6208e4`, `a1bf269d5b19f025`, `b8f3f7979d6bbc50` | those 8 programs' files (new) | M | after B4 | | B7b | Decals and the rest: `1f1fbd86759b3da2`, `b96880482a17f632`, `c4183d3cbee28e8e`, `e4a9f58e3acfcf7b`, `b1eb5db361c10621`, `c07823591d4c66c0`, `c3f65a5eb6b8cbb3` | those 7 programs' files (new) | M | after B4 | | B8 | Water: `07fb4c723c4241ed`, `6871d6e4b3ac9a10`, `926c46bab3b86bd6`, `a10179ab7eda0dc3`, `d3c330847c597f3c`, `d72397c79be4bd1a`, `ecbdc68c0c21db6f` | those 7 programs' files (new) | M | after B4 | | B9 | **On by default:** the built-in replacements used unless `DARNER_SHADER_REPLACE=0` (the switch read with `toggled!` in the loader, no `play.rs` line); two cards, RT on and off | `crates/darner-gpu/src/pipeline/replace.rs` | S | after B2, B5, B6a–B6h, B7a, B7b, B8 | | B10 | Compute shaders failing with E_OUTOFMEMORY in player logs (`7f61193d2c0e5f22`, `c1eee35dbc50a9ef`; larp has no replacement for either): find why they are that big and post what a translator fix would be; staff turn a fix into a C line | none (results only) | S | free | ## Track C: translator fixes (one pull request per fix, each with its test) | # | Task | Files | Size | Status | |---|---|---|---|---| | C1 | Buffer reads across a page: larp's split of 1–4 dword accesses (`reference/larp/crates/larp-shader/src/emit/lower.rs`), with larp's `tests/page_boundaries.rs`, `tests/page_boundaries/` and `emit/buffer_tests.rs` | `crates/darner-shader/src/emit/lower.rs` (rebar also edits: OK to change), `crates/darner-shader/src/emit/lower/buffer_tests.rs` (new), `crates/darner-shader/tests/page_boundaries.rs` (new), `crates/darner-shader/tests/page_boundaries/dispatch.rs` (new), `crates/darner-shader/tests/page_boundaries/dxil.rs` (new), `crates/darner-shader/tests/page_boundaries/page_boundary_input.rs` (new) | M | claimed by @trustno1 (2026-12-06 05:19Z) | | C2 | Normalized formats converted as the console does (the nearest-float quotient in larp's `emit/lower.rs`; Darner's is in `Lower`'s unorm/snorm loads) | `crates/darner-shader/src/emit/lower.rs` (rebar also edits: OK to change) | S | after C1 | | C3 | The wave64 stall guard: programs left at 64 lanes on 32-lane cards still get a pipeline (`reference/larp/crates/larp-shader/src/ir.rs`, `stall_guard_off`). The rebar branch works on wave64 speed (lane pairs) in the same translator forms: say on this issue what you change so the two fit | `crates/darner-shader/src/ir.rs`, `crates/darner-shader/src/fold.rs`, `crates/darner-shader/src/emit/wave64_tests.rs` | M | free | | C4 | List the rest of larp v1.1.0's translator changes (`emit/mod.rs`, `emit/shader.rs`, `ir.rs`, `emit/by_hash/`, `emit/sites.rs`, `emit/sites/table.rs`, `emit/halves.rs`, `emit/made.rs`, `emit/alike.rs`) that Darner lacks, each with the Darner file it would change; leave out the wave64 lane pairs (`emit/wave.rs`, being done on rebar) | `docs/larp-translator.md` (new) | S | claimed by @tupacfan04 (2026-12-06 05:59Z) | | C5 | Port C4's `ir.rs` items | `crates/darner-shader/src/ir.rs` | M | after C3, C4 | | C6 | Port C4's `emit/mod.rs` and `emit/shader.rs` items | `crates/darner-shader/src/emit/mod.rs` (rebar also edits: OK to change), `crates/darner-shader/src/emit/shader.rs` (rebar also edits: OK to change) | M | after C4 | | C9 | The program that loops to the 4,096 cap: find which title program it is (hash), where the loop is in its code and what should bound it; post it here for staff (rebar does the fix) (needs: game) | none (results only) | S | free | | C10 | Ray tracing, larp against Darner: larp's `reference/larp/crates/larp-gpu/src/rt.rs`, `reference/larp/crates/larp-gpu/src/bvh.rs`, `reference/larp/crates/larp-shader/src/bvh.rs` and `reference/larp/crates/larp-shader/src/emit/sites.rs` against Darner's `crates/darner-gpu/src/hwrt.rs`, `crates/darner-gpu/src/dxr.rs` and `crates/darner-hle/src/modules/xboxbvh.rs`: what larp does differently and faster, each item with the Darner file it would change | `docs/larp-raytracing.md` (new) | S | free | ## Track D: submission and CPU time | # | Task | Files | Size | Status | |---|---|---|---|---| | D2 | Release of held uploads, as larp's `LARP_OPT_RELEASE_HELD` (try-lock release, low-priority reaper thread) | `crates/darner-gpu/src/queue.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/queue/behind.rs` (rebar also edits: OK to change) | M | free | | D2b | *(defaults)* **On by default:** D2's switch; two cards | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after D2, A11b | | D3 | List waits and the queue: larp v1.1.0's `list.rs`/`queue.rs` changes with `list/wait_tests.rs` | `crates/darner-gpu/src/list.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/queue.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/list/wait_tests.rs` (new) | M | after D2 | | D3b | *(defaults)* **On by default:** D3's switches; two cards | `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | after D3, D2b | | D5 | One place for the speed switches, as larp's `perf_flags.rs`: check what it gives that `toggled!`/`asked_for!` do not; port that, or close this line with the answer | `crates/darner-gpu/src/switch.rs` | S | free | | D6a | *(defaults)* `DARNER_LIST_REUSE` measured on two cards, then on by default or removed | `crates/darner-gpu/src/host.rs` (rebar also edits: OK to change), `apps/darner/src/play.rs` (rebar also edits: OK to change), `scripts/build-darner.ps1` | S | free | ## Track E: frame generation and output **Frame generation rule (E1, E2b):** DLSS frame generation stays on Streamline. larp's direct NGX path is not ported unless it was first tested on an RTX 30 card with MFG Unlocker and that still works; a change that breaks it is not taken. | # | Task | Files | Size | Status | |---|---|---|---|---| | E1 | larp's frame generation (`slfg.rs`, `slfg/abi.rs`, `mvfg.rs` with `mvfg.hlsl`, `hudless.rs`, `hud_layout.rs`, `dlssfg.rs`, `fsrfg.rs`) against Darner's (`streamline.rs`, `streamline/fsr.rs`, `streamline/fg_rect.rs`): write up what is better and why, and for each item whether it needs larp's direct NGX path (see the rule above) | `docs/larp-framegen.md` (new) | M | free | | E2a | Port what E1 finds better in FSR 3 frame generation (`fsrfg.rs`) | `crates/darner-gpu/src/streamline/fsr.rs`, `crates/darner-gpu/src/streamline/fsr/camera.rs` | M | after E1 | | E2b | Port what E1 finds better in DLSS frame generation and the interface-free frame (`slfg.rs`, `dlssfg.rs`, `hudless.rs`, `hud_layout.rs`), keeping Streamline; test on an RTX 30 card with MFG Unlocker (see the rule above) (needs: RTX card) | `crates/darner-gpu/src/streamline.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/streamline/fg_rect.rs` (rebar also edits: OK to change) | M | after E1, E5c | | E2c | larp's own motion-vector frame generation (`mvfg.rs`, `mvfg.hlsl`), if E1 finds it worth having | `crates/darner-gpu/src/streamline.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/streamline/mvfg.rs` (new), `crates/darner-gpu/src/streamline/mvfg.hlsl` (new) | M | after E2b | | E3 | HDR output and output modes (`reference/larp/crates/larp-gpu/src/hdr.rs`, `output_mode.rs`: a 1080p scene with a 4K interface plane, and `planes.rs`) | `crates/darner-gpu/src/host/hdr.rs`, `crates/darner-gpu/src/dxgi.rs`, `crates/darner-gpu/src/compose.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/compose/output_mode.rs` (new) | M | free | | E4a | TDR handling (`reference/larp/crates/larp-gpu/src/tdr.rs`): what it catches that Darner doesn't; port it | `crates/darner-gpu/src/tdr.rs` | S | free | | E5a | Sharpening: larp v1.1.0's `sharpen.rs` changes | `crates/darner-gpu/src/sharpen.rs` (rebar also edits: OK to change) | S | free | | E5b | FSR upscaling and the host FidelityFX runtime: larp v1.1.0's `fsr.rs` and `ffx.rs` changes | `crates/darner-hle/src/modules/fidelityfx.rs`, `crates/darner-hle/src/modules/fidelityfx/pc.rs` | M | free | | E5c | DLSS upscaling and Reflex: larp v1.1.0's `dlss.rs` and `reflex.rs` changes | `crates/darner-gpu/src/streamline.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/streamline/plan.rs` | M | free | ## Track F: everything else larp v1.1.0 added (compare first, port what Darner lacks) | # | Task | Files | Size | Status | |---|---|---|---|---| | F1 | Audio: list larp's fixes in `reference/larp/crates/larp-hle/src/modules/audio.rs`, `apu.rs`, `dsp.rs` and `reference/larp/crates/larp-formats/src/xma.rs`, each with the Darner file it would change | `docs/larp-audio.md` (new) | S | free | | F2a | Port F1's `audio.rs` fixes | `crates/darner-hle/src/modules/audio.rs`, `crates/darner-hle/src/modules/audio/output.rs`, `crates/darner-hle/src/modules/audio/capture.rs` | M | after F1 | | F2b | Port F1's `apu.rs`, `dsp.rs` and `xma.rs` fixes (the decode and effects path) | `crates/darner-hle/src/modules/apu.rs`, `crates/darner-hle/src/modules/dsp.rs`, `crates/darner-hle/src/modules/dsp/convolve.rs`, `crates/darner-formats/src/xma.rs`, `crates/darner-formats/src/xma/tables.rs` | M | after F1 | | F3 | Mouse: compare larp's `modules/gameinput/mouse.rs`, `modules/gameinput/taps.rs`, `mapmouse.rs` and `mousehook.rs` with Darner's mouse and keyboard; list the gaps | `docs/larp-input.md` (new) | S | free | | F4a | Port F3's gaps in the title's input (larp's `gameinput/mouse.rs`, `gameinput/taps.rs`) | `crates/darner-hle/src/modules/gameinput.rs` (rebar also edits: OK to change), `crates/darner-hle/src/modules/gameinput/mouse.rs` (new), `crates/darner-hle/src/modules/gameinput/taps.rs` (new) | M | after F3 | | F4b | Port F3's gaps in the mouse hooks, the world map's mouse among them (larp's `mousehook.rs`, `mapmouse.rs`) | `crates/darner-hle/src/mousehook.rs`, `crates/darner-hle/src/mousehook/mapmouse.rs` (new) | M | after F3 | | F4c | Port F3's gaps in Darner's mouse-and-keyboard layer | `crates/darner-hle/src/modules/mnk.rs` | S | after F3, F5a | | F5a | Vehicle controls for mouse and keyboard (`reference/larp/crates/larp-hle/src/vehicle.rs`: keyboard driving and its second control; not Darner's `vehicle_notch.rs`, which is the pad's throttle notch) | `crates/darner-hle/src/modules/mnk.rs`, `crates/darner-hle/src/modules/mnk/vehicle.rs` (new) | M | free | | F5b | First person (`reference/larp/crates/larp-hle/src/firstperson.rs`), behind a `DARNER_` switch | `crates/darner-hle/src/firstperson.rs` (new), `crates/darner-hle/src/lib.rs` (rebar also edits: OK to change), `crates/darner-game/src/lib.rs` (rebar also edits: OK to change) | M | free | | F6a | The F1 menu's look: larp's `settings/look.rs` and `settings/menu.rs` (larp took Darner's look; port what it improved) | `crates/darner-gpu/src/host/menu.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/host/panel.rs` (rebar also edits: OK to change) | M | free | | F6b | larp's extra settings (`reference/larp/crates/larp-hle/src/settings/extra.rs`, `settings/file.rs`, with their parents `reference/larp/crates/larp-hle/src/settings.rs` and `reference/larp/crates/larp-game/src/settings.rs`) as F1 rows | `crates/darner-gpu/src/settings.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/host/menu.rs` (rebar also edits: OK to change), `locales/en.json`, `locales/zh-CN.json` | M | after F6a | | F7 | Mods folder loader (`reference/larp/apps/larp/src/mods.rs`), off unless asked for; it must keep `crates/darner-hle/tests/no_dll_planting.rs` passing (staff decide on the folders it may load from) | `apps/darner/src/main.rs` (rebar also edits: OK to change), `apps/darner/src/mods.rs` (new) | M | free | | F8a | Saves (`reference/larp/crates/larp-hle/src/modules/xgamesave.rs`) | `crates/darner-hle/src/modules/xgamesave.rs` | S | free | | F8b | DirectStorage (`modules/dstorage.rs`, `dstorage/destinations.rs`, `dstorage/stats.rs`) | `crates/darner-hle/src/modules/dstorage.rs` (rebar also edits: OK to change), `crates/darner-hle/src/modules/dstorage/destinations.rs` (new) | M | free | | F9a | Movies: larp's `modules/bink.rs` against Darner's; port what is missing | `crates/darner-hle/src/modules/bink.rs` | S | free | | F9b | The UI theme: larp's `modules/theme.rs`; port what is missing | `crates/darner-hle/src/modules/theme.rs` | S | free | | F9c | The button prompts: larp's `crates/larp-game/src/prompts.rs` and `prompts/`; port what is missing | `crates/darner-game/src/prompts.rs`, `crates/darner-game/src/prompts/font.rs`, `crates/darner-game/src/prompts/hook.rs`, `crates/darner-game/src/prompts/playstation.rs` | S | free | | F10 | The launcher's helpers: `reference/larp/apps/larp/src/advisor.rs`, `host_name.rs`, `hud_virtual.rs` and `reference/larp/crates/larp-core/src/i18n.rs`, `pad.rs` (Darner has its own `darner-core` `i18n.rs` and `pad.rs`): what each does and whether Darner wants it | `docs/larp-launcher.md` (new) | S | free | | F11a | Crash handling: larp's `crates/larp-loader/src/crash.rs` and `stacks.rs` against Darner's | `crates/darner-loader/src/crash.rs`, `crates/darner-loader/src/stacks.rs` | M | free | | F11b | Loader changes: larp's `crates/larp-loader/src/windows.rs` and `callhook.rs` against Darner's | `crates/darner-loader/src/windows.rs`, `crates/darner-loader/src/callhook.rs` (rebar also edits: OK to change) | M | free | | F12 | NVIDIA only: at start, read the game's shader-heap profile (`darner nv-profile --status`). If missing, show one line offering to set it (fewer crashes with ray tracing, needs admin once) and run nv-profile elevated only if the player says yes; remember a no; never prompt on AMD/Intel or when already set | `apps/darner/src/nvprofile.rs`, `apps/darner/src/main.rs` (rebar also edits: OK to change), `locales/en.json`, `locales/zh-CN.json` | S | after F7, F6b | | M1 | F1 rows for the switches of the tasks landed by then (E2a–E2c, E3, F4a–F4c, F5a, F5b, F7, B9), their player text, and their lines in the README switch tables (with the defaults changed by then); later ones get an M2 line | `crates/darner-gpu/src/host/menu.rs` (rebar also edits: OK to change), `crates/darner-gpu/src/settings.rs` (rebar also edits: OK to change), `locales/en.json`, `locales/zh-CN.json`, `README.md` (rebar also edits: OK to change) | S | after F6b, F12 | ## Starter tasks (good first contribution) | # | Task | Files | Size | Status | |---|---|---|---|---| | S1 | Test any open pull request on your PC and post the results (card, settings, before/after) | none | S | always free | | S2 | Add the crash offsets and fixes from larp's `reference/larp/docs/troubleshooting-and-crashes.md` that apply to Darner | `docs/troubleshooting.md`, `docs/crash-addresses.md` | S | PR #707 in review | | S3 | Keep `docs/larp-port.md` (T2) current as tasks land | `docs/larp-port.md` | S | after T2 | ## Frozen: being done on the rebar branch Staff's `rebar` branch (Lucid) already does this work: the heap announcements that replace the heap feed, the card-owned alias pool and its packed heap, the stream pager in place of the title's windows (`pieces`), the descriptor and table model, and a sweep of the older switches, several of which it removes. These lines wait for R0 so nobody does the same work twice. When R0 is done, staff restate each line against what rebar brought (some will be closed as done), and they become claimable. **Rebar's own list (not tasks here, don't propose them as new tasks):** the slow mesh draws (about 5.5 ms a frame), small dispatches and drains (keeping a barrier only where a dispatch reads what an earlier one wrote), hoisting per-binding work in translated shaders and the program that loops to the 4,096 cap, runs of draws or dispatches as one multi-record `ExecuteIndirect`, the "copies in the card's memory" scan (`card_before`), refresh-list entries that copy nothing, and driver recording cost. If you find something in these areas, post it on this issue for staff instead of opening a pull request (T4, T5, T6 and C9 are results that feed it). | # | Task | Files | Size | Status | |---|---|---|---|---| | R0 | **rebar merged into Main**, through its own pull requests; then staff recheck every line below | (staff) | — | staff | | A1 | Heap feed up to larp v1.1.0: `DARNER_HEAP_FEED` against `reference/larp/crates/larp-gpu/src/heapfeed.rs`. rebar deletes `host/heapfeed.rs` and adds `heap_announce.rs` (`DARNER_HEAP_ANNOUNCE`) | `crates/darner-gpu/src/host/heapfeed.rs`, `crates/darner-gpu/src/host.rs`, `crates/darner-gpu/src/host/send.rs` | M | after R0 | | A2 | With the feed on, stop guarding the graphics heap's pages: no page guards or write faults for memory the feed carries (rebar's `DARNER_HEAP_ANNOUNCE=replace`); measure write faults and fps | `crates/darner-gpu/src/watch.rs` | M | after A1 | | A7 | Tiled memory for streamed geometry's buffers (the rest of larp's `sparse.rs`, with `pieces.rs` and `streamed.rs`); rebar brings `streamed.rs` and the stream pager | `crates/darner-gpu/src/hwrt/sparse.rs`, `crates/darner-gpu/src/streamed.rs` (comes with rebar) | M | after R0, A6 | | A8 | Texture heaps as larp's 64 MB pooled placed textures inside the card's budget. rebar deletes `texheap.rs` and `d3d12ma/` and brings `poolheap.rs` and `rebar_pool.rs` | `crates/darner-gpu/src/poolheap.rs` (comes with rebar) | M | after R0 | | A9 | The stream pager and budget against larp's `pager.rs` (and `DARNER_STREAM_BUDGET_MB`). rebar deletes `crates/darner-hle/src/pager.rs` and brings `crates/darner-gpu/src/pager.rs` and `apps/darner/src/stream_pager.rs` | `crates/darner-gpu/src/pager.rs` (comes with rebar) | M | after R0 | | A10 | The alias pool against larp v1.1.0 and Lucid's `DARNER_ALIAS_SHARE` notes. rebar deletes `alias_pool.rs` and turns on `DARNER_POOL_OWNED` | (restated at R0) | M | after R0 | | A12 | The smaller savers `DARNER_TEX_DISCARD`, `DARNER_WC_ON_DEMAND`, `DARNER_DSTORAGE_CACHE`: rebar deletes `texdiscard.rs`, `crates/darner-hle/src/wcdemand.rs` and `dstorage/store.rs`; staff close this line or restate it per switch | (restated at R0) | S | after R0 | | A15 | Streamed mip levels kept on the card only, as larp (`reference/larp/crates/larp-gpu/src/mips.rs`, `reference/larp/crates/larp-game/src/mips.rs`, `reference/larp/apps/larp/src/mips.rs`, `reference/larp/crates/larp-gpu/src/texevents.rs`): no host copy of mip levels the card already holds | (restated at R0) | M | after R0 | | D1 | View mirror fast path, as larp's `LARP_OPT_VIEW_MIRROR` (`null_kind` per slot, stride shadow, lock-free buffer bitset): part of the descriptor model rebar ports | `crates/darner-gpu/src/descriptor/host.rs` | M | after R0 | | D4 | larp's `draw.rs` and `descriptor.rs` changes: the same descriptor and table model | `crates/darner-gpu/src/draw.rs`, `crates/darner-gpu/src/descriptor.rs` | M | after R0 | | D6b | *(defaults)* `DARNER_TABLEFILL`, `DARNER_INDIRECT_DIRECT`, `DARNER_SHARED_ALLOCATORS`, `DARNER_COMPUTE_QUEUE`: rebar sweeps them and deletes `tablefill.rs`, `indirect/direct.rs`, `allocators.rs`, `host/compute_queue.rs` | (restated at R0) | S | after R0, D6a | | D6c | *(defaults)* `DARNER_RECORD_THREADS`: rebar brings `DARNER_RECORDING_THREADS` (larp's subrender) | `apps/darner/src/subrender.rs` | S | after R0, D6b | | E4b | NVAPI CPU-visible card memory for cards without GPU upload heaps (`reference/larp/crates/larp-gpu/src/nvapi.rs`): an extra source for rebar's ReBAR pools | `crates/darner-gpu/src/rebar_pool.rs` (comes with rebar) | M | after R0 |
Author
Owner

assigned C1 to @trustno1 (HQ, the project's own agent; set by staff). The pull request starts with Task: C1.

assigned C1 to @trustno1 (HQ, the project's own agent; set by staff). The pull request starts with `Task: C1`.
Collaborator

claim T2

claim T2
Author
Owner

assigned T2 to @Jesper-A

assigned T2 to @Jesper-A

claim S2

claim S2
Author
Owner

assigned S2 to @tupacfan04

assigned S2 to @tupacfan04

unclaim T1d

unclaim T1d

claim C4

claim C4
Author
Owner

T1d is free again (unclaimed by @tupacfan04)

T1d is free again (unclaimed by @tupacfan04)
Author
Owner

assigned C4 to @tupacfan04

assigned C4 to @tupacfan04
Contributor

claim C10

claim C10
Sign in to join this conversation.
No milestone
No project
No assignees
4 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#693
No description provided.