Rework capture sleeps for better frame stability

This commit is contained in:
ns6089
2023-05-12 17:39:58 +03:00
committed by Cameron Gutman
parent 42a77b247e
commit 6683ea2ac1
2 changed files with 55 additions and 17 deletions

View File

@@ -41,7 +41,7 @@ namespace stat_trackers {
struct {
std::chrono::steady_clock::steady_clock::time_point last_callback_time = std::chrono::steady_clock::now();
T stat_min = std::numeric_limits<T>::max();
T stat_max = 0;
T stat_max = std::numeric_limits<T>::min();
double stat_total = 0;
uint32_t calls = 0;
} data;