sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 638 forks source link

DXGI Duplication in loop get slow and a lot of SharpDXException when not move the cursor! #861

Open kenpachino1 opened 7 years ago

kenpachino1 commented 7 years ago

I modified the Duplication Sample a bit to let it run in loop and calculate how many loops it could handle. I got around 5 to 10 loops per second, with a lot of SharpDXException thrown, I think they came from AcquireNextFrame as #839 mentioned. The weird thing is, if I move the mouse continuously, I might get up to 160 loops per second. Why could cursor cause this issue?