Skip to content

Skip BVH builder input dispatches while it is off (VICTORY_BVH_INPUT_SKIP, off by default) - #16

Open
oceansde012 wants to merge 1 commit into
claude/project-thread-wjvj0tfrom
claude/project-thread-cwqzxi
Open

oceansde012 wants to merge 1 commit into
claude/project-thread-wjvj0tfrom
claude/project-thread-cwqzxi

Conversation

@oceansde012

Copy link
Copy Markdown
Owner

Requested by Vlad · project thread

On top of #12 (integration). One commit: e0e43b1.

What

Port of ZigZagBoi1/ScarlettPort 1cb880b (#399, GPL-3.0-or-later). ~41 title compute programs only feed the ray-tracing structure builder, which is off unless VICTORY_BVH_BUILDER=1 (our launchers do not set it). With VICTORY_BVH_INPUT_SKIP=1 their dispatches are dropped while the builder is off. A log line every 256 presents says how many a frame were dropped.

  • Off by default (upstream: on). With the switch unset nothing changes.
  • 41 hashes checked byte for byte against upstream.
  • Direct dispatches only, as upstream. Skinlog diagnostics not taken.

Why

Our frame is bound by the submit thread (68 of 70 ms). Every dropped dispatch saves bind/copy work there plus GPU time. Upstream on an RTX 3060: median 118-129 -> 82-83 ms, same picture. Not measured on our base yet.

Checks

  • CARGO_FEATURE_PURE=1 cargo check -p victory-gpu --target x86_64-pc-windows-msvc OK, with and without --features diagnostics.
  • A/B on the PC to do: base vs VICTORY_BVH_INPUT_SKIP=1, look for the log line "dispatches a frame ... dropped" (N > 0 means the list matches our build), compare picture with base run1.

Code by DeepSeek, reviewed by Claude. Report: project files reports/scarlettport-056-2026-11-28.md.


Generated by Claude Code

…INPUT_SKIP, off by default)

Ported from ZigZagBoi1/ScarlettPort 1cb880b (#399, Marwan Mohamed,
GPL-3.0-or-later). About 41 title compute programs only make the input
geometry of the ray-tracing structure builder, which stays off unless
VICTORY_BVH_BUILDER=1. With VICTORY_BVH_INPUT_SKIP=1 their dispatches are
dropped while the builder is off; every 256th present logs how many a
frame were dropped. Off by default here (upstream: on by default);
also a live VICTORY_AB switch in diagnostics builds.

Upstream measurement (RTX 3060): median frame 118-129 -> 82-83 ms,
p95 150-156 -> 97-100 ms, same picture. Not measured on our base yet.
The 41 hashes were checked byte for byte against upstream. Direct
dispatches only, as upstream; skinlog diagnostics not taken.

Code by DeepSeek (two rounds; reviewed and assembled by Claude).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FLuVRnf5ZnWpyc3Cx9oASj
@oceansde012 oceansde012 self-assigned this Nov 28, 2026

Copy link
Copy Markdown
Owner Author

CI check fails on clippy missing_transmute_annotations (rust 1.98 clippy, -D warnings) in crates/victory-loader/src/write_sites.rs:349 and :425. This PR does not touch victory-loader, and the base branch (#12, claude/project-thread-wjvj0t) is red on the same check job. Not this PR's failure; the fix belongs on the base (annotate the two transmutes), to be done there by the code helpers.


Generated by Claude Code

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