I have the problem that SubmitVideoData is sometimes very slow when passing a byte-array, taking sometimes up over 85 milliseconds. First, here is my system (4)
This is mostly the case when a 3D-application (such as Dirty Bomb, Counter-Strike or to an extend even something non-demanding like DDLC) is in the foreground.
Then SubmitVideoData becomes extremely slow. This is independent of whether I sleep between submitting two frames (1), I busy-wait (2) or I use native code.
Using the native-code my CPU usage barely reaches 50%, so I doubt I’m bottle-necked there, and even the C#-client with busy-wait is only at around 65%.
I would have tried to change the CPU usage preset of the encoder, however I couldn’t find the setting.
All of this wouldn’t be that big of an issue, however when a frame isn’t submitted on time, the encoder instead encodes a dark green frame for me, which leads to rather annoying flickering.
Is there any other info I can provide?