libobs: Add functions to disable main preview
If you don't need to see what's displayed, then this is particularly useful for two reasons: 1. It reduces the number of draw/present calls 2. It can prevent issues with certain hardware setups where rendering on a monitor hooked up to a separate card can experience slowdowns
This commit is contained in:
@@ -555,6 +555,9 @@ EXPORT void obs_load_sources(obs_data_array_t *array);
|
||||
/** Saves sources to a data array */
|
||||
EXPORT obs_data_array_t *obs_save_sources(void);
|
||||
|
||||
EXPORT void obs_preview_set_enabled(bool enable);
|
||||
EXPORT bool obs_preview_enabled(void);
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* View context */
|
||||
|
Reference in New Issue
Block a user