From 7407c8dc4d9eca93b0278bba749110eccc41e2a5 Mon Sep 17 00:00:00 2001 From: Leandro Ostera Date: Mon, 1 Jan 2024 18:20:38 +0100 Subject: [PATCH] fix: await runner before rendering --- minttea/renderer.ml | 1 + 1 file changed, 1 insertion(+) diff --git a/minttea/renderer.ml b/minttea/renderer.ml index e0e4277..b11d37b 100644 --- a/minttea/renderer.ml +++ b/minttea/renderer.ml @@ -107,6 +107,7 @@ let cap fps = Int.max 1 (Int.min fps max_fps) |> Int.to_float let fps_to_float fps = 1. /. cap fps *. 1_000. |> Int64.of_float let run ~fps = + let _ = Process.await_name "Minttea.runner" in let ticker = Riot.Timer.send_interval ~every:(fps_to_float fps) (self ()) Tick |> Result.get_ok