Move move frame interval into config

cpp
Elnu 2 years ago
parent c6308d5388
commit b1849ccdd8

@ -13,4 +13,6 @@
#define POINTS_1_LINE 40
#define POINTS_2_LINES 100
#define POINTS_3_LINES 300
#define POINTS_4_LINES 1200
#define POINTS_4_LINES 1200
#define MOVE_FRAME_INTERVAL 125

@ -192,7 +192,7 @@ int main()
update_clock.restart();
}
bool is_move_frame = move_clock.getElapsedTime().asMilliseconds() > 125;
bool is_move_frame = move_clock.getElapsedTime().asMilliseconds() > MOVE_FRAME_INTERVAL;
if (is_move_frame) {
move_clock.restart();
}

Loading…
Cancel
Save