diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-18 01:21:46 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-18 01:21:46 +0100 |
commit | 0f120ca3eee991566cda704be13b0b1e41dc8d66 (patch) | |
tree | cfcf3006a73960f80bc8a9abaeb58c6e7ac1b26d /client/src/interfaces/mod.rs | |
parent | 6703f1c56605ca7dca8f7fe87b79badb764bd461 (diff) | |
download | weareserver-0f120ca3eee991566cda704be13b0b1e41dc8d66.tar weareserver-0f120ca3eee991566cda704be13b0b1e41dc8d66.tar.bz2 weareserver-0f120ca3eee991566cda704be13b0b1e41dc8d66.tar.zst |
more profiler things
Diffstat (limited to 'client/src/interfaces/mod.rs')
-rw-r--r-- | client/src/interfaces/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/interfaces/mod.rs b/client/src/interfaces/mod.rs index 09db60f..eb0eb86 100644 --- a/client/src/interfaces/mod.rs +++ b/client/src/interfaces/mod.rs @@ -20,7 +20,7 @@ pub mod profiler; use crate::{download::Downloader, network::Network, scene_prepare::ScenePreparer}; use egui::Widget; use prefabindex::PrefabIndexInterface; -use profiler::Profiler; +use profiler::{Profiler, TimingProfiler}; use std::sync::{Arc, Mutex}; use weareshared::resources::PrefabIndex; @@ -35,6 +35,7 @@ pub struct InterfaceData { pub network: Arc<Network>, pub downloader: Arc<Downloader>, pub prefab_index: Arc<PrefabIndex>, + pub render_timing: Arc<Mutex<TimingProfiler>>, } pub fn ui_selector(idata: Arc<InterfaceData>) -> impl Fn(&egui::Context) -> bool { |