Skip to content

perf: CPU-side optimizations (shader translation, BCPack, detiling, inflate, hashing, write-watch journal, DSP) - #623

Open
depaolaluigi123 wants to merge 2 commits into
trustno1-coder:mainfrom
depaolaluigi123:perf/misure-ottimizzazioni
Open

depaolaluigi123 wants to merge 2 commits into
trustno1-coder:mainfrom
depaolaluigi123:perf/misure-ottimizzazioni

Conversation

@depaolaluigi123

Copy link
Copy Markdown

This pull request is a set of performance optimizations across several parts of the layer: shader translation, BCPack, texture detiling, DirectStorage inflate, texture hashing, the write-watch journal, and the DSP convolution.

How it was made and tested. All of this was written on Linux. None of it has been tested on Windows. I don't own a copy of the game, so every measurement comes from benchmarks on synthetic data made up for the purpose: random shader programs, made-up textures, BCPack streams, memory journals and impulse responses. They ran on one core of an Intel i7-13620H (AVX2, VAES, F16C, no AVX-512). Every change was checked against the original code, with byte-identical output wherever the result has to be exact.

Two commits, split by depth.

  • Commit 1 (perf: faster shader translation, BCPack, detiling, inflate, hashing, DSP) holds the less invasive changes: local rewrites of hot functions and data structures that keep the same interfaces.
  • Commit 2 (perf: two-level write-watch journal, fused copy+digest asm, BCPack in C, f16 reverb) holds the deeper ones. It replaces a core data structure, adds assembly with its own fault-handling labels, adds C code to a crate that had none, and makes the reverb approximate.

They were kept as two commits so that they can be reviewed, tested and reverted separately.

These changes need testing by the maintainers on Windows to see whether they actually improve performance there and are worth keeping. The numbers below come from isolated benchmarks, not from the running application.

Commit 1: less invasive changes

Area Change Measured (synthetic data, one core)
victory-shader: shader translation FxHash instead of SipHash in about 130 translator maps. structure::vars used a linear Vec::contains search (quadratic): now hash sets. lane_constant_masks walks the shared BDD once instead of once per mask. The DXIL optimiser's merge no longer empties its table of known values key by key, cloning each key, on every block exit: an O(1) dominance test (pre/post-order numbering of the dominator tree) replaces it 1.4-1.9x faster translation (12,400-instruction program: 106 → 62 ms). DXIL identical byte for byte on 600 random programs; 205/205 tests pass. New ignored benchmarks in emit/speed_bench.rs
victory-gpu watch.rs: ranges asked ahead Kept sorted, with a running maximum of the ends, and answered by binary search instead of a linear walk on every writes/asked/nothing_new 5,000 lookups: 7x faster (50 ranges), 49x (500), 173x (2,000). Equivalence test included
victory-gpu: per-frame maps The existing AddressHash instead of SipHash in draw.rs root slots, descriptor/host.rs, texture.rs, memory.rs Lookups 3.7-4.4x faster (8-17 → 2-5 ns)
victory-gpu texture.rs digest AES rounds: VAES on 256 bits, AES-NI fallback giving the same value, the old code without AES 2.4-3.3x on data in cache, 1.5-1.7x from RAM. 4,000 variants (zero runs, swaps, single-bit flips) all distinct; test added
victory-hle dstorage.rs inflate libdeflate (C, MIT, whole-buffer decompressor) instead of zlib-rs 1.32-1.40x on meshes, text, packed and sparse data, in 64 KiB and 1 MiB chunks. Every case of the existing test holds, plus trailing bytes and a bad checksum
victory-hle dsp/convolve.rs Real-input FFT (realfft) instead of a 2048-point complex one (8x). The partition sum register-blocked with AVX2+FMA (1.3-2.1x). Spectrum rows 64-byte aligned Whole block 1.6-7.6x faster, depending on the response length. Output within about 1e-6 of the original
victory-formats bcpack.rs BC7 block rebuilding: a compile-time nibble table, anchors as a bit mask, a bit writer on two u64. Lane decoding in two passes per round BC7 rebuilding 1.6x (150 → 94 ns/block, all 8 modes, identical on 80,000 blocks). Lanes 1.11x; about 1.3x for BC7 overall
victory-formats texture.rs detiling Standard (S) micro tiles treated as column-major matrices of 16-byte cells: transposed in registers (vperm2i128) and written as whole 64-byte rows, with streaming stores when the destination is 64-byte aligned, as D3D12 upload memory is. Checked against Layout::offset; anything else takes the general path 1.57-2.56x, close to memcpy (BC7 2048² 64KB_S 1.57x, BC1 1.62x, RGBA8 1920×1080 4KB_S 1.87x, BC7 4096² 4KB_S 2.56x). Never slower. New test over 6 swizzle modes × 6 formats, mips, slices and aligned/unaligned destinations

