GTA V (PPSA04264) Story from ~1 to ~21 FPS on Windows: findings that may speed up every title #6754

Open
opened 2026-10-16 09:40:58 +00:00 by tibzejoker · 13 comments
tibzejoker commented 2026-10-16 09:40:58 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T09:40:58Z.


Summary

We have been running GTA V (PS5, PPSA04264) on Windows (RTX 4090, i9-13900K, NVIDIA 616.92) on top of main plus a stack of
upstream PRs and a local proof of concept. Story mode went from ~1 FPS (#5694) to ~21.4 FPS (66 s window, 21.1-21.6 per
10 s slice), rendering correct, in the game's "Performance" mode (2560x1440 internal, 4K output).

Branch: https://github.com/tibzejoker/AnyPS5/tree/gtav-next11-poc34 (POC quality: env switches everywhere, some test debt, not
meant to be merged as is). Most of what we learned is not GTA-specific, and several items look like cheap, large wins for other
titles. Before splitting anything into PRs, we would like to know which directions you want and in what shape.

GTA V Story at ~21 FPS (window title shows the FPS counter)

20 s of Story with the POC branch (the window title shows the FPS counter):

https://github.com/user-attachments/assets/468466fe-23b1-48b9-89c6-23ebb23db070

Where the time went, step by step (one run each, same save, Story start, warm caches)

Step Story FPS
main + GTA PR stack (#757, #448 port, #1186, #1189), Fidelity mode ~1.0
GPU-resolved image/sampler handles, in-place read checks once per batch, CPU-path graphics buffers, Performance mode 8.4
Queue 0 draws recorded on a separate "draw thread", resident linear targets 12.0
Draw preparation on a pool of 3 threads (tickets, recorded in order), draw snapshots in ring segments 15.3
Labels / CP stores / indirect dispatches / rewind-chunk ends as ordered draw-thread jobs ~16-17
Comp-to-single DCC surfaces detiled on the GPU; dispatches prepared on the pool 17.3
DCC keys under recorded fills known without a GPU sync 17.9
mimalloc for the host heap, fast thread_local in the driver ~19
v_fma_mix / f16 interpolation off f64; native packed f16 FMA, host NaN payloads ~19-20
Our own POC switches read once in the cache key (we had added getenv calls there; main does not have them) 21.4

Findings that probably matter beyond GTA

  1. f64 emulation on GPUs without shaderDenormPreserveFloat32. NVIDIA reports false, so v_fma_mix* and the f16 interpolation
    path were emulated exactly through f64 (Interpolate in SpirvAluEmitterFloat64.cpp). GeForce runs f64 at 1/64 rate: one GTA
    compute went 8.25 → 5.3 ms with the host's fused f32 FMA instead.
  2. Exactness costs in shaders. Exact f16 FMA (round-to-odd in f32), RDNA NaN payload propagation on packed f16 and NaN payload
    repair in f16 conversions roughly doubled the SPIR-V of f16-heavy programs. With a "fast math" default (native Fma on f16x2, host
    NaN payloads) the same compute went to ~1.2 ms (1.04 M → 324 k SPIR-V words, 255 → 168 registers, no spill). Rendering looks
    identical; the f16 exactness tests of course need the exact path (kept behind APS5_POC_EXACT_MATH=1).
  3. The MinGW host runtime itself. On the draw recording thread ~22 % of busy time was the UCRT heap (operator new/free) and
    ~6 % was __emutls_get_address (MinGW GCC has no native TLS; every thread_local access is a call through pthread_getspecific).
    Our POC patches ucrtbase's heap entries to mimalloc process-wide (blocks allocated before the patch still go back to the process
    heap) and gives the driver its own __emutls_get_address over a fixed TEB slot. Side effect: a long-standing heap-corruption flake of
    agc_driver (thread-exit TLS destructors) disappeared. #6292/#6615/#6650/#6067 go in the same direction.
  4. One serialized chain. The game's frame pacing loop waits on our completion almost 100 % of the time; the PM4 worker, the draw
    preparation and the recording form one chain, so moving work between threads only helps when it removes a serialization point
    (drains at non-draw packets and at rewind-chunk ends were the big ones). We measure that with a per-10 s [draw-idle] line (why the
    recording thread is idle: waiting for preparations, for the worker, or pushing into a full pipeline).
  5. Ordering hazard found on the way. Label jobs pushed straight to the recording thread could overtake draws still being prepared
    on the pool; the POC now queues every job behind the preparations' tickets, and readers (captures, WAIT_REG_MEM, the flush hook) wait
    for queued jobs that write the range they read.
  6. Draw recipes rarely hit: per-draw user data (constant-buffer pointers that move every frame) makes 92 % of draw-cache keys miss,
    so recipes cover 0.2 % of draws in GTA. The per-draw full path is what has to be cheap.
  7. #4339 (wave64 one lane per invocation) made our hottest computes slower once fast math removed their spills (scalar work
    duplicated per invocation): a layout choice driven by the driver's pipeline statistics (registers/spill of the two-lane build) might
    be a better rule than the IR-only test.

Where it stands now

  • The recording thread is saturated again (~30 µs per job). Next CPU lever: move the order-dependent "decide" half of each draw
    (resource revalidation, target refresh, descriptor preparation, ~40 % of that thread) off it, in the DXVK CS-thread style.
  • GPU ~85 % busy; the largest remaining costs are big pixel shaders (30-150x the ISA size: exec-mask selects, legacy multiplies,
    per-texture branches).
  • Rare DEVICE_LOST with registry refresh on (off in the POC).

Questions

  1. For shader exactness: is a "fast math" mode acceptable (opt-in or default), or do you prefer device-specific native paths that stay
    exact (e.g. f32 FMA instead of f64 only where the result provably matches)?
  2. Host runtime on Windows: would you accept mimalloc (or another allocator) and a TLS replacement in core, or should these stay
    per-module?
  3. Is a recording thread for queue 0 (prepared on a pool, recorded in order) a direction you want for the driver, and how would you
    want it gated and tested?

