mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 09:04:21 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user