Note: the shader cache key includes a fingerprint of the translator's source, so cached translations are rebuilt once after this commit.

Commit 2: deeper changes

Area Change Measured Switch
victory-gpu write-watch journal New watch/pages.rs replaces the journal's BTreeMap with a two-level page table: chunks of 4,096 pages made on first use, each with dense askings and a bit per written page. Queries go a word (64 pages) at a time: empty words skipped, sparse words visited with tzcnt, dense words compared with AVX2. The output list is sized first with popcount nothing_new 1.2-9.7x, written-page lists 1.0-3.7x, notes 19-28x (sparse to full journals, ranges of 4-4,096 pages). Equivalence test against a BTreeMap —
victory-gpu copy + digest in one pass safecopy.rs victory_safe_copy_hash: copies 128-byte blocks of title memory and runs the VAES digest round on them, reading the source once. The source loads sit inside new fault labels; on any fault the caller falls back to copy_mapped + digest. Uses only ymm0-ymm5. texture.rs copy_digest() uses it for view-memory texture refreshes and fingerprint() 1.16-1.39x faster than the safe copy (rep movsb) followed by the VAES digest. Same bytes and same digest for every length. New Windows test: a decommitted page fails cleanly VICTORY_COPY_DIGEST=0
victory-formats BCPack in C csrc/bcpack_lanes.c, built with cc from a new build.rs: the same two-pass schedule, with Rust lanes() kept as reference and fallback decode() 1.17-1.20x on top of commit 1 (BC1 82 → 98 MB/s, BC4 76 → 89, BC7 50.5 → 59.4). Same records as Rust on every layout and on truncated streams VICTORY_BCPACK_C=0
victory-hle reverb in half floats The impulse response stored as f16 (F16C), widened on load: half the memory traffic per block 1.03x (0.2 s response), 1.15x (1 s), 1.97x (3 s), 1.82x (6 s). An approximation: about -73 dB of the peak measured, bounded at -60 dB by a test VICTORY_DSP_HALF=0

Expected effect

Estimates from the isolated measurements, to be confirmed on Windows:

  • Stutters when new pipelines are created: the translation part of the layer is 1.4-1.9x faster.
  • Streaming and loading: about 25% less CPU for zlib inflate, and roughly 1.3x (commit 1) then another 1.17-1.2x (commit 2) less for BCPack decoding.
  • Submission thread, in CPU-bound scenes: smaller savings from the journal, the map hashing, the ahead index, the texture digest and the detiling. Very roughly 0.5-2 ms a frame together, but that depends on per-frame counts I could not measure.
  • Audio thread: a convolution stream costs a fraction of what it did.

Checks done here, and what is left

  • On Linux: victory-formats (43) and victory-shader (205) tests pass. The convolution and journal tests pass when run on Linux from copies of the same files.

  • cargo clippy --workspace --all-targets --all-features --target x86_64-pc-windows-msvc gives no errors and no warnings on new or changed lines. With the pinned 1.98.1 toolchain and -D warnings, the base branch already had 44 clippy errors, and these changes add none.

    • For this check on Linux, the C builds (libdeflate, BCPack) used a stand-in compiler, so they still need a real MSVC build.
  • Still to do, on Windows:

    • cargo test: the new safecopy fault test and watch.rs's tests only run there;
    • a real build with MSVC;
    • a before/after comparison of performance and shader translations.

    The switches in commit 2 make it easy to compare each deeper change on and off.

Benchmarks to reproduce the numbers: cargo test --release -p victory-shader translation_speed -- --ignored --nocapture and cargo test --release -p victory-formats bcpack_throughput -- --ignored --nocapture (with and without VICTORY_BCPACK_C=0).

🤖 Generated with Claude Code

@vladbondarenko97

Copy link
Copy Markdown

Measured on a real Windows PC with a real copy of the game, since the PR says none of this has been tested
on Windows — and one thing that blocks testing it together with the other open performance PRs.

