aboutsummaryrefslogtreecommitdiff
path: root/src/meter.rs
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-11-28 14:13:11 -0800
committerJoe Wilm <joe@jwilm.com>2016-12-11 20:23:41 -0800
commit30bee80a6902eb09c51bed9c9f54c7617c4d53db (patch)
tree187853fdf17d3382595be8a416e604c6f2bea0f0 /src/meter.rs
parent941818d88ebc1f0d90ef9b1ef7d1313174afb36b (diff)
downloadalacritty-30bee80a6902eb09c51bed9c9f54c7617c4d53db.tar.gz
alacritty-30bee80a6902eb09c51bed9c9f54c7617c4d53db.zip
Refactor cell selection out of renderer
The terminal now has a `renderable_cells()` function that returns a `RenderableCellIter` iterator. This allows reuse of the cell selection code by multiple renderers, makes it testable, and makes it independently optimizable. The render API now takes an `Iterator<Item=IndexedCell>` to support both the new renderable cells iterator and the `render_string()` method which generates its own iterator. The `vim_large_window_scoll` ref test was added here because it provides a nice large and busy grid to benchmark the cell selection with.
Diffstat (limited to 'src/meter.rs')
-rw-r--r--src/meter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/meter.rs b/src/meter.rs
index b73c1004..b4bab5ff 100644
--- a/src/meter.rs
+++ b/src/meter.rs
@@ -33,7 +33,7 @@
use std::time::{Instant, Duration};
-const NUM_SAMPLES: usize = 60;
+const NUM_SAMPLES: usize = 10;
/// The meter
pub struct Meter {