actually (?!) fix drunk turtle problem

This commit is contained in:
Scott Richmond 2025-07-01 20:10:24 -04:00
parent 197cbfc795
commit 9414dc64d9
3 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ function io_poller () {
} }
function start_io_polling () { function start_io_polling () {
io_interval_id = setInterval(io_poller, 100) io_interval_id = setInterval(io_poller, 10)
} }
// runs a ludus script; does not return the result // runs a ludus script; does not return the result

Binary file not shown.

View File

@ -426,7 +426,7 @@ impl World {
} }
async fn maybe_do_io(&mut self) { async fn maybe_do_io(&mut self) {
if self.last_io + 100.0 < now() { if self.last_io + 10.0 < now() {
let outbox = self.flush_buffers(); let outbox = self.flush_buffers();
let inbox = do_io(outbox).await; let inbox = do_io(outbox).await;
self.fill_buffers(inbox); self.fill_buffers(inbox);