@@ -4,6 +4,7 @@
#include <cstdint>
#define TIMER_FREQ 32768
+#define ACTIVE_WAIT
typedef uint16_t *texture_data_t;
@@ -72,8 +72,10 @@ void STATEMACHINE::run()
this->pop();
}
+#ifdef ACTIVE_WAIT
while (Timing::gettime() < loop_next)
;
+#endif
loop_next += loop_time;