Skip to content

Commit

Permalink
Update crates/bevy_time/src/virt.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
  • Loading branch information
nakedible and alice-i-cecile authored Jun 30, 2023
1 parent ddc2236 commit 2424b50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/bevy_time/src/virt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ pub struct Virtual {
}

impl Time<Virtual> {
const DEFAULT_MAX_DELTA: Duration = Duration::from_millis(333); // XXX: better value
/// The default amount of time that can added in a single update.
///
/// Equal to 0.25 seconds.
pub const DEFAULT_MAX_DELTA: Duration = Duration::from_millis(250);

/// Create new virtual clock with given maximum delta step
/// [`Duration`](std::time::Duration)
Expand Down

0 comments on commit 2424b50

Please sign in to comment.