[$100] Display capture (monitor_capture) causes lag
Monitor capture causes hitching and poor performance. This is possibly because we reset the video ResetVideoSettings() after loading modules obs_load_all_modules(), see InitializeAsync() in OBSUtils. However, changing the order causes the entire video to be black. This issue is only for monitor_capture.
See: https://docs.obsproject.com/frontends#initialization-and-shutdown
Since this is an important part of the application and I have debugged multiple times without success, I'm issuing a $100 bounty as a reward. The bug is considered fixed when the FPS no longer drops as it does now (~40%). I'll verify it with Counter-Strike 2.
I've now created https://github.com/Segergren/obs-csharp-example/tree/main to make it easier to try to fix this issue!
I'm still not sure what the issue is. I'm not even sure it's related to the order 🤔