From 15f831bbb6f27d5a11879dd07f383400e83c97e3 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 4 Aug 2022 09:57:53 +0100 Subject: Improve pagination. Pagination was broken in horizontal mode before, and in general tried to render too many results (leading to a cut-off last result). This commit fixes both of those, with the minor caveat that you can no longer scroll straight to the last result. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index b2d8b0b..64cde1b 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,12 @@ In roughly descending order, the most important options for performance are: the first frame). Again, on battery power on my laptop, drawing a fullscreen window (2880px × 1800px) takes ~20ms on the first frame, whereas a dmenu-like ribbon (2880px × 60px) takes ~1ms. + +* `--num-results` - By default, tofi auto-detects how many results will fit in + the window. This is quite tricky when `--horizontal=true` is passed, and + leads to a few ms slowdown (only in this case). Setting a fixed number of + results will speed this up, but since this likely only applies to dmenu-like + themes (which are already very quick) it's probably not worth setting this. * `--hint-font` - Getting really into it now, one of the remaining slow points is hinting fonts. For the dmenu theme on battery power on my laptop, with a -- cgit v1.2.3