diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-16 10:53:45 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-16 10:53:45 -0700 |
| commit | 940e692d5b24f40147dc92c2dc23ce74c3d5ab7f (patch) | |
| tree | 8abdd835e65f46eba1235227ed1099f71849252c /src/config.rs | |
| parent | 24886c2752548f1c32ed54968a7bfdf2b1fe38ea (diff) | |
small refactor to update loops and timing
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index fc3e341..6a9d392 100644 --- a/src/config.rs +++ b/src/config.rs @@ -6,3 +6,6 @@ pub const CELLS_IN_CHUNK: usize = (CHUNK_SIZE * CHUNK_SIZE) as usize; pub const CAMERA_MOVEMENT_SPEED: f32 = 40.0; pub const SIM_FPS: u32 = 120; +pub const SIM_DELTA_TIME: f32 = 1.0 / SIM_FPS as f32; +pub const PHYSICS_FPS: u32 = 60; +pub const PHYSICS_DELTA_TIME: f32 = 1.0 / PHYSICS_FPS as f32; |
