diff options
Diffstat (limited to 'dc')
| -rw-r--r-- | dc/dc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ #include <teensy.h> #include <math.h> -#include <unistd.h> +#include <time.h> #define QOI_IMPLEMENTATION #include "third/qoi.h" @@ -80,7 +80,7 @@ int main(void) ty_draw_end(); ty_tick(); - usleep(1000000 / (hints.ticrate * 2)); + ty_sleep(1000 / hints.ticrate); } ty_free_image(img); |
