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:
jp9000
2015-04-01 16:23:32 -07:00
parent ebfe477caf
commit 1a9c512f38
2 changed files with 14 additions and 0 deletions

View File

@@ -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 */