From 19512b1b53d6f84fc6521bfad6827c8aa42f696b Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Sun, 22 May 2022 14:09:54 -0700 Subject: [PATCH] add todo --- crates/bevy_time/src/time.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_time/src/time.rs b/crates/bevy_time/src/time.rs index 11baedbb5f13d1..26b481e384121d 100644 --- a/crates/bevy_time/src/time.rs +++ b/crates/bevy_time/src/time.rs @@ -165,6 +165,8 @@ pub(crate) fn time_system( mut has_received_time: Local, ) { if let Some(time_recv) = time_recv { + // TODO: delay checking channel on start by 2 frames when pipelined rendering + // is enabled. This is to make sure we always read the N-2 frame's time. if let Ok(new_time) = time_recv.0.try_recv() { time.update_with_instant(new_time); *has_received_time = true;