mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
add log performance button in proxy ui
This commit is contained in:
parent
0bac664c0f
commit
3beed97f2d
10 changed files with 110 additions and 47 deletions
|
@ -2319,6 +2319,12 @@ impl App {
|
|||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
let mut temp = netman.log_performance.load(Ordering::Relaxed);
|
||||
if ui.checkbox(&mut temp, "log performance metrics, requires noita to be restarted").changed() {
|
||||
netman.log_performance.store(temp, Ordering::Relaxed);
|
||||
}
|
||||
}
|
||||
}
|
||||
ConnectedMenu::Mods => {
|
||||
let mods_list = netman.active_mods.lock().unwrap();
|
||||
|
|
|
@ -213,6 +213,7 @@ pub struct NetManager {
|
|||
pub players_sprite: Mutex<FxHashMap<OmniPeerId, (Option<WorldPos>, bool, bool, RgbaImage)>>,
|
||||
pub reset_map: AtomicBool,
|
||||
colors: Mutex<FxHashMap<u16, u32>>,
|
||||
pub log_performance: AtomicBool,
|
||||
}
|
||||
|
||||
impl NetManager {
|
||||
|
@ -255,6 +256,7 @@ impl NetManager {
|
|||
no_chunkmap_to_players: AtomicBool::new(true),
|
||||
no_chunkmap: AtomicBool::new(true),
|
||||
colors: Default::default(),
|
||||
log_performance: AtomicBool::new(false),
|
||||
}
|
||||
.into()
|
||||
}
|
||||
|
@ -1064,6 +1066,10 @@ impl NetManager {
|
|||
"perk_ban_list",
|
||||
lst.perk_ban_list.unwrap_or(def.perk_ban_list).as_str(),
|
||||
);
|
||||
state.try_ws_write_option(
|
||||
"log_performance",
|
||||
self.log_performance.load(Ordering::Relaxed),
|
||||
);
|
||||
state.try_ws_write_option(
|
||||
"spell_ban_list",
|
||||
lst.spell_ban_list.unwrap_or(def.spell_ban_list).as_str(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue