Improve FPS handling

This commit is contained in:
Kamil Trzcinski
2022-04-07 17:46:15 +02:00
parent 08811b747b
commit c817f73051
5 changed files with 15 additions and 9 deletions

View File

@ -14,6 +14,8 @@ typedef struct buffer_lock_s {
int refs;
int dropped;
uint64_t timeout_us;
int frame_interval_ms;
} buffer_lock_t;
#define DEFAULT_BUFFER_LOCK_TIMEOUT 16 // ~60fps