ra1nty / DXcam

A Python high-performance screen capture library for Windows using Desktop Duplication API
MIT License
457 stars 67 forks source link

Slower than win32 capture screen #53

Open fgglk12 opened 1 year ago

fgglk12 commented 1 year ago

I am using Win32's window handles to take screenshots almost 10 times faster than dxcam, does dxcam support window handles?

hopepanwei commented 1 year ago

There is indeed this strange problem. The screenshot of win32 handle can be 250fps

Dxcam only has 110-150fps

All use 640 * 640

nv 3080 12G

Dxcam version:last

I suspect it is caused by image clipping, but I am not very familiar with the code...

lucasmonstrox commented 1 year ago

@hopepanwei are you sure? Can you give me piece of codes? I think 250fps hard to get :|

AI-M-BOT commented 1 year ago

Check this https://github.com/AI-M-BOT/DXcam/releases/tag/1.0

@hopepanwei are you sure? Can you give me piece of codes? I think 250fps hard to get :|

With win32 handle it is easy peasy to each 250+ fps Check this https://stackoverflow.com/questions/3586046/fastest-way-to-take-a-screenshot-with-python-on-windows

ninjatall12 commented 1 year ago

Check this https://github.com/AI-M-BOT/DXcam/releases/tag/1.0

@hopepanwei are you sure? Can you give me piece of codes? I think 250fps hard to get :|

With win32 handle it is easy peasy to each 250+ fps Check this https://stackoverflow.com/questions/3586046/fastest-way-to-take-a-screenshot-with-python-on-windows

Could you compile for python 3.11? If possible give the prompt you used to compile it with all included modules with nuitka?