Traces, per-step numbers and profiles are available on request. AI-assisted (Claude Code); all numbers come from runs on the machine
above.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5881897164 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T09:40:58Z. --- ## Summary We have been running GTA V (PS5, PPSA04264) on Windows (RTX 4090, i9-13900K, NVIDIA 616.92) on top of main plus a stack of upstream PRs and a local proof of concept. Story mode went from ~1 FPS (#5694) to **~21.4 FPS** (66 s window, 21.1-21.6 per 10 s slice), rendering correct, in the game's "Performance" mode (2560x1440 internal, 4K output). Branch: https://github.com/tibzejoker/AnyPS5/tree/gtav-next11-poc34 (POC quality: env switches everywhere, some test debt, not meant to be merged as is). Most of what we learned is not GTA-specific, and several items look like cheap, large wins for other titles. Before splitting anything into PRs, we would like to know which directions you want and in what shape. ![GTA V Story at ~21 FPS (window title shows the FPS counter)](https://github.com/tibzejoker/AnyPS5/releases/download/perf-gta-story-21fps-20261016/gta-story-21fps.png) 20 s of Story with the POC branch (the window title shows the FPS counter): https://github.com/user-attachments/assets/468466fe-23b1-48b9-89c6-23ebb23db070 ## Where the time went, step by step (one run each, same save, Story start, warm caches) | Step | Story FPS | |------|-----------| | main + GTA PR stack (#757, #448 port, #1186, #1189), Fidelity mode | ~1.0 | | GPU-resolved image/sampler handles, in-place read checks once per batch, CPU-path graphics buffers, Performance mode | 8.4 | | Queue 0 draws recorded on a separate "draw thread", resident linear targets | 12.0 | | Draw preparation on a pool of 3 threads (tickets, recorded in order), draw snapshots in ring segments | 15.3 | | Labels / CP stores / indirect dispatches / rewind-chunk ends as ordered draw-thread jobs | ~16-17 | | Comp-to-single DCC surfaces detiled on the GPU; dispatches prepared on the pool | 17.3 | | DCC keys under recorded fills known without a GPU sync | 17.9 | | mimalloc for the host heap, fast thread_local in the driver | ~19 | | v_fma_mix / f16 interpolation off f64; native packed f16 FMA, host NaN payloads | ~19-20 | | Our own POC switches read once in the cache key (we had added `getenv` calls there; main does not have them) | **21.4** | ## Findings that probably matter beyond GTA 1. **f64 emulation on GPUs without `shaderDenormPreserveFloat32`.** NVIDIA reports false, so `v_fma_mix*` and the f16 interpolation path were emulated exactly through f64 (`Interpolate` in SpirvAluEmitterFloat64.cpp). GeForce runs f64 at 1/64 rate: one GTA compute went 8.25 → 5.3 ms with the host's fused f32 FMA instead. 2. **Exactness costs in shaders.** Exact f16 FMA (round-to-odd in f32), RDNA NaN payload propagation on packed f16 and NaN payload repair in f16 conversions roughly doubled the SPIR-V of f16-heavy programs. With a "fast math" default (native `Fma` on f16x2, host NaN payloads) the same compute went to ~1.2 ms (1.04 M → 324 k SPIR-V words, 255 → 168 registers, no spill). Rendering looks identical; the f16 exactness tests of course need the exact path (kept behind `APS5_POC_EXACT_MATH=1`). 3. **The MinGW host runtime itself.** On the draw recording thread ~22 % of busy time was the UCRT heap (`operator new`/`free`) and ~6 % was `__emutls_get_address` (MinGW GCC has no native TLS; every `thread_local` access is a call through `pthread_getspecific`). Our POC patches ucrtbase's heap entries to mimalloc process-wide (blocks allocated before the patch still go back to the process heap) and gives the driver its own `__emutls_get_address` over a fixed TEB slot. Side effect: a long-standing heap-corruption flake of `agc_driver` (thread-exit TLS destructors) disappeared. #6292/#6615/#6650/#6067 go in the same direction. 4. **One serialized chain.** The game's frame pacing loop waits on our completion almost 100 % of the time; the PM4 worker, the draw preparation and the recording form one chain, so moving work between threads only helps when it removes a serialization point (drains at non-draw packets and at rewind-chunk ends were the big ones). We measure that with a per-10 s `[draw-idle]` line (why the recording thread is idle: waiting for preparations, for the worker, or pushing into a full pipeline). 5. **Ordering hazard found on the way.** Label jobs pushed straight to the recording thread could overtake draws still being prepared on the pool; the POC now queues every job behind the preparations' tickets, and readers (captures, WAIT_REG_MEM, the flush hook) wait for queued jobs that write the range they read. 6. **Draw recipes rarely hit**: per-draw user data (constant-buffer pointers that move every frame) makes 92 % of draw-cache keys miss, so recipes cover 0.2 % of draws in GTA. The per-draw full path is what has to be cheap. 7. **#4339 (wave64 one lane per invocation)** made our hottest computes slower once fast math removed their spills (scalar work duplicated per invocation): a layout choice driven by the driver's pipeline statistics (registers/spill of the two-lane build) might be a better rule than the IR-only test. ## Where it stands now - The recording thread is saturated again (~30 µs per job). Next CPU lever: move the order-dependent "decide" half of each draw (resource revalidation, target refresh, descriptor preparation, ~40 % of that thread) off it, in the DXVK CS-thread style. - GPU ~85 % busy; the largest remaining costs are big pixel shaders (30-150x the ISA size: exec-mask selects, legacy multiplies, per-texture branches). - Rare DEVICE_LOST with registry refresh on (off in the POC). ## Questions 1. For shader exactness: is a "fast math" mode acceptable (opt-in or default), or do you prefer device-specific native paths that stay exact (e.g. f32 FMA instead of f64 only where the result provably matches)? 2. Host runtime on Windows: would you accept mimalloc (or another allocator) and a TLS replacement in core, or should these stay per-module? 3. Is a recording thread for queue 0 (prepared on a pool, recorded in order) a direction you want for the driver, and how would you want it gated and tested? Traces, per-step numbers and profiles are available on request. AI-assisted (Claude Code); all numbers come from runs on the machine above.
MarcZX10 commented 2026-10-16 11:34:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T11:34:03Z.


