tty: Add commented-out wait-for-sync span
Browse files at this commit8df48c05caacff207452e6317b0e9e2e31e54245Parent: 66467c81 changed file +6 -0
- src/backend/tty.rs +6 -0
src/backend/tty.rsmodified+6 -0
| @@ -621,6 +621,12 @@ impl Tty { | |||
| 621 | ) { | 621 | ) { |
| 622 | Ok(res) => { | 622 | Ok(res) => { |
| 623 | assert!(!res.needs_sync()); | 623 | assert!(!res.needs_sync()); |
| 624 | + | ||
| 625 | + // if let PrimaryPlaneElement::Swapchain(element) = res.primary_element { | ||
| 626 | + // let _span = tracy_client::span!("wait for sync"); | ||
| 627 | + // element.sync.wait(); | ||
| 628 | + // } | ||
| 629 | + | ||
| 624 | if res.damage.is_some() { | 630 | if res.damage.is_some() { |
| 625 | let presentation_feedbacks = | 631 | let presentation_feedbacks = |
| 626 | niri.take_presentation_feedbacks(output, &res.states); | 632 | niri.take_presentation_feedbacks(output, &res.states); |