mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 23:40:02 +01:00
Improved time management for software framerate limiter.
This commit is contained in:
@@ -188,7 +188,7 @@ void Mixer::update()
|
||||
update_time_ = gst_util_get_timestamp ();
|
||||
guint64 current_time = gst_util_get_timestamp ();
|
||||
// dt is in milisecond, with fractional precision (from micro seconds)
|
||||
dt_ = static_cast<float>( GST_TIME_AS_USECONDS(current_time - update_time_) * 0.001f);
|
||||
dt_ = static_cast<float>( GST_TIME_AS_USECONDS(current_time - update_time_) ) * 0.001f;
|
||||
update_time_ = current_time;
|
||||
|
||||
// update session and associated sources
|
||||
|
||||
Reference in New Issue
Block a user