Performance improvements

This commit is contained in:
Jeremy Soller 2022-10-21 12:31:02 -06:00
parent d5fde04d09
commit 50dfd4e6ed
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
4 changed files with 15 additions and 45 deletions

View file

@ -100,6 +100,8 @@ fn main() {
let font_size = buffer.metrics().font_size;
let line_height = buffer.metrics().line_height;
buffer.shape_until_cursor();
if buffer.redraw {
let instant = Instant::now();