mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-15 04:09:59 +01:00
Player slight improvements
tick marks count adapted to fps, clamped refresh frequency computation, listing of all sources playable from menu
This commit is contained in:
@@ -1250,6 +1250,6 @@ void MediaPlayer::TimeCounter::tic ()
|
||||
// calculate instantaneous framerate
|
||||
// Exponential moving averate with previous framerate to filter jitter
|
||||
if (dt > 1.0)
|
||||
fps = 0.5 * fps + 500.0 / dt ;
|
||||
fps = CLAMP( 0.5 * fps + 500.0 / dt, 0.0, 1000.0) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user