From a042924a6ee520a0b0dc72bc287a6f5f5f305002 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 16 Oct 2023 12:18:39 -0700 Subject: [PATCH] Time: demote delta time clamping warning to debug (#10145) # Objective Time clamping happens consistently for apps that load non-trivial things. While this _is_ an indicator that we should probably try to move this work to a thread that doesn't block the Update, this is common enough (and unactionable enough) that I think we should demote it for now. ``` 2023-10-16T18:46:14.918781Z WARN bevy_time::virt: delta time larger than maximum delta, clamping delta to 250ms and skipping 63.649253ms 2023-10-16T18:46:15.178048Z WARN bevy_time::virt: delta time larger than maximum delta, clamping delta to 250ms and skipping 1.71611ms ``` ## Solution Change `warn` to `debug` for this message --- crates/bevy_time/src/virt.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_time/src/virt.rs b/crates/bevy_time/src/virt.rs index 3359132b16..e1760df497 100644 --- a/crates/bevy_time/src/virt.rs +++ b/crates/bevy_time/src/virt.rs @@ -1,6 +1,6 @@ use bevy_ecs::system::{Res, ResMut}; use bevy_reflect::Reflect; -use bevy_utils::{tracing::warn, Duration}; +use bevy_utils::{tracing::debug, Duration}; use crate::{real::Real, time::Time}; @@ -229,7 +229,7 @@ impl Time { fn advance_with_raw_delta(&mut self, raw_delta: Duration) { let max_delta = self.context().max_delta; let clamped_delta = if raw_delta > max_delta { - warn!( + debug!( "delta time larger than maximum delta, clamping delta to {:?} and skipping {:?}", max_delta, raw_delta - max_delta