libobs: Add obs_get_active_fps function

Allows getting the current active framerate that the core is rendering
with.  This takes in to account any rendering lag or stalls that may be
occurring.
This commit is contained in:
jp9000
2016-08-22 12:04:23 -07:00
parent f8fd87bbf6
commit 95ce556051
4 changed files with 20 additions and 0 deletions

View File

@@ -1819,6 +1819,11 @@ uint64_t obs_get_video_frame_time(void)
return obs ? obs->video.video_time : 0;
}
double obs_get_active_fps(void)
{
return obs ? obs->video.video_fps : 0.0;
}
enum obs_obj_type obs_obj_get_type(void *obj)
{
struct obs_context_data *context = obj;