mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
fix some tracy only and no default features
This commit is contained in:
parent
6a95fb6b74
commit
c77446a014
@ -129,7 +129,7 @@ impl Message {
|
||||
#[cfg(debug_assertions)]
|
||||
pub(crate) fn verify(&self, params: StreamParams) {
|
||||
#[cfg(not(feature = "compression"))]
|
||||
let _stream = stream;
|
||||
let _params = params;
|
||||
#[cfg(feature = "compression")]
|
||||
if self.compressed != params.promises.contains(Promises::COMPRESSED) {
|
||||
warn!(
|
||||
|
@ -102,12 +102,7 @@ impl<'a> System<'a> for Sys {
|
||||
if let Some(entities) = entities {
|
||||
let entity_count = entities.join().count();
|
||||
export_tick.entity_count.set(entity_count as i64);
|
||||
#[cfg(feature = "tracy")]
|
||||
{
|
||||
use common_base::tracy_client::{create_plot, Plot};
|
||||
static ENTITY_COUNT: Plot = create_plot!("entity count");
|
||||
ENTITY_COUNT.point(entity_count as f64);
|
||||
}
|
||||
common_base::plot!("entity count", entity_count as f64);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user