Performance of Direct2D is too low on RTX 40 series GPU

Hello. I’m developing a game that runs on Windows using Direct2D.

After recently upgrading my laptop, I noticed that the performance of the game is very poor.

After investigation, it occurs on RTX 4070 Laptop GPU, RTX 4090 Laptop GPU, and RTX 4070 Ti Desktop GPU, and there were no performance issues on RTX 30, 20, Intel iGPU, and AMD iGPU/dGPU.

The max framerate is just fine, but the low 1% drops drastically. A stall (x ms) occurs during the execution of Direct2D’s API (DrawTextLayout, DrawImage, etc.), which seriously adversely affects the low 1% frame.

Regardless of Vertical Sync or NVIDIA Reflex, performance drops significantly.

Since June of this year until now, even though I updated the driver steadily, it did not improve at all, so I made an inquiry.

Hi there @pcfulife, welcome to the NVIDIA developer forums.

This is the first that I hear of this kind of issue, but then again, not many game devs are still using Direct2D as an API since underneath it uses Direct3D anyway. The translation layer is within Microsoft libraries, which makes it pretty difficult to debug from the NVIDIA driver side. But you could still try to check for example with NVIDIA NSight which D3D calls are affected during the stalls.

I am sorry if I can’t be of more help right now.

Try turning off “Low Latency Mode” in the Nvidia Control Panel. This setting was very noticeably hindering my 2D performance in benchmarks.