So. whenever a directx game becomes an active window, encoder performance greatly drops. going from 6ms to 70~ ms. if ther is some form of “windows” overlay on top (ex: alt+tab overlay) the still runs without droping frames in the background and the encoder also works flawlessly.
I’m using desktop duplication api and copying the frame to different texture before sending it to encoder.
Encoder running in synchronous mode.
looks like when a game is the active window, the driver is applying some sort of limiters on other functions of gpu. Can someone please help me debug this issue.