The findings point to several separate tracks, and a few already have related open work: #6767 replaces the interpolation path that needs Float64 on devices without it; #6503 probes an exact f32-denormal fast path; #6067 covers mimalloc for relinked Windows games; and #6292/#6615 cover AGC lock/TLS costs. Those are related rather than proof that the POC patches are equivalent, so any follow-up should compare the exact behavior and platform scope before carrying code over.

The f16 fast-math change is a different contract question: making native f16 FMA/default host NaN handling the default would relax the current exactness behavior. An opt-in mode with explicit accuracy tests seems easier to evaluate first than a default change; title-image similarity alone does not establish guest-visible equivalence. For the f64-to-f32 FMA case, a device-specific exact path with a focused differential test could be a narrower candidate if the result equivalence is established for the relevant operands/modes. The process-wide allocator/TLS replacements and queue recording redesign affect broader runtime behavior and deserve separate proposals with stress/lifetime coverage.

Could you split the measurements by exact change and report the matching source diff plus correctness test for each proposed follow-up? That would help identify which result is independently reproducible without the GTA stack.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6214588561 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6214588561). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T11:34:03Z. --- The findings point to several separate tracks, and a few already have related open work: #6767 replaces the interpolation path that needs Float64 on devices without it; #6503 probes an exact f32-denormal fast path; #6067 covers mimalloc for relinked Windows games; and #6292/#6615 cover AGC lock/TLS costs. Those are related rather than proof that the POC patches are equivalent, so any follow-up should compare the exact behavior and platform scope before carrying code over. The f16 fast-math change is a different contract question: making native f16 FMA/default host NaN handling the default would relax the current exactness behavior. An opt-in mode with explicit accuracy tests seems easier to evaluate first than a default change; title-image similarity alone does not establish guest-visible equivalence. For the f64-to-f32 FMA case, a device-specific exact path with a focused differential test could be a narrower candidate if the result equivalence is established for the relevant operands/modes. The process-wide allocator/TLS replacements and queue recording redesign affect broader runtime behavior and deserve separate proposals with stress/lifetime coverage. Could you split the measurements by exact change and report the matching source diff plus correctness test for each proposed follow-up? That would help identify which result is independently reproducible without the GTA stack.
tibzejoker commented 2026-10-16 12:05:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T12:05:41Z.


Thanks @MarcZX100, that's useful. Agreed on splitting.

First, a correction on overlap: I hadn't seen the GTA V discussion #1203, and part of the CPU side above duplicates work already there by @MichonGoddijn231849:

  • the recording thread for queue 0 is what #1201/#1202 do, merged on Oct 15 (our branch is based on main from Oct 14, so it rebuilt the same idea in parallel);
  • finding 6 (draw recipes missing because of per-draw user data) is what #494 addresses, merged on Oct 14;
  • resident linear targets are #1191, and dispatches as ordered commit items are #1747.

So please disregard question 3 and findings 4 and 6 as proposals.

