Skip to content

Commit

Permalink
ci(check): added todo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler committed Apr 10, 2024
1 parent 65b0a22 commit 303407e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 303407e

Please sign in to comment.