It does not merge with #614. Both rewrite crates/victory-gpu/src/watch.rs, and git merge fails with a
content conflict there (a clean ort merge on the other three files: draw.rs merged automatically). So
#614 and #623 cannot both be applied to main as they stand — worth deciding which one lands first, or
reworking one to sit on top of the other.

The rest of this is a single-run observation, not a verdict, and I would not want it read as one:

So: not a claim that these optimizations are wrong — the copyback figure says otherwise — only that on this
machine, cold, they did not show up in rendered fps, and that the merge conflict is the more useful thing to
know about.

Filed with an AI assistant's help; the figures are from this PC's own run logs.

@depaolaluigi123

Copy link
Copy Markdown
Author

Thanks for taking the time to build and measure this on Windows, and for flagging the conflict.

On the numbers: as you noted, the build you measured includes the other open performance PRs but not this one, so it doesn't tell us yet how these changes behave on Windows. A warm-cache run of main vs main + #623 (or with the per-change switches listed in the description) would be the most useful comparison, if anyone has the chance.

On the conflict with #614: both PRs touch crates/victory-gpu/src/watch.rs — this one replaces the write-watch journal (second commit), #614 changes the refresh path around it. I'm happy to rebase this PR on top of #614 if that one lands first, or to rework the watch.rs part so the two fit together, whichever the maintainers prefer.

Also a heads-up: this PR currently conflicts with main as well — a one-line overlap in crates/victory-hle/src/modules/dsp/convolve.rs, where upstream made the same is_multiple_of change in the meantime. I'll update the branch shortly to resolve it.

depaolaluigi123 and others added 2 commits November 28, 2026 04:27
CPU-side optimizations of the layer, each checked against the original code.

IMPORTANT, how this was tested: the author of these changes does not own a
copy of the game. Nothing here has been run with the game, and nothing has
been run on Windows. Every number below comes from benchmarks on synthetic
data that was made up for the purpose (random shader programs, textures,
streams, impulse responses and memory journals), on Linux, one core of an
Intel i7-13620H (AVX2, VAES, no AVX-512). Before merging, run `cargo test`
on Windows and compare the translations of the game's real shaders before
and after (`victory translate`).

victory-shader (shader translation, the layer's share of pipeline stutters)
- FxHash in place of SipHash in about 130 maps of the translator: -27%.
- `structure::vars` searched visited BDD nodes in a Vec (quadratic): now
  hash sets; `lane_constant_masks` walks the shared BDD once for all masks
  instead of once per mask: a further -5%.
- DXIL optimiser `merge`: the table of known values was emptied key by key,
  with a clone of each key, every time the walk left a block. It is now kept
  with an O(1) dominance test (pre/post-order numbers of the dominator
  tree): a further -15%.
- Total: 1.5-1.8x faster translation (a 12,400-instruction program:
  97 -> 57 ms). Output DXIL identical byte for byte on 600 random programs
  and on the benchmark programs; 205/205 tests pass.
- New ignored benchmarks in emit/speed_bench.rs (translation_speed,
  stage_split, dump_random_translations for before/after comparisons).
- Note: the translation fingerprint covers the translator's source, so
  cached translations are rebuilt once on the first start.

victory-gpu
- watch.rs: the ranges asked ahead (`ahead`) were walked linearly by every
  `writes`, `asked` and `nothing_new` call. They are now sorted, with a
  running maximum of the ends, and answered by binary search. 5,000 lookups:
  7x faster with 50 ranges, 49x with 500, 173x with 2,000. Expected about
  -0.1/-0.5 ms a frame with default settings, more with VICTORY_ASK_ONCE=1.
  The equivalence test is in the patch.
- AddressHash, already in the project, in place of SipHash in per-frame maps
  (draw.rs root slots, descriptor/host.rs, texture.rs, and memory.rs, which
  is used only by the ray-tracing builder): lookups 3.7-4.4x faster
  (8-17 -> 2-5 ns). The frame saving, about -0.2/-0.6 ms, is an estimate: the
  number of lookups a frame was not measured.
- texture.rs `digest`: AES rounds (VAES on 256 bits, AES-NI fallback, the
  same value either way; the old code is used without AES): 2.4-3.3x faster
  on data in cache, 1.5-1.7x from RAM. 4,000 variants (zero runs, swaps,
  single-bit flips) all distinct; a test checks that both paths agree.

victory-hle
- dstorage.rs `inflate`: libdeflate (C, MIT, whole-buffer decompressor) in
  place of zlib-rs: 1.32-1.40x faster on meshes, text, already-packed and
  sparse data, in 64 KiB and 1 MiB chunks (zlib-ng was slower than zlib-rs).
  All cases of the existing test hold, plus trailing bytes and a corrupt
  checksum.
- dsp/convolve.rs, the DSP convolution, reworked: real-input FFTs (realfft)
  instead of a 2048-point complex FFT (8x faster); the sum over partitions
  register-blocked with AVX2+FMA (32 bins' sums kept in registers while every
  partition goes by, 1.3-2.1x faster); spectrum rows 64-byte aligned
  (misaligned rows measured 1.2-1.4x slower; a [bin][partition] layout
  measured 6-12x slower). A whole block is 1.6-7.6x faster, depending on the
  length of the response. Output within about 1e-6 of the original; existing
  tests plus new tests for the vector sum and against the original.

victory-formats
- bcpack.rs: BC7 block rebuilding with a compile-time 256-entry nibble
  table, anchors as a bit mask, and a bit writer on two u64 words instead of
  variable u128 shifts: 1.6x faster (150 -> 94 ns a block, all 8 BC7 modes,
  output identical on 80,000 random blocks).
- bcpack.rs `lanes`: each round in two passes, every lane's step first (they
  are independent, so the core overlaps them on several ALUs), then the byte
  hand-out in lane order. BC7 end to end 1.11x; about 1.3x for all of BC7
  together with the item above.
