diff options
author | Joe Wilm <joe@jwilm.com> | 2016-11-11 16:51:01 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-11-11 16:51:01 -0800 |
commit | be036edbdd764b596c81edf54827b376de4b3e3e (patch) | |
tree | cb17f7b0f6f06a4ff7ead1e874ebcd8b93a075a1 /src | |
parent | 82c8804f4428f9d007806d0c1151e06988314150 (diff) | |
download | alacritty-be036edbdd764b596c81edf54827b376de4b3e3e.tar.gz alacritty-be036edbdd764b596c81edf54827b376de4b3e3e.zip |
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".
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |