This made the game run much smoother on Josh's debian box.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include "font.h"
// ************************************* FUNCS
void
+tiny_sleep() {
+ struct timespec t;
+ t.tv_sec = 0;
+ t.tv_nsec = 1;
+ nanosleep(&t, 0);
+}
+
+void
init_engine_dots() {
int i;
for(i = 0; i<MAXENGINEDOTS; i++) {
state = HIGH_SCORE_DISPLAY;
state_timeout = 400;
}
+
+ tiny_sleep();
}
}