From 9ccbaf2db8721331b49c975118168a23e7b57d0f Mon Sep 17 00:00:00 2001 From: kernelkind Date: Sun, 19 Oct 2025 20:21:18 -0400 Subject: [PATCH] chore(tracy): repaint every frame since we stop rendering when there is no user input, tracy sees big hangs, and it's annoying to parse through which frames are actual performance issues and which are due to no user input. So just repaint every frame while using tracy. Signed-off-by: kernelkind --- crates/notedeck_chrome/src/chrome.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs index 11818ad..830f3cb 100644 --- a/crates/notedeck_chrome/src/chrome.rs +++ b/crates/notedeck_chrome/src/chrome.rs @@ -345,6 +345,11 @@ impl Chrome { impl notedeck::App for Chrome { fn update(&mut self, ctx: &mut notedeck::AppContext, ui: &mut egui::Ui) -> AppResponse { + #[cfg(feature = "tracy")] + { + ui.ctx().request_repaint(); + } + if let Some(action) = self.show(ctx, ui) { action.process(ctx, self, ui); self.nav.close();