summaryrefslogtreecommitdiffstats
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-09-05 09:01:07 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-09-05 09:07:00 -0700
commit2f095d40963e1d2c2608272bf76f71381ef8c471 (patch)
tree2f57b6a8d01184ae10147ef3494f60092c7a6912 /src/renderer/mod.rs
parenta7b50e0eb8b0888baee71e329117d38f10878b01 (diff)
Reduce file watcher debounce period
500ms introduced a visual lag between file save and display update.
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 3c07450b..eb8af395 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -537,7 +537,7 @@ impl QuadRenderer {
if cfg!(feature = "live-shader-reload") {
::std::thread::spawn(move || {
let (tx, rx) = ::std::sync::mpsc::channel();
- let mut watcher = watcher(tx, Duration::from_millis(500)).expect("create file watcher");
+ let mut watcher = watcher(tx, Duration::from_millis(10)).expect("create file watcher");
watcher.watch(TEXT_SHADER_F_PATH, RecursiveMode::NonRecursive)
.expect("watch fragment shader");
watcher.watch(TEXT_SHADER_V_PATH, RecursiveMode::NonRecursive)