PresentMon
PresentMon copied to clipboard
Missing data when using remote desktop multimon
Rough repro steps:
- Connect to a PC via a multimon remote desktop connection (I'm using Win10 21H2 on the remote PC in case it's relevant)
- Run a D3D12 application on the remote PC
- Run PresentMon on the remote PC
Expected result: you can see present data for the D3D12 application in PresentMon Actual result: no data is seen
The issue appears to be related to the following commit: https://github.com/GameTechDev/PresentMon/commit/09d0a1b10ba6cc9def2ab9a4bfe40197f5960ca4 (Merge remote-tracking branch 'zushi/fix-dwm-regression-on-main' into public -- 5/25/2021 5:40:29 PM)
In particular, this part:
Notice that CompletePresent(sharedptr) used to be unconditionally called in this switch statement. Neither conditionals are true in the RDP scenario above, so CompletePresent() is never called.
If I call CompletePresent() unconditionally then present data shows up as expected in a top-of-tree main build of PresentMon. I don't know if that's the right fix though.
Please let me know if I can collect logs or anything, I'm happy to help.