Optimize grouping of path sprites by layer/atlas

Avoid filtering sprites redundantly on every layer and allocating intermediate vectors to group by atlas.

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-03-30 18:03:00 -06:00
co-authored by Max Brunsfeld
parent 4cdce070c4
commit 77b6a29f5f
2 changed files with 88 additions and 58 deletions
+1
View File
@@ -1076,6 +1076,7 @@ impl BufferView {
}
fn blink_cursors(&mut self, epoch: usize, ctx: &mut ViewContext<Self>) {
return;
if epoch == self.blink_epoch && self.focused && !self.blinking_paused {
self.cursors_visible = !self.cursors_visible;
ctx.notify();