Skip to content

Experiment: renderer overhead and Ampere CPU/VRAM/cache profiles - #1

Draft
Matartos wants to merge 56 commits into
ampere-sm86-upstream-basefrom
ampere-sm86-perf-exp1
Draft

Matartos wants to merge 56 commits into
ampere-sm86-upstream-basefrom
ampere-sm86-perf-exp1

Conversation

@Matartos

@Matartos Matartos commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Based on upstream 923e38c. Renderer: texture sweep snapshot, cold slot filtering, descriptor counter aggregation, in-place hazard ranges, separate record/view worker controls, bounded pipeline cache idle save interval. Shader Clippy: remove unused shadowed colour and use checked division, matching upstream behavior. Benchmark harness: seven modes, independent CPU pool settings, bounded VRAM room and FG reserve, cache intervals, dependency checks and rebuild. Defaults remain upstream unless opt-in. Unit tests added for sweep, ranges, workers and cache interval. Windows CI and matched-scene A/B performance/visual checks required. No FPS gain claimed.

@Matartos Matartos changed the title Experiment: lower texture eviction scan overhead Experiment: texture and descriptor overhead + Ampere A/B profiles Nov 28, 2026
@Matartos Matartos changed the title Experiment: texture and descriptor overhead + Ampere A/B profiles Experiment: renderer overhead and Ampere CPU/VRAM/cache profiles Nov 28, 2026
Matartos and others added 16 commits November 28, 2026 21:35
…0 KiB file limit

The asset-policy test failed on lower.rs (667380 bytes > 655360). The unit
tests move unchanged into emit/lower/tests.rs; no code or test changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Both files are unchanged on pl-plus-dev; removing them here keeps the
PR to ampere-sm86-perf-exp1 limited to the Kemerd port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
claude and others added 28 commits November 28, 2026 21:08
…ce (off by default)

Ported from Kemerd/VIctory-NVIDIA-RT rt-test-11
(0549d44), GPL-3.0.

A pooled staging piece used before was zero-filled when handed out and
then written again by the detiling. With VICTORY_STAGING_NO_ZERO=1 the
fill is left out only where detile_covers shows the detiling writes
every byte the copies read (row bytes, rows and depth of each
subresource from GetCopyableFootprints). A piece no detiling wrote whole
is zero-filled where its copy is recorded (record_upload and
PreludeUpload::record), under the staging's last lock. A failed detile
zero-fills the remaining subresources. The card's detile path is
unchanged. A 5-second log line counts pieces left, zeroed at record and
zeroed when made.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
… no-zero ported)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
…eued (off by default)

Ported from Kemerd/VIctory-NVIDIA-RT rt-test-11
(0549d44), GPL-3.0.

With more pipelines queued than the workers can make within the frame's
budget, a draw's wait cannot end in time and only costs the frame. Past
n queued, the draw is dropped at once, as when the budget runs out, and
drawn again in a later frame. Graphics only: dispatches and passes over
the screen are never left out by this rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
…e system's cache can read through it (VICTORY_FILES_BUFFERED, 1 or count, off by default)

From Kemerd/VIctory-NVIDIA-RT 1053639 (in rt-test-11
0549d44), GPL-3.0, applied unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
… they start (VICTORY_SEND_COPIED_FIND, off by default), and the card copies line says what the look costs

From Kemerd/VIctory-NVIDIA-RT 84d94c5 (in rt-test-11
0549d44), GPL-3.0, applied unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
…a frame (VICTORY_TEXTURE_LOOK_ONCE, off by default), and a line counts the second looks either way

From Kemerd/VIctory-NVIDIA-RT 35cafeb (in rt-test-11
0549d44), GPL-3.0; only the frame-line
call in host.rs placed after this tree's detiling line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
… here)

From Kemerd/VIctory-NVIDIA-RT ef8f00c (in rt-test-11
0549d44), GPL-3.0. Taken: a staging
piece is zero-filled in PreludeUpload::finish_refresh, before the
prelude is recorded under the list's states lock (VICTORY_STAGING_NO_ZERO);
look-once counters count only whole reads (note_looked); the copy
finder's list copies are let go after the CARDED lock and its timing
covers the look alone. Left out: read-ahead, arenas and slow workers,
which are not in this tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
…correction

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
…ds of ours once the pass lets go of it (VICTORY_TEXTURE_READ_AHEAD, off by default)

From Kemerd/VIctory-NVIDIA-RT 19f0de6 (in rt-test-11
0549d44), GPL-3.0, applied unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
From Kemerd/VIctory-NVIDIA-RT ef8f00c (texture.rs, ahead.rs), GPL-3.0.
A read-ahead decides and reads under one hold of the staging's last lock,
and leaves a buffer a refresh already tried (its copy may be in flight);
the read-ahead line says nothing in quiet frames. Plus a309f8e's quiet
check in ahead.rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Kemerd port: 6 switches without RT (all off by default) + audit
… of 2^27 (off by default)

From KLBF Lab v26.11.6 (KLBF_TREE_FIX, 75022ba), itself after
trustno1-coder/VIctory-NVIDIA PR trustno1-coder#72 (96fc904, by exotiquee), GPL-3.0.
Named VICTORY_ here: the launcher passes only VICTORY_ variables.

Both clamps (indirect.rs and batch.rs) take BUDGET_SHIFT from the
define make_from gives them, 27 where none is given. Only the counter's
limit changes; no buffer grows. The frame line names the budget in use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
…, no-block compared)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
KLBF port: VICTORY_TREE_FIX (off by default) + audit
…m a thread of their own (off by default)

From Kemerd/VIctory-NVIDIA-RT rt-test-11 (0549d44),
GPL-3.0: host/send_thread.rs and its Host::submit hand-over (d06b7ab,
Kemerd), the relay fetch waiting for it (8b40230, Kemerd) and the
present waiting for it (4c0d0e9, D Everett Hinton).

With late() (on by default here: the relay) the submitting thread hands
the closed lists and the reserved fence value to victory-send, which
executes, signals (also after a panic) and notes them, and goes on to
the next submission. Every other path that puts work on the host queue
waits for the thread first: card_before's sync list, the relay fetch on
the host queue, the present, and in this tree also the synchronous
submit branch and card_back (both take the next fence value) and the
defrag counters' read. A frame-line counter says how many jobs the
thread sent and how many came out of order.

docs/KEMERD-AUDIT.md: section 7, and section 6 on why the refresh sets
are held back (their steps come from by-address memory, the ray-tracing
path).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Kemerd port, etap C: VICTORY_SEND_THREAD (off by default)
…ot a rounded per-frame mean

The frame line printed {:.0} of the count divided by the frames, so a
single job out of order in a second's frames read as 0. Pointed out in
fef2fd9 (OPTIMIZATION_REGISTRY.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae
Send thread: out-of-order counter as an exact count
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.

3 participants