hecomi / uWindowCapture

This allows you to use Windows Graphics Capture / PrintWindow / BitBlt in Windows to capture multiple windows individually and easily use them as Texture2D in Unity.
https://tips.hecomi.com/entry/2021/04/30/230322
MIT License
504 stars 81 forks source link

(Feature suggestion) Multi-core window capture #14

Closed CurtisVL closed 5 years ago

CurtisVL commented 5 years ago

Hi there!

Is it possible to capture windows async? I researched it myself briefly but wasn't sure if PrintWindow could be used async.

If so, this would be an amazing additional as generally capturing just one window at 30 FPS can be enough to max out a single core on a lot of CPUs.

Thanks! :)

hecomi commented 5 years ago

Thank you for the suggestion.

But it seems impossible to use capture functions asynchronously. At the beginning phase of the development, I implemented async capture but the performance wasn't improved...

CurtisVL commented 5 years ago

Thanks for your fast response on this! I wasn't sure it would be possible but I wanted to ask to check! :)