forge
Explore
Log in

Don't you dare go Hollow

tty: Rename presentation target offset plot to misprediction

Browse files at this commit

588e6d7cdd3e5226b726f428b545042813f92b3aIvan MolodetskikhParent: 19cafff
Makes it clearer what this is.
src/backend/tty.rsmodified+10 -9
@@ -94,8 +94,8 @@ struct Surface {
9494 vblank_frame_name: tracy_client::FrameName,
9595 /// Plot name for the VBlank dispatch offset plot.
9696 vblank_plot_name: tracy_client::PlotName,
97- /// Plot name for the presentation target offset plot.
98- presentation_plot_name: tracy_client::PlotName,
97+ /// Plot name for the presentation misprediction plot.
98+ presentation_misprediction_plot_name: tracy_client::PlotName,
9999 sequence_delta_plot_name: tracy_client::PlotName,
100100 }
101101
@@ -588,8 +588,8 @@ impl Tty {
588588 tracy_client::FrameName::new_leak(format!("vblank on {output_name}"));
589589 let vblank_plot_name =
590590 tracy_client::PlotName::new_leak(format!("{output_name} vblank dispatch offset, ms"));
591- let presentation_plot_name = tracy_client::PlotName::new_leak(format!(
592- "{output_name} presentation target offset, ms"
591+ let presentation_misprediction_plot_name = tracy_client::PlotName::new_leak(format!(
592+ "{output_name} presentation misprediction, ms"
593593 ));
594594 let sequence_delta_plot_name =
595595 tracy_client::PlotName::new_leak(format!("{output_name} sequence delta"));
@@ -606,7 +606,7 @@ impl Tty {
606606 vblank_frame: None,
607607 vblank_frame_name,
608608 vblank_plot_name,
609- presentation_plot_name,
609+ presentation_misprediction_plot_name,
610610 sequence_delta_plot_name,
611611 };
612612 let res = device.surfaces.insert(crtc, surface);
@@ -748,11 +748,12 @@ impl Tty {
748748 );
749749
750750 if !presentation_time.is_zero() {
751- let diff =
751+ let misprediction_s =
752752 presentation_time.as_secs_f64() - target_presentation_time.as_secs_f64();
753- tracy_client::Client::running()
754- .unwrap()
755- .plot(surface.presentation_plot_name, diff * 1000.);
753+ tracy_client::Client::running().unwrap().plot(
754+ surface.presentation_misprediction_plot_name,
755+ misprediction_s * 1000.,
756+ );
756757 }
757758 }
758759 Ok(None) => (),