VSE: speedup timeline drawing, and improve waveform display #115311

Merged
Aras Pranckevicius merged 17 commits from aras_p/blender:vse-draw-opt into main 2023-11-29 20:25:30 +01:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit 67435f15d0 - Show all commits

View File

@ -79,7 +79,7 @@ void SeqQuadsBatch::draw()
}
if (lines_num > 0) {
GPU_vertbuf_tag_dirty(vbo_lines);
GPU_vertbuf_data_len_set(vbo_lines, lines_num * 4);
GPU_vertbuf_data_len_set(vbo_lines, lines_num * 2);
GPU_vertbuf_use(vbo_lines);
GPU_batch_draw_range(batch_lines, 0, lines_num * 2);
lines_num = 0;

View File

@ -473,9 +473,7 @@ static void retime_keys_draw(const bContext *C, SeqQuadsBatch *quads)
retime_key_draw(C, seq, &key, &sh_bindings, &selection, &point_counter);
}
}
if (point_counter != 0) {
immEnd();
}
immEnd();
GPU_program_point_size(false);
immUnbindProgram();
GPU_blend(GPU_BLEND_NONE);