summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-05-06 13:58:09 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-05-06 13:58:09 -0400
commit4f44d2d13fbbf5a58180a0d07ecd8ea45879f5fe (patch)
treed4bd7eb0b460f2332436146c10964fd28d34ce15 /config.h
parentb35e4f57273f56c53dbc4d77d7b5992c47255662 (diff)
auto-sync patch
Diffstat (limited to 'config.h')
-rw-r--r--config.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/config.h b/config.h
index 67c34c3..696f634 100644
--- a/config.h
+++ b/config.h
@@ -42,9 +42,14 @@ static unsigned int tripleclicktimeout = 600;
/* alt screens */
int allowaltscreen = 1;
-/* frames per second st should at maximum draw to the screen */
-static unsigned int xfps = 120;
-static unsigned int actionfps = 30;
+/*
+ * draw latency range in ms - from new content/keypress/etc until drawing.
+ * within this range, st draws when content stops arriving (idle). mostly it's
+ * near minlatency, but it waits longer for slow updates to avoid partial draw.
+ * low minlatency will tear/flicker more, as it can "detect" idle too early.
+ */
+static double minlatency = 8;
+static double maxlatency = 33;
/*
* blinking timeout (set to 0 to disable blinking) for the terminal blinking
@@ -197,8 +202,6 @@ ResourcePref resources[] = {
{ "cursorColor", STRING, &colorname[256] },
{ "termname", STRING, &termname },
{ "shell", STRING, &shell },
- { "xfps", INTEGER, &xfps },
- { "actionfps", INTEGER, &actionfps },
{ "blinktimeout", INTEGER, &blinktimeout },
{ "bellvolume", INTEGER, &bellvolume },
{ "tabspaces", INTEGER, &tabspaces },