mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-16 08:21:40 -04:00
wlr_frame_scheduler: Add predictive frame scheduler
The predictive frame scheduler builds upon the presentation scheduler, adding a delay based on the measured CPU and GPU time required to prepare a frame to place the frame event as close as safely possible to the commit deadline.
This commit is contained in:
parent
e70de3ffaa
commit
df562a8e70
5 changed files with 246 additions and 48 deletions
|
|
@ -329,6 +329,9 @@ int wlr_render_timer_get_duration_ns(struct wlr_render_timer *timer) {
|
|||
}
|
||||
|
||||
void wlr_render_timer_destroy(struct wlr_render_timer *timer) {
|
||||
if (!timer) {
|
||||
return;
|
||||
}
|
||||
if (!timer->impl->destroy) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue