Skip to content

[pr-performance] Use 64-thread groups for the ambient probe gather - #18

Open
zevorn wants to merge 1 commit into
KyleS98:mainfrom
zevorn:perf/ambient-gather-groups
Open

zevorn wants to merge 1 commit into
KyleS98:mainfrom
zevorn:perf/ambient-gather-groups

Conversation

@zevorn

@zevorn zevorn commented Nov 29, 2026

Copy link
Copy Markdown

What it changes

The ambient gather dispatch covers 160 × 90 probes. Its 8 × 2 group leaves half a warp empty on a 32-lane GPU. Use 32 × 2 and dispatch 5 × 45 groups in both the diffuse and specular paths. Each probe keeps its own address, loop and accumulation order. GuoqiFish/WelcomeToFlorida also uses a 32-wide layout in 166364b.

How it was tested

  • GeForce RTX 3060 Ti, 32-lane hardware. The game captures used Series S, 1280 × 720 input, DLSS Quality to 1920 × 1080, FSR 3 frame generation at 2× and the ray-tracing structure builder off. Game measurements refer to source frames.
  • In an isolated D3D12 timestamp benchmark of the 2,304-cell gather, the median fell from 0.553 ms to 0.288 ms over 28 warmed dispatches per variant. All 172,800 output components matched bit for bit.
  • In a porch capture with the same camera, mean source frame time fell from 52.91 ms to 51.86 ms. A separate indoor capture improved by 0.6%. These whole-frame measurements used a local backport with the same gather shader.
  • All 11 ambient unit tests passed on 64208f1. Testing covered the ambient subset of victory-gpu. Measurements on 64-lane hardware are still open.

Checked for overlap

I searched the open pull requests for ambient gather changes before filing this. This patch changes only the gather group layout and its two dispatch sizes.

@KyleS98

KyleS98 commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Thank you. Tested on an RTX 3090 Ti (Series X profile at 2560x1440, DLSS Performance, builder off), the prologue's cell, your branch merged onto main:

  • Frames a second: 35.9 and 35.8 with it, 36.0 and 35.4 without. Your 0.27 ms is one percent of a frame here, which is inside what two runs of one build differ by, so I cannot show the gain on this card; nothing is lost either.
  • Picture: the cell's median frame differs from the build before by 1.2 to 1.3 of 255, where two runs of one build differ by 1.2 to 1.4. Unchanged, as your bit-for-bit comparison says it must be.

It is on the branch I am running through a preload now together with #19 (the opening, the cell, the first house, the deck); I will merge both when those are through and say so here.

AI-assisted (Claude Code, Claude Fable 5.2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants