Added timer and animations

This commit is contained in:
2022-12-27 23:54:39 +00:00
parent 2df559aa4c
commit 329e10f2d6
4 changed files with 150 additions and 1 deletions

View File

@@ -44,6 +44,8 @@ static double lastTick;
static float timescale = 1.f;
static double framems;
void seghandle(int sig) {
#ifdef __linux__
void *ents[512];
@@ -192,7 +194,6 @@ int main(int argc, char **args) {
window_renderall();
}
double wait = fmax(0, renderMS-elapsed);
input_poll(wait);
window_all_handle_events();