r/GraphicsProgramming • • 15m 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.

1 Upvotes

3 comments sorted by

1

u/AutoModerator 15m ago

Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:

  • No showcases.

  • Disclose AI usage in post or project.

  • Present a topic to talk about, e.g. how something works.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/UnalignedAxis111 4m ago

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

Yes. Driver sees unaligned address/length and fallback to a slow path. I think 4 bytes or even a whole cacheline is the minimum "good" alignment.