From 644e2d6ca4e369363d644dac9f13c8c8bf5f6d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Ritzl?= Date: Mon, 16 Nov 2020 14:40:17 +0100 Subject: [PATCH] Changed timer interval to get one update per frame and accurate timing Fixes #12 --- ludobits/m/flow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ludobits/m/flow.lua b/ludobits/m/flow.lua index 1ec2a0b..6d0815e 100644 --- a/ludobits/m/flow.lua +++ b/ludobits/m/flow.lua @@ -118,7 +118,7 @@ local function create_or_get(co) url = msg.url(), state = READY, co = co, - timer_id = timer.delay(0.016, true, function(self, handle, time_elapsed) + timer_id = timer.delay(0, true, function(self, handle, time_elapsed) if not instances[co] then timer.cancel(handle) return