summaryrefslogtreecommitdiff
path: root/client/src/interfaces/profiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/interfaces/profiler.rs')
-rw-r--r--client/src/interfaces/profiler.rs15
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()
}
}