fix: apply max history length
This commit is contained in:
parent
37fefd855e
commit
3015cac1fe
@ -30,8 +30,10 @@ impl EntityCountDiagnosticsPlugin {
|
|||||||
|
|
||||||
impl Plugin for EntityCountDiagnosticsPlugin {
|
impl Plugin for EntityCountDiagnosticsPlugin {
|
||||||
fn build(&self, app: &mut App) {
|
fn build(&self, app: &mut App) {
|
||||||
app.register_diagnostic(Diagnostic::new(Self::ENTITY_COUNT))
|
app.register_diagnostic(
|
||||||
.add_systems(Update, Self::diagnostic_system);
|
Diagnostic::new(Self::ENTITY_COUNT).with_max_history_length(self.max_history_length),
|
||||||
|
)
|
||||||
|
.add_systems(Update, Self::diagnostic_system);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user