Plan for the rest, one item at a time, each measured alone on current main (which includes #1201/#1202/#494) with its own diff and correctness test:

  1. f32 FMA instead of the f64 emulation for v_fma_mix* / f16 interpolation on devices without shaderDenormPreserveFloat32. I'll compare with #6767 first rather than duplicate it, and back any remaining part with a differential test over the relevant operands and modes, as you suggest.
  2. Native f16 FMA and host NaN payloads, as an opt-in mode with explicit accuracy tests, not a default change.
  3. Host runtime on Windows (allocator, emulated TLS). I'll measure how much is left on top of #6067 and #6292/#6615 before proposing anything, as separate proposals with stress and lifetime coverage.
  4. DCC keys known from recorded fills, rewind-chunk ends as ordered jobs, and the label/preparation ordering hazard: I'll check whether they still apply to the merged #1201 path.

I'll report per-item numbers here as they come.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6215128997 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6215128997). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T12:05:41Z. --- Thanks @MarcZX100, that's useful. Agreed on splitting. First, a correction on overlap: I hadn't seen the GTA V discussion #1203, and part of the CPU side above duplicates work already there by @MichonGoddijn231849: - the recording thread for queue 0 is what #1201/#1202 do, merged on Oct 15 (our branch is based on main from Oct 14, so it rebuilt the same idea in parallel); - finding 6 (draw recipes missing because of per-draw user data) is what #494 addresses, merged on Oct 14; - resident linear targets are #1191, and dispatches as ordered commit items are #1747. So please disregard question 3 and findings 4 and 6 as proposals. Plan for the rest, one item at a time, each measured alone on current main (which includes #1201/#1202/#494) with its own diff and correctness test: 1. **f32 FMA instead of the f64 emulation for `v_fma_mix*` / f16 interpolation on devices without `shaderDenormPreserveFloat32`.** I'll compare with #6767 first rather than duplicate it, and back any remaining part with a differential test over the relevant operands and modes, as you suggest. 2. **Native f16 FMA and host NaN payloads**, as an opt-in mode with explicit accuracy tests, not a default change. 3. **Host runtime on Windows (allocator, emulated TLS).** I'll measure how much is left on top of #6067 and #6292/#6615 before proposing anything, as separate proposals with stress and lifetime coverage. 4. DCC keys known from recorded fills, rewind-chunk ends as ordered jobs, and the label/preparation ordering hazard: I'll check whether they still apply to the merged #1201 path. I'll report per-item numbers here as they come.
tibzejoker commented 2026-10-16 13:49:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T13:49:29Z.


Item 1 of the plan: v_fma_mix* / f16 interpolation, f64 emulation vs #6767's integer path vs plain f32 FMA.

Cost (RTX 4090, driver 616.92). One GTA compute program that is heavy on v_fma_mix (2548 ISA words), GPU timestamps per dispatch (APS5_GPU_TIME), same session, one run each, nothing else changed:

path per dispatch whole game
f64 emulation (current) 5.49 ms 18.71 FPS
integer path from #6767 5.22 ms 18.80 FPS
f32 FMA 1.60 ms 20.16 FPS

The SPIR-V is the same size in all three (323.7k / 325.0k / 324.9k words, agc_shader_replay on the dumped request), so the gap is the f64 and 64-bit integer rate on GeForce, not code size. On this GPU #6767 does not buy much speed; the gain comes only from going to f32.

Correctness (agc_driver_interpolation_modes, which #6767 extends with 2048 random rows x 32 modes; I added a switch that counts every differing result instead of stopping at the first, 394,752 results compared):

  • f64 emulation: 0 differences.

  • #6767's integer path: 0 differences on NVIDIA. (Earlier I suspected a NaN mismatch in it; that was the f32 path, sorry for the noise.)

  • f32 FMA: 23,694 differences. On the 1,536 hand-written hardware rows:

    • 416 are NaN payloads (the host returns its canonical NaN 0x7fffffff / 0x7fff; the hardware keeps the quieted input payload);
    • 24 are NaN instead of ±infinity in the f32-denormal-keep modes, where an f32 denormal input meets an infinity: the denormal is flushed, so the result is inf × 0;
    • 8 are one ulp off, from double rounding (f32, then f16).

    The random rows also show large differences, for example 0xc3e2c9c4 instead of 0xc3e2c000, or 0x624687da instead of 0x47800000. There the f32 result is not rounded or saturated to f16 the way the reference expects. I haven't checked yet how much of that survives into the final f16 written by the shader, so I count it as a real difference for now.

So plain f32 FMA is not an exact replacement on this GPU, and it can only be an opt-in, as you said. The narrower candidate would be a guarded fast path: use f32 FMA when the operands are finite, not denormal, and the result stays in f16 range, and fall back to #6767's exact path otherwise. That keeps guest-visible results identical and the common case cheap. I'll measure that on top of #6767 before proposing anything.

Item 2 (native f16 FMA, host NaN) comes next, with the same counting on the mix-precision test.

Instrumentation: 47b2368c2 (test-only, APS5_TEST_COUNT_MISMATCHES=1).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6216936985 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6216936985). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T13:49:29Z. --- Item 1 of the plan: `v_fma_mix*` / f16 interpolation, f64 emulation vs #6767's integer path vs plain f32 FMA. **Cost** (RTX 4090, driver 616.92). One GTA compute program that is heavy on `v_fma_mix` (2548 ISA words), GPU timestamps per dispatch (`APS5_GPU_TIME`), same session, one run each, nothing else changed: | path | per dispatch | whole game | |---|---|---| | f64 emulation (current) | 5.49 ms | 18.71 FPS | | integer path from #6767 | 5.22 ms | 18.80 FPS | | f32 FMA | 1.60 ms | 20.16 FPS | The SPIR-V is the same size in all three (323.7k / 325.0k / 324.9k words, `agc_shader_replay` on the dumped request), so the gap is the f64 and 64-bit integer rate on GeForce, not code size. On this GPU #6767 does not buy much speed; the gain comes only from going to f32. **Correctness** (`agc_driver_interpolation_modes`, which #6767 extends with 2048 random rows x 32 modes; I added a switch that counts every differing result instead of stopping at the first, 394,752 results compared): - f64 emulation: 0 differences. - #6767's integer path: 0 differences on NVIDIA. (Earlier I suspected a NaN mismatch in it; that was the f32 path, sorry for the noise.) - f32 FMA: 23,694 differences. On the 1,536 hand-written hardware rows: - 416 are NaN payloads (the host returns its canonical NaN `0x7fffffff` / `0x7fff`; the hardware keeps the quieted input payload); - 24 are NaN instead of ±infinity in the f32-denormal-keep modes, where an f32 denormal input meets an infinity: the denormal is flushed, so the result is inf × 0; - 8 are one ulp off, from double rounding (f32, then f16). The random rows also show large differences, for example `0xc3e2c9c4` instead of `0xc3e2c000`, or `0x624687da` instead of `0x47800000`. There the f32 result is not rounded or saturated to f16 the way the reference expects. I haven't checked yet how much of that survives into the final f16 written by the shader, so I count it as a real difference for now. So plain f32 FMA is not an exact replacement on this GPU, and it can only be an opt-in, as you said. The narrower candidate would be a guarded fast path: use f32 FMA when the operands are finite, not denormal, and the result stays in f16 range, and fall back to #6767's exact path otherwise. That keeps guest-visible results identical and the common case cheap. I'll measure that on top of #6767 before proposing anything. Item 2 (native f16 FMA, host NaN) comes next, with the same counting on the mix-precision test. Instrumentation: [`47b2368c2`](https://github.com/tibzejoker/AnyPS5/commit/47b2368c2) (test-only, `APS5_TEST_COUNT_MISMATCHES=1`).
MarcZX10 commented 2026-10-16 13:57:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T13:57:42Z.


Thanks for the separate timing and differential counts. The 23,694 mismatches make plain f32 FMA an unsafe replacement. One useful next check for the guarded candidate is whether each intermediate difference survives the shader’s final f16 write, while preserving the exact cases you already identified (NaN payloads, denormal/infinity, range and double rounding). I agree it should stay a separate measured change on top of #6767.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217099753 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6217099753). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-16T13:57:42Z. --- Thanks for the separate timing and differential counts. The 23,694 mismatches make plain f32 FMA an unsafe replacement. One useful next check for the guarded candidate is whether each intermediate difference survives the shader’s final f16 write, while preserving the exact cases you already identified (NaN payloads, denormal/infinity, range and double rounding). I agree it should stay a separate measured change on top of #6767.
tibzejoker commented 2026-10-16 14:43:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T14:43:41Z.


Guarded candidate, measured on top of #6767's integer path as you suggested.

Does the plain f32 difference survive the final f16 write? Partly. On the random rows, 10,752 v_interp_p2_f16 results differ before packing. After rounding both sides to f16 (RNE), 1,664 still differ: 1,528 involve a NaN on one side, 136 are numeric (denormal/flush and double-rounding cases). So most of the large intermediate differences are an artifact of comparing before the f16 write, but not all of them, and the hardware rows (NaN payloads, denormal × infinity, double rounding) are real.

Guarded path (178536006, POC switch APS5_POC_GUARDED_FMA_MIX=1). In the interpolation helper:

  • f32 FMA is used only when every flushed input and the result are finite normal values. That excludes NaN payloads, denormals, infinities, zero and overflow.
  • An f16 result rounded to nearest is rounded from the f32 bits, and must be a normal f16.
  • At an f16 midpoint of the f32 result (double-rounding risk), the direction comes from the sign of the exact residual delta*coordinate + base - fused: the product error comes from an FMA and the sums from TwoSum. All of it is exact while the product does not underflow, and that case is guarded too.
  • Everything else branches to the exact path (#6767's integer path or the f64 one). Directed f16 rounding modes stay on the exact path.

Results (RTX 4090, 394,752 compared results in agc_driver_interpolation_modes):

path differences hot GTA dispatch FPS (one run each; rows 1 and 3 from the earlier session)
#6767 integer path 0 5.22 ms 18.80
guarded f32, on #6767 0 2.95 ms 19.39
plain f32 (unsafe) 23,694 1.60 ms 20.16

agc_driver_mix_precision and the other f16/interpolation tests (15) also pass with it.

The midpoint check matters: it fires often with f16 operands. Rejecting midpoints instead of resolving them cost 3.73 ms, because a single lane on the exact path makes the whole wave run it. The remaining gap to plain f32 is the extra arithmetic plus the rarer guarded cases.

If this looks like the right shape, I'd propose it as its own PR on top of #6767 once that lands, with a test that forces each guarded edge (midpoint above/below/exact, product underflow, f16 range limits) on both sides of the branch.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6217978704 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6217978704). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T14:43:41Z. --- Guarded candidate, measured on top of #6767's integer path as you suggested. **Does the plain f32 difference survive the final f16 write?** Partly. On the random rows, 10,752 `v_interp_p2_f16` results differ before packing. After rounding both sides to f16 (RNE), 1,664 still differ: 1,528 involve a NaN on one side, 136 are numeric (denormal/flush and double-rounding cases). So most of the large intermediate differences are an artifact of comparing before the f16 write, but not all of them, and the hardware rows (NaN payloads, denormal × infinity, double rounding) are real. **Guarded path** ([`178536006`](https://github.com/tibzejoker/AnyPS5/commit/178536006), POC switch `APS5_POC_GUARDED_FMA_MIX=1`). In the interpolation helper: - f32 FMA is used only when every flushed input and the result are finite normal values. That excludes NaN payloads, denormals, infinities, zero and overflow. - An f16 result rounded to nearest is rounded from the f32 bits, and must be a normal f16. - At an f16 midpoint of the f32 result (double-rounding risk), the direction comes from the sign of the exact residual `delta*coordinate + base - fused`: the product error comes from an FMA and the sums from TwoSum. All of it is exact while the product does not underflow, and that case is guarded too. - Everything else branches to the exact path (#6767's integer path or the f64 one). Directed f16 rounding modes stay on the exact path. Results (RTX 4090, 394,752 compared results in `agc_driver_interpolation_modes`): | path | differences | hot GTA dispatch | FPS (one run each; rows 1 and 3 from the earlier session) | |---|---|---|---| | #6767 integer path | 0 | 5.22 ms | 18.80 | | guarded f32, on #6767 | **0** | **2.95 ms** | 19.39 | | plain f32 (unsafe) | 23,694 | 1.60 ms | 20.16 | `agc_driver_mix_precision` and the other f16/interpolation tests (15) also pass with it. The midpoint check matters: it fires often with f16 operands. Rejecting midpoints instead of resolving them cost 3.73 ms, because a single lane on the exact path makes the whole wave run it. The remaining gap to plain f32 is the extra arithmetic plus the rarer guarded cases. If this looks like the right shape, I'd propose it as its own PR on top of #6767 once that lands, with a test that forces each guarded edge (midpoint above/below/exact, product underflow, f16 range limits) on both sides of the branch.
tibzejoker commented 2026-10-16 15:12:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T15:12:35Z.


Item 2 (native f16 FMA and host NaN payloads): dropping it, it no longer buys anything measurable.

Same session, one GTA Story run each, all with the guarded interpolation path from above:

f16 math agc_driver f16/interpolation tests (26) hot dispatch FPS
exact (current upstream behaviour) 26/26 5.50 ms 19.92
native f16 FMA, exact NaN handling 25/26 (packed_float16_native: Vulkan does not require f16vec2 Fma to be fused) 4.43 ms 20.5 (steady slices)
native FMA + host NaN payloads 19/26 2.90 ms 19.77

The hot program does get cheaper, but frames don't get faster: with the guarded interpolation path the frame is now limited on the CPU side, so the remaining f16 savings disappear into idle GPU time. The only way native f16 FMA could become legitimate is a startup probe showing the device fuses it (like #6503 does for f32 denormal flushing), and that's not worth a proposal without a frame-time gain.

Next: item 3 (allocator / TLS) measured against #6067 and #6292/#6615.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218525298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6218525298). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T15:12:35Z. --- Item 2 (native f16 FMA and host NaN payloads): **dropping it**, it no longer buys anything measurable. Same session, one GTA Story run each, all with the guarded interpolation path from above: | f16 math | `agc_driver` f16/interpolation tests (26) | hot dispatch | FPS | |---|---|---|---| | exact (current upstream behaviour) | 26/26 | 5.50 ms | 19.92 | | native f16 FMA, exact NaN handling | 25/26 (`packed_float16_native`: Vulkan does not require `f16vec2 Fma` to be fused) | 4.43 ms | 20.5 (steady slices) | | native FMA + host NaN payloads | 19/26 | 2.90 ms | 19.77 | The hot program does get cheaper, but frames don't get faster: with the guarded interpolation path the frame is now limited on the CPU side, so the remaining f16 savings disappear into idle GPU time. The only way native f16 FMA could become legitimate is a startup probe showing the device fuses it (like #6503 does for f32 denormal flushing), and that's not worth a proposal without a frame-time gain. Next: item 3 (allocator / TLS) measured against #6067 and #6292/#6615.
tibzejoker commented 2026-10-16 15:19:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T15:19:55Z.


Item 3 (host runtime on Windows): nothing to propose beyond #6067 and #6615.

#6067 is the same allocator change (mimalloc for the whole process) and #6615 is the same TLS change (per-draw thread-locals in TEB slots) as ours. Measured on our branch, same session, one GTA Story run each:

change FPS
both on 20.01
mimalloc off (APS5_NO_MIMALLOC=1) 20.00 (RAM 25 GB instead of 27)
libgcc emulated TLS back (our TLS commit reverted) 19.82

Both were worth a few percent earlier, when the draw path made far more allocations and thread_local lookups per draw. Now that the frame is bound elsewhere, they are within run-to-run noise for GTA. mimalloc did fix a heap-corruption flake in our agc_driver test runs, but that is a stability argument for #6067, not a performance one. So for these two I'd defer to #6067 and #6615 rather than open anything.

For reference, current upstream main + #6488 runs the same GTA Story scene at ~14.6 FPS on this machine (frame counter), against ~20 on our branch. Item 4 (CPU-side ordering and DCC keys on the merged #1201 path) is where the remaining difference is, so that's next.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6218670696 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6218670696). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T15:19:55Z. --- Item 3 (host runtime on Windows): **nothing to propose beyond #6067 and #6615**. #6067 is the same allocator change (mimalloc for the whole process) and #6615 is the same TLS change (per-draw thread-locals in TEB slots) as ours. Measured on our branch, same session, one GTA Story run each: | change | FPS | |---|---| | both on | 20.01 | | mimalloc off (`APS5_NO_MIMALLOC=1`) | 20.00 (RAM 25 GB instead of 27) | | libgcc emulated TLS back (our TLS commit reverted) | 19.82 | Both were worth a few percent earlier, when the draw path made far more allocations and `thread_local` lookups per draw. Now that the frame is bound elsewhere, they are within run-to-run noise for GTA. mimalloc did fix a heap-corruption flake in our `agc_driver` test runs, but that is a stability argument for #6067, not a performance one. So for these two I'd defer to #6067 and #6615 rather than open anything. For reference, current upstream main + #6488 runs the same GTA Story scene at ~14.6 FPS on this machine (frame counter), against ~20 on our branch. Item 4 (CPU-side ordering and DCC keys on the merged #1201 path) is where the remaining difference is, so that's next.
tibzejoker commented 2026-10-16 16:05:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T16:05:53Z.


Item 4, plus what actually separates our branch from current main.

The three CPU items I listed:

  • Label/preparation ordering hazard: does not apply to main. On main (#1201/#1202), draw commits and labels go through one FIFO (DrawPipeline::Enqueue(commit, writes, labelAddress, labelBytes)) and preparation stays on the packet thread. Ours appeared only because our branch prepares draws on a parallel pool, which main doesn't have.
  • DCC keys known from recorded fills: main still syncs in WaitForKeyWriters / currentDccKeys. On our branch, turning it off costs 2.4 % (19.48 vs 19.96 FPS), at the edge of run-to-run noise. Not worth a proposal on its own.
  • Rewind-chunk ends as ordered jobs: 0 % (19.89 vs 19.96). Dropped.

What does matter. Knock-outs on our branch, same session, one run each, reference 19.96 FPS:

turned off FPS
resident linear color targets 17.46 −12.5 %
GPU detile of comp-to-single DCC surfaces 18.31 −8.3 %
parallel draw preparation 18.88 −5.4 %
label jobs 20.01 0
queue-0 dispatches on the draw thread 20.04 0

The largest one is small, so I ported it alone onto current main: a69b6287f on perf/resident-linear-targets, 18 lines on main eb901bcf4.

  • What it does: a linear color target whose memory already has a host import gets a resident image, like tiled targets. Its results go back to guest memory right after the draw through a recorded store, so CPU readers still see them. Before, each draw took a synchronous copy-in / draw / copy-out with a CPU wait.
  • What it does not do: no import is created for it (lookup only). My first port created one, and that broke pixel_ancillary_word / pixel_fixed_point_position: an import made over a short-lived test block left the reused address unwatched.
  • GTA V Story, main + #6488: 14.64 → 16.47 FPS (frame counter, 150 s window, same scene, rendering checked).
  • Tests: agc_driver|agc_masked 472/473 on Windows/NVIDIA. The one failure is gpu_indirect_arguments_misaligned_writer_ahead, which does not compile with MinGW on main (alignas(65536)); #6452 fixes it.

@MichonGoddijn231849 this overlaps your #1191 (resident linear targets). Yours is ~6,000 commits behind main and conflicts in 10 files; this is a much narrower take on the same idea. Happy to fold it into #1191 or drop it in favour of a rebased #1191, whichever you prefer. The number above is the one to compare against.

The GPU detile of comp-to-single surfaces (main still expands them on the CPU in ExpandSingleBlocks) is the next one I'll port and measure on main the same way.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6219534980 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6219534980). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T16:05:53Z. --- Item 4, plus what actually separates our branch from current main. **The three CPU items I listed:** - **Label/preparation ordering hazard: does not apply to main.** On main (#1201/#1202), draw commits and labels go through one FIFO (`DrawPipeline::Enqueue(commit, writes, labelAddress, labelBytes)`) and preparation stays on the packet thread. Ours appeared only because our branch prepares draws on a parallel pool, which main doesn't have. - **DCC keys known from recorded fills:** main still syncs in `WaitForKeyWriters` / `currentDccKeys`. On our branch, turning it off costs 2.4 % (19.48 vs 19.96 FPS), at the edge of run-to-run noise. Not worth a proposal on its own. - **Rewind-chunk ends as ordered jobs:** 0 % (19.89 vs 19.96). Dropped. **What does matter.** Knock-outs on our branch, same session, one run each, reference 19.96 FPS: | turned off | FPS | | |---|---|---| | resident linear color targets | 17.46 | −12.5 % | | GPU detile of comp-to-single DCC surfaces | 18.31 | −8.3 % | | parallel draw preparation | 18.88 | −5.4 % | | label jobs | 20.01 | 0 | | queue-0 dispatches on the draw thread | 20.04 | 0 | The largest one is small, so I ported it alone onto current main: [`a69b6287f`](https://github.com/tibzejoker/AnyPS5/commit/a69b6287f) on `perf/resident-linear-targets`, 18 lines on main eb901bcf4. - **What it does:** a linear color target whose memory already has a host import gets a resident image, like tiled targets. Its results go back to guest memory right after the draw through a recorded store, so CPU readers still see them. Before, each draw took a synchronous copy-in / draw / copy-out with a CPU wait. - **What it does not do:** no import is created for it (lookup only). My first port created one, and that broke `pixel_ancillary_word` / `pixel_fixed_point_position`: an import made over a short-lived test block left the reused address unwatched. - **GTA V Story, main + #6488:** 14.64 → **16.47 FPS** (frame counter, 150 s window, same scene, rendering checked). - **Tests:** `agc_driver|agc_masked` 472/473 on Windows/NVIDIA. The one failure is `gpu_indirect_arguments_misaligned_writer_ahead`, which does not compile with MinGW on main (`alignas(65536)`); #6452 fixes it. @MichonGoddijn231849 this overlaps your #1191 (resident linear targets). Yours is ~6,000 commits behind main and conflicts in 10 files; this is a much narrower take on the same idea. Happy to fold it into #1191 or drop it in favour of a rebased #1191, whichever you prefer. The number above is the one to compare against. The GPU detile of comp-to-single surfaces (main still expands them on the CPU in `ExpandSingleBlocks`) is the next one I'll port and measure on main the same way.
tibzejoker commented 2026-10-16 16:16:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T16:16:38Z.


Second one ported alone onto main: GPU detile of comp-to-single DCC surfaces (dd193d5d2 on perf/gpu-single-key-detile, 22 lines on main eb901bcf4).

What it does. A surface whose DCC keys are all comp-to-single is currently read on the CPU, expanded by ExpandSingleBlocks and uploaded through staging. With a host import over it, it now detiles on the GPU straight from the import, like an uncompressed surface. The detile shader reads each element from the start of its 256-byte key block, which holds the block's single value. Thick surfaces, and formats whose element doesn't divide 256 bytes, keep the CPU path.

GTA V Story, main + #6488, frame counter, 150 s window, same scene, rendering checked:

FPS
main + #6488 14.64
+ resident linear targets 16.47
+ GPU single-key detile 17.17

agc_driver|agc_masked: 474/475; the only failure is the MinGW alignas build break that #6452 fixes.

Before turning either into a PR, I'll add a test for each that fails on main and passes with the change:

  • a CPU read of a resident linear target right after a draw;
  • a comp-to-single surface detiled on the GPU, compared with the CPU expansion.

The remaining piece of our gap, parallel draw preparation (−5.4 % when off), is a structural change to #1201's model rather than a small diff, so I'm not proposing it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6219754007 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6219754007). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T16:16:38Z. --- Second one ported alone onto main: GPU detile of comp-to-single DCC surfaces ([`dd193d5d2`](https://github.com/tibzejoker/AnyPS5/commit/dd193d5d2) on `perf/gpu-single-key-detile`, 22 lines on main eb901bcf4). **What it does.** A surface whose DCC keys are all comp-to-single is currently read on the CPU, expanded by `ExpandSingleBlocks` and uploaded through staging. With a host import over it, it now detiles on the GPU straight from the import, like an uncompressed surface. The detile shader reads each element from the start of its 256-byte key block, which holds the block's single value. Thick surfaces, and formats whose element doesn't divide 256 bytes, keep the CPU path. **GTA V Story, main + #6488**, frame counter, 150 s window, same scene, rendering checked: | | FPS | |---|---| | main + #6488 | 14.64 | | + resident linear targets | 16.47 | | + GPU single-key detile | 17.17 | `agc_driver|agc_masked`: 474/475; the only failure is the MinGW `alignas` build break that #6452 fixes. Before turning either into a PR, I'll add a test for each that fails on main and passes with the change: - a CPU read of a resident linear target right after a draw; - a comp-to-single surface detiled on the GPU, compared with the CPU expansion. The remaining piece of our gap, parallel draw preparation (−5.4 % when off), is a structural change to #1201's model rather than a small diff, so I'm not proposing it.
tibzejoker commented 2026-10-16 17:29:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T17:29:48Z.


Update: the resident linear targets are now #6892 (with a test that fails on main's path, on NVIDIA and Intel, and a performance report). The GPU single-key detile turned out to be covered by #6848 (NFSS10, opened the same day): in GTA, #6848 alone gives the same gain (16.47 → 17.30 FPS on top of #6892) and ours adds nothing on top, so I'm not proposing it. Data posted on #6848.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6221061355 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6221061355). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T17:29:48Z. --- Update: the resident linear targets are now **#6892** (with a test that fails on main's path, on NVIDIA and Intel, and a performance report). The GPU single-key detile turned out to be covered by **#6848** (NFSS10, opened the same day): in GTA, #6848 alone gives the same gain (16.47 → 17.30 FPS on top of #6892) and ours adds nothing on top, so I'm not proposing it. Data posted on #6848.
akkadbakkad89 commented 2026-10-16 20:33:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by akkadbakkad89 on 2026-10-16T20:33:55Z.


Second-GPU datapoint for the guarded interpolation path (178536006, APS5_POC_GUARDED_FMA_MIX=1): Windows 11, RTX 3070 (Ampere, driver 617.42 — NVIDIA, so also without shaderDenormPreserveFloat32), WinLibs GCC 15.2 build.

  • agc_driver_interpolation_modes with APS5_TEST_COUNT_MISMATCHES=1: 0 differences in all three selectable paths — the default f64 emulation, the guarded f32 path, and the integer path via APS5_POC_INTEGER_INTERPOLATE=1. Matches your 4090 table exactly.
  • The f16/interpolation test group (12 tests incl. mix_precision, packed_float16_native, the float16 rounding/modifier tests) with the guarded path on: 11/12 pass; agc_driver_float16_native could not link on the POC branch here because 3rdparty/mimalloc is not fetchable — unrelated to the guarded path.
  • The one caveat I cannot check: per-dispatch timings, no GTA access. Correctness-wise the guarded path reproduces your 0-difference result on a second NVIDIA family.
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224179089 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6224179089). Originally posted by [akkadbakkad89](https://github.com/akkadbakkad89) on 2026-10-16T20:33:55Z. --- Second-GPU datapoint for the guarded interpolation path (178536006, APS5_POC_GUARDED_FMA_MIX=1): Windows 11, RTX 3070 (Ampere, driver 617.42 — NVIDIA, so also without shaderDenormPreserveFloat32), WinLibs GCC 15.2 build. - agc_driver_interpolation_modes with APS5_TEST_COUNT_MISMATCHES=1: 0 differences in all three selectable paths — the default f64 emulation, the guarded f32 path, and the integer path via APS5_POC_INTEGER_INTERPOLATE=1. Matches your 4090 table exactly. - The f16/interpolation test group (12 tests incl. mix_precision, packed_float16_native, the float16 rounding/modifier tests) with the guarded path on: 11/12 pass; agc_driver_float16_native could not link on the POC branch here because 3rdparty/mimalloc is not fetchable — unrelated to the guarded path. - The one caveat I cannot check: per-dispatch timings, no GTA access. Correctness-wise the guarded path reproduces your 0-difference result on a second NVIDIA family.
tibzejoker commented 2026-10-16 20:34:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by tibzejoker on 2026-10-16T20:34:43Z.


Thanks @akkadbakkad89, good to have Ampere agree with the 0-difference result. On mimalloc: the POC branch pins microsoft/mimalloc at fbd8b99c2 (a 'merge from dev' commit, not a tag), which a shallow submodule fetch can't reach. git submodule update --init --no-recommend-shallow 3rdparty/mimalloc (or a non-shallow clone) should get it. Either way it's unrelated to the guarded path, which would go upstream on its own on top of #6767.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6224192133 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6224192133). Originally posted by [tibzejoker](https://github.com/tibzejoker) on 2026-10-16T20:34:43Z. --- Thanks @akkadbakkad89, good to have Ampere agree with the 0-difference result. On mimalloc: the POC branch pins microsoft/mimalloc at fbd8b99c2 (a 'merge from dev' commit, not a tag), which a shallow submodule fetch can't reach. `git submodule update --init --no-recommend-shallow 3rdparty/mimalloc` (or a non-shallow clone) should get it. Either way it's unrelated to the guarded path, which would go upstream on its own on top of #6767.
MarcZX10 commented 2026-10-17 01:20:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T01:20:25Z.


Thanks for running the mismatch comparison on an RTX 3070. Zero differences across the three paths on a second NVIDIA family is useful correctness evidence for the guarded interpolation path. The report also clearly marks the limits: there are no per-dispatch timings or GTA run on that GPU, so the performance effect remains measured on the RTX 4090 only. Any upstream follow-up should stay separate from #6767 and carry the differential edge tests onto current main after its dependency is integrated.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6227882923 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6754#issuecomment-6227882923). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T01:20:25Z. --- Thanks for running the mismatch comparison on an RTX 3070. Zero differences across the three paths on a second NVIDIA family is useful correctness evidence for the guarded interpolation path. The report also clearly marks the limits: there are no per-dispatch timings or GTA run on that GPU, so the performance effect remains measured on the RTX 4090 only. Any upstream follow-up should stay separate from #6767 and carry the differential edge tests onto current main after its dependency is integrated.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#6754
No description provided.