hecomi / uDesktopDuplication

Desktop Duplication API implementation for Unity (only for Windows 8/10)
http://tips.hecomi.com/entry/2016/12/04/125641
MIT License
563 stars 97 forks source link

Is there any framerate cap ? #56

Open djorgri opened 2 years ago

djorgri commented 2 years ago

Hello,

i am using this great plugin in order to capture a fullscreen running emulator (Metroid on NES emulator called Mesen) for an interactive overlay for Twitch. It is working perfectly, but i have the feeling it is not working at 60 FPS. Unity app is running at 60FPS, but the game capture is a bit clunky.

Is there something to do about it? Thank you for your great plugin, and for your time!

Kindly regards, Jordy

hecomi commented 2 years ago

Sorry for the late reply.

This plugin sends a capture request to the native plugin in the main thread every frame, and retrieves the captured texture in the render thread. Could you please test it with the application frame rate fixed at 60fps?