Move move frame interval into config

cpp
Elnu 3 years ago
parent c6308d5388
commit b1849ccdd8

@ -14,3 +14,5 @@
#define POINTS_2_LINES 100 #define POINTS_2_LINES 100
#define POINTS_3_LINES 300 #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(); 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) { if (is_move_frame) {
move_clock.restart(); move_clock.restart();
} }

Loading…
Cancel
Save