- texture.rs: detiling of standard (S) modes as a transpose. A 256-byte
  micro tile is a column-major matrix of 16-byte cells; each micro tile is
  transposed in registers (vperm2i128) and written as whole 64-byte rows
  (two micro tiles side by side for 4-byte elements), with streaming stores
  where the destination is 64-byte aligned, as D3D12 upload memory is. The
  cell rule is checked against Layout::offset; everything else takes the
  general path. 1.57-2.56x faster, near memcpy speed (BC7 2048^2 64KB_S
  1.57x, BC1 1.62x, RGBA8 1920x1080 4KB_S 1.87x, BC7 4096^2 4KB_S 2.56x);
  never slower (unaligned 4x4 cases fall back). A new test compares it with
  the general path over 6 swizzle modes, 6 formats, odd and even sizes,
  mips, slices and aligned and unaligned destinations; 43/43 tests pass.

Checks: victory-shader and victory-formats tests pass on Linux. The whole
workspace was checked with the CI toolchain and command
(cargo +1.98.1 clippy --workspace --all-targets --all-features --target
x86_64-pc-windows-msvc --locked -- -D warnings): the baseline already fails
with 44 errors, and this change has the same 44, none new, none on changed
lines. libdeflate's C build was stubbed for that Linux check, so it still
needs a real MSVC build.

Measured and left out (details in the analysis notes): AVX2 16-lane rANS
(0.94-1.10x), 4x-unrolled safe_merge assembly (0.85x on realistic change
rates), target-cpu=x86-64-v3 and LTO (no gain on these kernels). A two-level
dense write-watch journal (1.4-29x in a prototype) is not included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… C, f16 reverb

Four deeper changes, kept apart from the first commit on purpose: they
replace a core data structure (the write-watch journal), add assembly
with its own fault-handling labels, add C code to a crate that had none,
and make the reverb approximate. That makes them easier to review, test on
Windows and revert one by one. Each one can also be switched off at run
time (see below), except the journal.

IMPORTANT, how this was tested: the author of these changes does not own a
copy of the game. Nothing here has been run with the game, and nothing has
been run on Windows. Every number below comes from benchmarks on synthetic
data that was made up for the purpose (random journals and ranges, buffers
with made-up contents, random BCPack streams, made-up impulse responses), on
Linux, on one core of an Intel i7-13620H (AVX2, VAES, F16C, no AVX-512). Each
change was measured again on the repository's code, not only on a prototype,
and kept because it was faster.

victory-gpu: the write-watch journal as a two-level page table
- New watch/pages.rs replaces the journal's BTreeMap<page, asking>. Pages are
  grouped in chunks of 4,096 (256 MiB of title memory) made when a page of
  theirs is first noted. Each chunk keeps every page's asking (0: never) and
  a bit per written page. Questions go 64 pages (one word of bits) at a time:
  an empty word is skipped at once, a word with few written pages visits
  them by their bits (tzcnt), a word with many is compared whole with AVX2
  (4 pages an instruction). The list of written pages is sized first with
  popcount, so it is allocated once.
