Measure render attempts that produce no damage
This commit is contained in:
1 parent
473ce8b332
commit
da5397940b
3 files changed
+47
No files matched your search
@@ -901,6 +901,8 @@ pub fn init(event_loop: &mut EventLoop<Ferese>, state: &mut Ferese) -> Result<()
|
||||
let (damage, effects) = match rendered {
|
||||
Ok((Some(damage), effects)) => (damage, effects),
|
||||
Ok((None, _)) => {
|
||||
render_metrics
|
||||
.record_no_damage(render_started.elapsed(), missed_deadlines);
|
||||
// A callback means permission to draw the next client
|
||||
// frame, not proof of a new compositor presentation.
|
||||
// No-damage frames must still unblock layer clients.
|
||||
|
||||
Reference in new issue
Block a user