1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 18:12:22 +00:00

vo: increase display refresh rate estimation limit from 99 Hz to 400 Hz

High refresh rate displays exists...
This commit is contained in:
Kacper Michajłow 2023-09-16 05:14:20 +02:00 committed by Dudemanguy
parent df764bc0c3
commit 7035debddf

View File

@ -438,7 +438,7 @@ static void check_estimated_display_fps(struct vo *vo)
bool use_estimated = false;
if (in->num_total_vsync_samples >= MAX_VSYNC_SAMPLES / 2 &&
in->estimated_vsync_interval <= 1e9 / 20.0 &&
in->estimated_vsync_interval >= 1e9 / 99.0)
in->estimated_vsync_interval >= 1e9 / 400.0)
{
for (int n = 0; n < in->num_vsync_samples; n++) {
if (fabs(in->vsync_samples[n] - in->estimated_vsync_interval)