- Measured against the BTreeMap (sparse, medium and full journals; ranges of
  4 to 4,096 pages): nothing_new 1.2-9.7x faster, the list of written pages
  1.0-3.7x, notes 19-28x. Without the up-front sizing the list was 0.7x on
  sparse journals; fixed before this commit, so it is never slower.
- An equivalence test compares every answer with a BTreeMap over random
  notes and ranges, across chunk borders.

victory-gpu: copy and digest in one pass, in assembly
- safecopy.rs: victory_safe_copy_hash copies blocks of 128 bytes from title
  memory and takes each through the AES digest's round (VAES), reading the
  source once. The source loads are inside new fault labels in
  failing_exit; on any fault the call fails and the caller starts again the
  original way. It uses only ymm0-ymm5, the volatile registers of the
  Windows calling convention, so nothing needs saving.
- texture.rs: copy_digest() uses it where a copy of title memory was followed
  by digest(): the refresh of textures in view memory, and fingerprint(). It
  gives the same digest as digest(). It only runs with the safe copy on, no
  soft views and VAES present; otherwise, or on a fault, it does
  copy_mapped() then digest(), as before.
- Measured 1.16-1.39x faster than the safe copy (rep movsb) followed by the
  VAES digest, for 64 KiB to 8 MiB. The same bytes and the same digest as
  copy-then-digest for every length from 0 to 700 and for large ones.
- New Windows test: the same bytes and digest as copy-then-digest, and a
  decommitted page makes the call fail without a crash. It could not be run
  here.
- VICTORY_COPY_DIGEST=0 turns it off.

victory-formats: BCPack lane decoding in C
- csrc/bcpack_lanes.c, built with the cc crate (MSVC on Windows) from a new
  build.rs: the same two-pass schedule as the Rust lanes(), which stays as
  the reference and the fallback.
- decode() measured 1.17-1.20x faster on top of the first commit's
  optimizations (BC1 82 -> 98 MB/s, BC4 76 -> 89, BC7 50.5 -> 59.4).
- The round-trip test now also checks that the C version gives the same
  records as the Rust one on every lane layout, and fails on truncated
  streams.
- VICTORY_BCPACK_C=0 turns it off.

victory-hle: the reverb's impulse response as half floats
- dsp/convolve.rs keeps the response as half floats (F16C) and widens them
  as they are loaded. That halves the bytes brought in from memory for every
  block, which is the limit with long responses.
- A whole block, measured: 1.03x faster with a 0.2 s response, 1.15x with
  1 s, 1.97x with 3 s, 1.82x with 6 s.
- This is an approximation: the output differs from the float version by
  about -73 dB of its peak, measured. A test bounds it at -60 dB, and the
  existing tests (against a direct convolution) pass with it on.
- VICTORY_DSP_HALF=0 keeps the response as floats.

Checks: victory-formats (43) and victory-shader (205) tests pass on Linux,
and so do the convolution's and the journal's tests (run on Linux from
copies of the same files). The whole workspace passes cargo clippy
--workspace --all-targets --all-features --target x86_64-pc-windows-msvc
with no errors and no warnings on new or changed lines. For that Linux check
the C builds (libdeflate, BCPack) used a stand-in compiler, so they still
need a real MSVC build. Before merging, run cargo test on Windows: the
safecopy fault test and watch.rs's tests only run there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@depaolaluigi123
depaolaluigi123 force-pushed the perf/misure-ottimizzazioni branch from 0889d0c to 644ed02 Compare November 28, 2026 03:30
@lordnyx0

lordnyx0 commented Nov 28, 2026 •

Copy link
Copy Markdown

Setup

  • Title v1.0.2.1, Xbox Series S profile, -SeriesS -Dlss off -Build release
    (scripts/play-nvidia.ps1), i.e. the title's FidelityFX upscaler, no Streamline.
  • Hardware: Intel Xeon E5-2680 v4 @ 2.40 GHz (14 cores / 28 threads), RTX 3060 12 GB,
    driver 32.0.16.1656, 32 GB RAM, Windows 11 Pro build 26100.
  • Sample: steady in-world frames only (draws > 1000, 5 s frame-log windows).
  • Build tested: local main = PR head 644ed02 plus four fixes that were needed to make it
    build and pass CI here: HashSet::default() in wave64_tests.rs:642 (E0599 after your rebase),
    f16-aware tolerance in a_mono_convolution_is_computed, c added to the asset-policy allowlist
    for bcpack_lanes.c, and four pre-existing clippy lints. Without the first two, cargo test --workspace
    fails on the unmodified PR head. cargo test --workspace --locked then passed (1131 tests, 0 failed)
    and both CI clippy commands were clean.

