summaryrefslogtreecommitdiffstats
path: root/src/renderer/mod.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-09-05 09:03:30 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-09-05 09:07:00 -0700
commit8990aa4568ea8a7481f827512b7487be4d39332a (patch)
tree92be6c91ad35c94325b1bd9e076b12b15623e0d2 /src/renderer/mod.rs
parent2f095d40963e1d2c2608272bf76f71381ef8c471 (diff)
Comment about duration arg to file watcher
Diffstat (limited to 'src/renderer/mod.rs')
-rw-r--r--src/renderer/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index eb8af395..60362f87 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -537,6 +537,7 @@ impl QuadRenderer {
if cfg!(feature = "live-shader-reload") {
::std::thread::spawn(move || {
let (tx, rx) = ::std::sync::mpsc::channel();
+ // The Duration argument is a debouncing period.
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");