From be036edbdd764b596c81edf54827b376de4b3e3e Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Fri, 11 Nov 2016 16:51:01 -0800 Subject: Workaround for cutoff glyphs There's an issue where drawing the cell backgrounds will overwrite part of a neighboring glyph. The real solution here is to figure out glyph metrics properly, but simply limiting to 2 draw calls per frame (first background, then all the glyphs) makes the problem "go away". --- src/renderer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index 018f541c..333604f6 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -378,7 +378,7 @@ impl Batch { } /// Maximum items to be drawn in a batch. -const BATCH_MAX: usize = 4096; +const BATCH_MAX: usize = 65_536; const ATLAS_SIZE: i32 = 1024; impl QuadRenderer { -- cgit