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 <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-10-19 20:21:18 -04:00
parent 88e6415253
commit 9ccbaf2db8

View File

@@ -345,6 +345,11 @@ impl Chrome {
impl notedeck::App for Chrome { impl notedeck::App for Chrome {
fn update(&mut self, ctx: &mut notedeck::AppContext, ui: &mut egui::Ui) -> AppResponse { 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) { if let Some(action) = self.show(ctx, ui) {
action.process(ctx, self, ui); action.process(ctx, self, ui);
self.nav.close(); self.nav.close();