kms: Disable frame pacing for now
This commit is contained in:
parent
e9393f9ec0
commit
3fe082d648
1 changed files with 6 additions and 4 deletions
|
|
@ -730,6 +730,7 @@ impl KmsState {
|
||||||
}
|
}
|
||||||
if !surface.pending {
|
if !surface.pending {
|
||||||
surface.pending = true;
|
surface.pending = true;
|
||||||
|
/*
|
||||||
let duration = surface
|
let duration = surface
|
||||||
.last_submit
|
.last_submit
|
||||||
.as_ref()
|
.as_ref()
|
||||||
|
|
@ -740,12 +741,13 @@ impl KmsState {
|
||||||
DrmEventTime::Realtime(time) => time.duration_since(SystemTime::now()).ok(),
|
DrmEventTime::Realtime(time) => time.duration_since(SystemTime::now()).ok(),
|
||||||
})
|
})
|
||||||
.unwrap_or(Duration::ZERO); // + Duration::from_secs_f64((1.0 / surface.refresh_rate as f64) - 20.0);
|
.unwrap_or(Duration::ZERO); // + Duration::from_secs_f64((1.0 / surface.refresh_rate as f64) - 20.0);
|
||||||
|
*/
|
||||||
let data = (*device, *crtc);
|
let data = (*device, *crtc);
|
||||||
if surface.vrr {
|
//if surface.vrr {
|
||||||
surface.render_timer.add_timeout(Duration::ZERO, data);
|
surface.render_timer.add_timeout(Duration::ZERO, data);
|
||||||
} else {
|
//} else {
|
||||||
surface.render_timer.add_timeout(duration, data);
|
// surface.render_timer.add_timeout(duration, data);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue