Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed May 22, 2022
1 parent 55153d0 commit 09c0335
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_core/src/time/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ pub(crate) fn time_system(
mut has_received_time: Local<bool>,
) {
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;
Expand Down

0 comments on commit 09c0335

Please sign in to comment.