Skip to content

Commit

Permalink
Fix Tracy
Browse files Browse the repository at this point in the history
  • Loading branch information
PieKing1215 committed Feb 1, 2023
1 parent 76f625e commit c214c01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ steamworks_sdk_151/*
Cargo.lock

# tools
/Tracy-0.7.8
/Tracy-0.8.7
/Tracy-0.9.7
mods.svg
4 changes: 2 additions & 2 deletions fs_common/src/game/common/world/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,15 +225,15 @@ impl<C: Chunk> ChunkHandlerGeneric for ChunkHandler<C> {
chunk_index_inv(key).1,
e
);
};
}
if let Err(e) = self.unload_chunk(key, physics) {
log::error!(
"Chunk @ {}, {} failed to unload: {:?}",
chunk_index_inv(key).0,
chunk_index_inv(key).1,
e
);
};
}
keep_map[i] = false;
} else if active_zone.iter().any(|z| rect.intersects(z)) {
let chunk_x = self.loaded_chunks.get(&key).unwrap().get_chunk_x();
Expand Down
6 changes: 5 additions & 1 deletion fs_main/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ use tui::{
Terminal,
};

#[profiling::function]
pub fn main() -> Result<(), String> {
#[cfg(feature = "profile")]
profiling::tracy_client::Client::start();

profiling::scope!("main");

let build_data = BuildData {
datetime: option_env!("BUILD_DATETIME"),
git_hash: option_env!("GIT_HASH"),
Expand Down

0 comments on commit c214c01

Please sign in to comment.