Skip to content

Commit

Permalink
fix: await runner before rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Jan 7, 2024
1 parent 7ffd6e1 commit 7407c8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions minttea/renderer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7407c8d

Please sign in to comment.