Before vs after (medians)

Metric Before (n=53) After (n=38)
FPS 14.0 14.4
ms/frame 71.6 69.3
Preparing (submitting thread) 56.1 ms 54.3 ms
├ copies 28.9 ms / 84.9 MB 27.2 ms / 86.0 MB
├ textures 2.2 ms / 20.3 MB 1.8 ms / 20.2 MB
└ copy-back 15.4 ms / 21.7 MB 15.3 ms / 21.7 MB
Draws/frame 4389 4404

Reading it: about 2.3 ms/frame (~3%) better, almost all of it in copies and texture refresh;
copy-back and its traffic are unchanged. That is inside the ~9% run-to-run spread reported in this
repo, so this is not a clear win from these optimizations — but it is also not a regression.
Caveats: one run per build, scenes were not captured at an identical checkpoint, and both had been
running long enough to warm the pipeline/shader caches. A warm A/B with the per-change switches
(VICTORY_BCPACK_C=0, VICTORY_COPY_DIGEST=0, VICTORY_DSP_HALF=0) would be needed to attribute
the 2 ms to any single change.

AI Assisted: Open Code. || commit 2: testing

@SkylerizMe

Copy link
Copy Markdown

Windows, warm cache: main 923e38c against 923e38c + this PR, and a bug to fix when you rebase

PC: Ryzen 9 9950X3D, RTX 5080 16 GB (driver 621.10), 32 GB RAM, Windows 11, 3440x1440.
Settings (both builds): Series S 960x540, DLSS Performance, DLSS frame generation 2x, no frame cap, ray tracing off.
Both builds carry our own additions on top of 923e38c: #1444, #592, the XMA decoder thread at highest priority (from #446), and three commits from KyleS98/VIctory-Neo (write faults ask about one page; a retired-object queue per thread; VICTORY_OWN_CPUS, left off). The only difference between the two builds is this PR.

1. A bug after main's #932. Since #932, addressable() is true for the pipe/bank XOR swizzles, so detile_transposed now takes them. Its "row part + column part" address model doesn't hold for XOR modes: main's own texture::tests::xor_modes_tile_where_offset_points panics with an overflow on v - origin in the col_at line, and in a release build the wrapped offsets would likely scramble textures. What we did: return false on self.desc.swizzle.xor(), and checked_sub(origin) for the column part. After that, all 58 victory-formats tests pass.

2. It doesn't apply cleanly on 923e38c, so this is a hand merge, not your exact code:

  • watch.rs ask_rest: kept main's newer locking (holds only the pages it asks about, reads the journal's ahead without taking it), with your Ahead::holds and the sorted largest-end containment inside it. ask_more uses holds; Ahead derives Clone.
  • bitcode/opt.rs: kept main's version whole. Main reworked the same value-numbering walk today (memory, lane and shared-memory tables), so the dominance-span table is left out.
  • draw.rs, lower.rs: main's fields with your hashers. lds::analyze takes a set with any hasher.

3. Results: about 5 minutes each in the opening, world time only, each build after its own warm-up.

main + our additions + this PR
Median fps 36.5 36.0
After the first 2 minutes 38.7 37.2
Slowest 10%, after 2 minutes 30.9 26.8
Frames over 100 ms (incl. one load freeze each) 9 26
Longest while playing 184 ms 574 ms
Preparing per frame (median) 18.8 ms 17.7 ms

The extra hitches came as 300–570 ms freezes in clusters, about once a minute. No pipelines were being made at those moments, so it isn't a warm-up gap. We didn't find the cause and didn't try the per-change switches one by one. DLSS frame generation reset its frame timer 21 times, against 5. An earlier run on an older base, with only 8 of the CPU's 32 processors enabled, was also choppier: 75 against 10 frames over 100 ms in about 2.5 minutes.

(Written with Claude; numbers are from this PC's logs.)

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.

4 participants