summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/phosphor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/phosphor.rs b/src/phosphor.rs
index 00d391a..34d5be5 100644
--- a/src/phosphor.rs
+++ b/src/phosphor.rs
@@ -198,7 +198,7 @@ impl ApplicationHandler for PhosphorApplication {
}
// Ensure a minimum duration between frames.
- const MINIMUM_WAIT: Duration = Duration::from_millis(1);
+ const MINIMUM_WAIT: Duration = Duration::from_micros(10);
std::thread::sleep(MINIMUM_WAIT.saturating_sub(self.frame_start.elapsed()));
self.frame_start = Instant::now();
}