Skip to content

KLBF port: VICTORY_TREE_FIX (off by default) + audit - #4

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

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

Conversation

@Matartos

Copy link
Copy Markdown
Owner

Zakres

Z KLBF Lab v26.11.6 (75022ba, GPL-3.0), poza VRAM. Szczegóły: docs/KLBF-AUDIT.md.

  • VICTORY_TREE_FIX=1 (96e1107): budżet pracy indirect listy 2^30 zamiast 2^27, w obu shaderach clampów (indirect.rs, indirect/batch.rs). U nas problem występował (1u << 27). Pamięć bez zmian, rośnie tylko limit licznika. Linia FPS pokazuje używany budżet. Źródło: KLBF KLBF_TREE_FIX, a wcześniej trustno1-coder/VIctory-NVIDIA PR Indirect: raise the list budget from 2^27 to 2^30 (valid records were emptied in 248 of 509 s of play) trustno1-coder/VIctory-NVIDIA#72 (96fc904, exotiquee, niescalony). Nazwa VICTORY_*, bo launcher przekazuje tylko takie zmienne.
  • KLBF_BUFFER_NO_WAIT: ALREADY PRESENT jako VICTORY_WAIT_RESIDENT=textures (upstream 275044b). Obejmuje te same bufory i dodatkowo mapped_card_buffer.
  • KLBF_PIPELINE_NOBLOCK kontra VICTORY_PIPELINE_WAIT_BACKLOG: mechanizmy się różnią. Scenariusz, którego nie obejmuje backlog, jest opisany w audycie. Bez nowej flagi do czasu pomiaru. Część „80 ms” już mamy: VICTORY_PIPELINE_WAIT_MS=80.

Testy

  • Lokalnie: cargo clippy --target x86_64-pc-windows-msvc --workspace --all-targets -- -D warnings OK, także z --all-features.
  • Nowy test: indirect::tests::the_tree_fix_raises_the_list_budget_only_when_asked.
  • CI: w toku.

Status benchmarku: otwarty, czeka na pomiary na RTX 3080.

Rollback

Nie ustawiać VICTORY_TREE_FIX. Albo git revert 96e1107.


Generated by Claude Code

… 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
@Matartos
Matartos merged commit 5150bcc 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.

2 participants