Measure render attempts that produce no damage

This commit is contained in:
Samuel Onoja committed 2026-09-27 07:01:31 +01:00
1 parent 473ce8b332
commit da5397940b
3 files changed
+47

No files matched your search

+2
View File
@@ -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.