diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-01-18 15:47:15 -0500 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-01-18 15:47:15 -0500 |
commit | 2ec8b1f2fbdc5967576be8aaf7ac68107cf09cb1 (patch) | |
tree | a254eb6e2a5ea3aef518e6051ff7d543f6d8e721 /examples | |
parent | 430d1af163a9a46ab27924caa164e15e95de64f1 (diff) | |
parent | 7386e7324aed533e28b26e666525a036e6dac47a (diff) |
Merge branch 'schedule'
Actually have a proper algorithmic scheduler in examples/jarvis.js now, allowing for low-latency responses and complex animation, etc.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/jarvis.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js index 2dee842..0f0e1f1 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -7,7 +7,7 @@ const ms = require('../utils/measurespace'); const vec = require('../utils/vec'); const comb = require('../utils/comb'); const Search = require('../tools/search'); -const Queue = require('../tools/queue'); +const sched = require('../tools/schedule'); const ri = require('../utils/rectintersect'); //// Basic handling on open and close of the socket @@ -79,7 +79,7 @@ function tileHandler(send, source, tiles){ } //// "userspace" functions for responses, like to tileUpdates -var writes = new Queue(1000, 200, (elems) => main.write(elems)); +var writes = new sched.Queue(1000, 200, (elems) => main.write(elems)); var command = 'jarvis' var sig = 'feynmansfedora' |