Proper framerate
This commit is contained in:
parent
6aa7fb12b4
commit
20cc7fcfc7
|
@ -34,7 +34,7 @@ int main(void) {
|
|||
cairo_paint(ctx.cairo);
|
||||
}
|
||||
cairo_flush(&ctx);
|
||||
usleep(1000);
|
||||
usleep(1000000 / 60.0);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue