diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -71,6 +71,8 @@ WITH REGARD TO THIS SOFTWARE. | |||
71 | #define PROF_ENABLE 0 | 71 | #define PROF_ENABLE 0 |
72 | #include "profiling.c" | 72 | #include "profiling.c" |
73 | 73 | ||
74 | static int frames = 0; | ||
75 | |||
74 | void | 76 | void |
75 | render_sequencer(void) { | 77 | render_sequencer(void) { |
76 | if (redraw_trigs) { | 78 | if (redraw_trigs) { |
@@ -110,11 +112,15 @@ render_sequencer(void) { | |||
110 | 112 | ||
111 | if (input_handler == handle_pattern_selection || | 113 | if (input_handler == handle_pattern_selection || |
112 | input_handler == handle_pattern_chain) { | 114 | input_handler == handle_pattern_chain) { |
113 | draw_pattern_chain(); | 115 | if (frames & 0x1) { |
116 | draw_pattern_chain(); | ||
117 | } | ||
114 | } | 118 | } |
115 | 119 | ||
116 | draw_notif_bar(); | 120 | if (frames++ & 0x1) { |
117 | PROF(draw_piano_notes(), draw_piano_cycles); | 121 | draw_notif_bar(); |
122 | PROF(draw_piano_notes(), draw_piano_cycles); | ||
123 | } | ||
118 | PROF(draw_cursors(), draw_cursor_cycles); | 124 | PROF(draw_cursors(), draw_cursor_cycles); |
119 | } | 125 | } |
120 | 126 | ||