ra1nty / DXcam

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

dxcam capture speed #54

Open Monday-Leo opened 1 year ago

Monday-Leo commented 1 year ago

Hi! The dxcam capture speed is unstable, between 0-10ms.The results are as follows. Why? Is it a bug?

1.1258000000000656 7.967900000000139 2.7013000000000176 2.367800000000031 3.877499999999756 0.017199999999828464 5.908699999999989 1.8077000000000787 1.7446000000003181 6.1069999999996405 1.5810000000002766 0.030100000000032878 1.7834999999997159 1.8221000000000487 0.040300000000215164 7.366799999999785 2.05870000000008 3.1911999999998386

lucasmonstrox commented 1 year ago

ms? microsecs? ns?

Monday-Leo commented 1 year ago

ms. the capture speed is unstable.

lucasmonstrox commented 1 year ago

What is your hardware?

Monday-Leo commented 1 year ago

cpu R5 4600h gpu 1650

lucasmonstrox commented 1 year ago

So, there are no problems :)

On Mon, Mar 6, 2023 at 5:54 AM Monday-Leo @.***> wrote:

cpu R5 4600h gpu 1650

— Reply to this email directly, view it on GitHub https://github.com/ra1nty/DXcam/issues/54#issuecomment-1455497454, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJOTJ44QISLV463MD4ZTSTW2V33HANCNFSM6AAAAAAVEHA3JQ . You are receiving this because you commented.Message ID: @.***>

AI-M-BOT commented 1 year ago

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

dvdco commented 1 year ago

Looks like DXcam is running faster than you're screen, so it needs block the thread to wait for your screen to update, which will lead to relatively long capture time