[$100] obs_reset_video causes black monitor_capture #12367
Unanswered
Segergren
asked this question in
Development Questions
Replies: 1 comment
-
|
Are you trying to record a game? Is that game framerate-limited? If it's not, the game will starve your app of resources and everything will be laggy. The nvidia driver (if that's what I you're using) automatically prioritizes official OBS builds, but not other builds. If run as admin, OBS will give itself priority for GPU resources, you could presumably do the same. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
EDIT! I've now setup a minimalistic repo to reproduce the issue: https://github.com/Segergren/obs-csharp-example/tree/working-with-screen-tearing-and-lag
Hi! So I have had this issue where
monitor_capturelags a lot when recording. It does not lag when recording through OBS so there must be some type of bug in my application. One thing I can think of is that I'm not loading the modules in the correct order according to the docs: https://docs.obsproject.com/frontends#initialization-and-shutdownDocs:
obs_startup()->obs_reset_video()->obs_reset_audio()->obs_add_module_path()->obs_load_all_modules()->obs_post_load_modules().Segra:
obs_startup()->obs_add_module_path()->obs_reset_audio()->obs_load_all_modules()->obs_reset_video()->obs_post_load_modules()If I change the order in Segra so that I run
obs_reset_video()beforeobs_load_all_modules();it causesmonitor_captureto haveinstead of just logging
Does anyone have any clue on what can cause this behaviour or any idea on how to fix this.
If you can help me with any clue that lead to the black screen and the lag is gone, I'll issue a $100 bug bounty to you :)
Here is the current initialization code (without black screen because I call
obs_load_all_modules()beforeobs_reset_video().Code for init: https://github.com/Segergren/Segra/blob/984bba1ab30a26100f34a88f8190e85657a6af86/Backend/Utils/OBSUtils.cs#L227
Code for setting up
monitor_capture: https://github.com/Segergren/Segra/blob/984bba1ab30a26100f34a88f8190e85657a6af86/Backend/Utils/OBSUtils.cs#L382Beta Was this translation helpful? Give feedback.
All reactions