Radiance cache on the M5 Pro: fit 10 storage buffers per stage, then the Mac run list

Open
#49 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript, web-dev

Research direction

Start with docs/design/radiance-cache.md and the limits table, then inspect register D6 packing and the per-pipeline storage-buffer count test mentioned in the issue. Run the GPU test on the RTX with the device limited to 10, then follow the listed M5 Pro Chrome run list and record results in PROGRESS. Done means every pipeline stays within the limit in all settings and all listed runs pass with results recorded.

Written by the indexing model from the issue text.

Description

Blocker. Some radiance-cache compute pipelines bind 13 storage buffers in one shader stage. Chrome on the M5 Pro allows maxStorageBuffersPerShaderStage = 10, so none of the radiance-cache GPU pages can run on the Mac. This was found while verifying #44 on the Mac.

  • The design assumed our device's 16 per stage (the RTX's): see docs/design/radiance-cache.md, the limits table.
  • Fix in progress on branch rc-storage-buffers. It extends register D6's packing (Capsaicin's ~30 hash-cache buffers already live in a few packed buffers at fixed offsets).
  • It adds a per-pipeline storage-buffer count test and a GPU run on the RTX with the device limited to 10.

Then, the Mac run list (M5 Pro, Chrome, through the bench lock):

  1. The radiance-cache correctness pages: world-cache, cell-shading, ddgi-bounce, temporal, stability, three, viewer, plus SHaRC and the denoiser pages.
  2. P6.4's neural tail (from PROGRESS 2026-11-20):
    • pnpm test:gpu --filter radiance-cache-neural-tail;
    • radiance-cache-neural-timing with the cool wait, all four rows;
    • the same with neural: { stepsPerFrame: 1 } and screenStride: 16;
    • the lag section with ema: 'off'.
  3. Timing for phase 5 and P6.5: VALID runs of the radiance cache's default and each variant. This overlaps with #15.

Done when: every radiance-cache pipeline binds 10 or fewer storage buffers in every setting combination (unit-tested), the RTX passes at a limit of 10, and the Mac run list above has been run and its results recorded in PROGRESS.

Dominant language
TypeScript
Stars
0
Forks
0
Avg merge
16h 11m
Merged PRs (30d)
15

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pmndrs/gi

All issues in pmndrs/gi

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.