Skip to content

docs(renderer): the blue-noise tile costs 8 KiB per pass, not 32 KB - #905

Merged
drsnuggles8 merged 1 commit into
masterfrom
feature/blue-noise-tile-vram-comment-706
Aug 22, 2026
Merged

docs(renderer): the blue-noise tile costs 8 KiB per pass, not 32 KB#905
drsnuggles8 merged 1 commit into
masterfrom
feature/blue-noise-tile-vram-comment-706

Conversation

@drsnuggles8

Copy link
Copy Markdown
Owner

CodeRabbit finding on #889, which had already merged by the time it was picked up
— so it lands here rather than as a fixup on that PR.

The claim

The paragraph above BlueNoise::GetTileRG() put each pass's copy of the tile at
"32 KB of VRAM apiece". The real figure is 8 KiB, 4x smaller:

  • kTileSize * kTileSize * kChannels = 64 * 64 * 2 = 8192 bytes;
  • CreateBlueNoiseTexture asks for RG8UNorm via CreateTexture2DHandle, whose
    storage is immutable and single-mip on both backends — so there is no chain
    to round it up either.

Two passes hold one today (SSRRenderPass, SSGIRenderPass), so the duplication
that paragraph is justifying costs 16 KiB in total, not 64 KB.

Why bother with a comment

That paragraph is not decoration — it exists to argue that per-pass duplication is
cheap enough to prefer over a shared GPU-owning static, which is the
lazy-static-release-ownership.md shape it explicitly cites. A 4x-inflated cost is
an argument against the design the paragraph concludes with, so the next person
weighing "should this be shared?" would be reading evidence pointing the wrong way.

Comment only — ownership, upload behaviour and the POD-static rationale are
untouched.

Verification

Not built. The change is comment text inside an existing block and cannot alter
compilation; the pre-commit hook (clang-format included) passed.

CodeRabbit finding on #889 (already merged). The comment above GetTileRG put
each pass's copy of the tile at "32 KB of VRAM apiece", which is 4x the real
figure.

kTileSize * kTileSize * kChannels = 64 * 64 * 2 = 8192 bytes, and
CreateBlueNoiseTexture asks for RG8UNorm through CreateTexture2DHandle, whose
storage is immutable and SINGLE-MIP on both backends — so there is no chain to
round the number up either. Two passes hold one today (SSR and SSGI), so the
duplication this paragraph is justifying costs 16 KiB in total.

Comment only: ownership, upload behaviour and the POD-static rationale are
untouched. The number is worth getting right because the paragraph exists
specifically to argue that per-pass duplication is cheap enough to prefer over
a shared GPU-owning static, and a 4x-inflated cost is an argument against the
thing it concludes.

Not built: a change to comment text inside an existing block cannot alter
compilation.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@drsnuggles8, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 46 minutes

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

Wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 880dea81-1983-4ddf-8ea2-b6ce37861f7c

📥 Commits

Reviewing files that changed from the base of the PR and between 454339b and 749b58f.

📒 Files selected for processing (1)
  • OloEngine/src/OloEngine/Renderer/BlueNoise.h

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@drsnuggles8
drsnuggles8 merged commit 211331a into master Aug 22, 2026
4 of 6 checks passed
@drsnuggles8
drsnuggles8 deleted the feature/blue-noise-tile-vram-comment-706 branch August 22, 2026 15:02
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.

1 participant