From 303407eae4c2434541024d6b74963de8f2734e85 Mon Sep 17 00:00:00 2001 From: Jonas Geiler Date: Wed, 10 Apr 2024 10:58:38 +0200 Subject: [PATCH] ci(check): added todo --- .github/workflows/check.yml | 2 ++ src/main.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4a3db39..a0c6bbc 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -57,3 +57,5 @@ jobs: run: lua -e "local fenster = require('fenster');print(fenster.time())" # Currently does not work for Windows (can't import 'fenster') if: matrix.os != 'windows-latest' + +# TODO: Run something like luacheck on the demos diff --git a/src/main.c b/src/main.c index a317ec1..e16ea75 100644 --- a/src/main.c +++ b/src/main.c @@ -234,7 +234,7 @@ static int lua_fenster_loop(lua_State *L) { // sleep for the remaining frame time to reach target frame time fenster_sleep(p_lf->target_frame_time - last_frame_time); } - now = fenster_time(); + now = fenster_time(); // update now after sleep p_lf->delta = (double) (now - p_lf->start_frame_time) / 1000.0; p_lf->start_frame_time = now;