diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-18 01:26:41 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-18 01:26:41 +0100 |
commit | a2c5b47e34d358f8b9b697fba8a6c52585cff8fa (patch) | |
tree | 83b1e101b7b8c2ba984294b1501ef469a5fed401 /client | |
parent | 0f120ca3eee991566cda704be13b0b1e41dc8d66 (diff) | |
download | weareserver-a2c5b47e34d358f8b9b697fba8a6c52585cff8fa.tar weareserver-a2c5b47e34d358f8b9b697fba8a6c52585cff8fa.tar.bz2 weareserver-a2c5b47e34d358f8b9b697fba8a6c52585cff8fa.tar.zst |
collapseable profiler
Diffstat (limited to 'client')
-rw-r--r-- | client/src/interfaces/profiler.rs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/client/src/interfaces/profiler.rs b/client/src/interfaces/profiler.rs index 85b5858..c6256b6 100644 --- a/client/src/interfaces/profiler.rs +++ b/client/src/interfaces/profiler.rs @@ -24,12 +24,15 @@ pub struct Profiler { impl Widget for &mut Profiler { fn ui(self, ui: &mut egui::Ui) -> egui::Response { - ui.heading("Scene"); - ui.add(&*self.idata.scene_prepare); - ui.heading("Download"); - ui.add(&*self.idata.downloader); - ui.heading("Render"); - ui.add(&*self.idata.render_timing.lock().unwrap()); + ui.collapsing("Scene", |ui| { + self.idata.scene_prepare.ui(ui); + }); + ui.collapsing("Download", |ui| { + ui.add(&*self.idata.downloader); + }); + ui.collapsing("Render", |ui| { + ui.add(&*self.idata.render_timing.lock().unwrap()); + }); ui.response() } } |