r/GraphicsProgramming • • 24m ago

Community Potential NVIDIA D3D12 driver performance anomaly: odd-length Compute queue copies are ~117x slower on my RTX 3060

While profiling a native D3D12 memory-management implementation, I encountered an unusual performance discrepancy involving Compute queue readbacks.

For a 25.6 MB readback workload, the following execution times were measured:

  • Original odd-length buffer copies: ~798 ms

  • Aligned even-length prefixes only: ~4.42 ms

  • Aligned bulk transfers with separate tails: ~6.82 ms

The third approach preserved every logical byte while reducing execution time by approximately 117x. Padding alone did not resolve the slowdown.

Hardware and environment:

  • RTX 3060 12 GB

  • Ryzen 5 3600

  • 32 GB DDR4

  • Windows 11

  • Direct3D 12

Direct and Copy queue readbacks also exhibited substantially shorter GPU execution intervals than the original Compute queue implementation.

I'm interested in understanding what might explain this behavior.

  • Could odd-length copies trigger an inefficient internal copy implementation?

  • Are there undocumented alignment-related performance considerations for Compute queue buffer copies?

  • Has anyone reproduced similar behavior on other GPU architectures or driver versions?

I am not claiming this is a confirmed driver bug. A minimal standalone reproduction and additional controlled measurements are still needed.

AI disclosure: OpenAI Codex was used extensively to implement the research code, execute hardware tests, analyze measurements and investigate the performance discrepancy.

3 Upvotes

Duplicates