X-Git-Url: https://git.danieliu.xyz/?p=st.git;a=blobdiff_plain;f=config.def.h;h=fdbacfdbf02d5e541fdc523f1dc0298cb3053ed0;hp=0895a1ff4bd3f00e766891f823248de184ae582f;hb=1d590910652519268152eae6b97cf30ace4e90c0;hpb=d6ea0a1a61853dd892029a7126e7fdb70c371878 diff --git a/config.def.h b/config.def.h index 0895a1f..fdbacfd 100644 --- a/config.def.h +++ b/config.def.h @@ -43,9 +43,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