Skip to content

Kemerd port: 6 switches without RT (all off by default) + audit - #2

Merged
Matartos merged 21 commits into
ampere-sm86-perf-exp1from
claude/practical-euler-95ngzp
Nov 28, 2026
Merged

Matartos merged 21 commits into
ampere-sm86-perf-exp1from
claude/practical-euler-95ngzp

Conversation

@Matartos

@Matartos Matartos commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Zakres

Mechanizmy z Kemerd/VIctory-NVIDIA-RT rt-test-11 (0549d44c330bf0a1f808f8b012d8e22168dfad91, GPL-3.0), które działają przy wyłączonym RT. Szczegóły, dowody, autorzy i rollback: docs/KEMERD-AUDIT.md.

  • VICTORY_PIPELINE_SAMPLER_TABLE: ALREADY PRESENT. Ten sam problem rozwiązuje u nas pipeline/samplers.rs (VICTORY_SAMPLER_ORDER, domyślnie włączony).
  • VICTORY_STAGING_NO_ZERO=1 (970bcbc, poprawka a5f964a): mniej zerowania pamięci staging przy uploadzie tekstur.
  • VICTORY_PIPELINE_WAIT_BACKLOG=n (a376dd7): draw nie czeka, gdy w kolejce jest więcej niż n pipeline'ów. Tylko grafika.
  • VICTORY_FILES_BUFFERED=1|count (6d39c94): odczyty pliku gry przez cache Windows.
  • VICTORY_SEND_COPIED_FIND=1 (595b8cc, poprawka a5f964a): kopie bufora wyszukiwane po adresie zamiast pełnego przeglądu.
  • VICTORY_TEXTURE_LOOK_ONCE=1 (8fff3e8, poprawka a5f964a): niezapisana tekstura czytana najwyżej raz na klatkę.
  • VICTORY_TEXTURE_READ_AHEAD=1 (b19e19b, poprawka 4162a3d): bufory tekstur czytane przez dwa wątki przed submisją.
  • WAIT_ONCE, SLOW_WORKERS, REFRESH_SET, SEND_THREAD: tylko audyt.

Wszystkie przełączniki są domyślnie wyłączone. Bez nich ścieżki kodu są takie jak w bazie, poza liniami logu. Przy READ_AHEAD wyłączonym nie startują też jego wątki.

Autorstwo: commity przeniesione bez zmian mają oryginalnego autora (D Everett Hinton albo Kemerd). Wyjątek to 6d39c94, który ma w metadanych autora Kemerd, a powinien mieć D Everett Hinton. Sprostowanie jest w audycie.

Commit 96f0acb usuwa z tej gałęzi dwa pliki z pl-plus-dev (bez zmian, nadal są na pl-plus-dev).

Testy

Lokalnie: cargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings OK, także z --all-features. Ostatnie pełne CI (run 25, 1d0e418) zielone. CI na nowej HEAD w toku.

Rollback

Nie ustawiać przełączników. Albo git revert odpowiedniego commita.

Scalanie zostawiam Codexowi po odbiorze wspólnej bazy.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SiiHe46xLWma3psWE1tgae

Matartos and others added 10 commits November 28, 2026 12:07
…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
…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
@Matartos Matartos changed the title Kemerd port: VICTORY_STAGING_NO_ZERO (off by default) + audit Kemerd port: VICTORY_STAGING_NO_ZERO + VICTORY_PIPELINE_WAIT_BACKLOG (off by default) + audit Nov 28, 2026
Kemerd and others added 2 commits November 28, 2026 21:19
…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
@Matartos Matartos changed the title Kemerd port: VICTORY_STAGING_NO_ZERO + VICTORY_PIPELINE_WAIT_BACKLOG (off by default) + audit Kemerd port: STAGING_NO_ZERO, PIPELINE_WAIT_BACKLOG, FILES_BUFFERED (all off by default) + audit Nov 28, 2026
@Matartos
Matartos marked this pull request as ready for review November 28, 2026 21:30
Kemerd and others added 5 commits November 28, 2026 21:42
… 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
@Matartos Matartos changed the title Kemerd port: STAGING_NO_ZERO, PIPELINE_WAIT_BACKLOG, FILES_BUFFERED (all off by default) + audit Kemerd port: 5 switches without RT (all off by default) + audit Nov 28, 2026
Kemerd and others added 4 commits November 28, 2026 22:19
…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
@Matartos Matartos changed the title Kemerd port: 5 switches without RT (all off by default) + audit Kemerd port: 6 switches without RT (all off by default) + audit Nov 28, 2026
@Matartos
Matartos merged commit bc28b8c into ampere-sm86-perf-exp1 Nov 28, 2026
1 check passed
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