summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorAvi Halachmi (:avih) <avihpit@yahoo.com>2020-04-11 01:20:02 +0300
committerAvi Halachmi (:avih) <avihpit@yahoo.com>2020-04-11 16:04:46 +0300
commit530a0863b859e96d20318704284bf52962e691ec (patch)
tree5879b650ff388ad9538507d12511afeac542ba54 /DOCS
parentb4c1554f7a60c7ea05a04e02209359e2f958a8e0 (diff)
downloadmpv-530a0863b859e96d20318704284bf52962e691ec.tar.bz2
mpv-530a0863b859e96d20318704284bf52962e691ec.tar.xz
stats: support UP/DOWN to scroll at page 4 (perf)
Keys and lines-to-scroll are configurabe, and the scroll keys are only bound on pages which support scrolling (currently only page 4) - also during oneshot (like the page-switching keys). Scroll offset is reset for all pages on any key - except scroll keys, so that entering or switching to a page resets the scroll, as well as when "re-entering" the same page or "re-activating" the stats oneshot view. TODO: print_page(..) is highly associated with extending the oneshot timer if required. The timer handling can probably move into print_page and removed from all the places which boilerplate its management.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/stats.rst20
1 files changed, 18 insertions, 2 deletions
diff --git a/DOCS/man/stats.rst b/DOCS/man/stats.rst
index 82418f8c42..1d7e653b08 100644
--- a/DOCS/man/stats.rst
+++ b/DOCS/man/stats.rst
@@ -24,7 +24,14 @@ stats:
1 Show usual stats
2 Show frame timings
3 Input cache stats
-4 Internal stuff
+4 Internal stuff (scroll)
+==== ==================
+
+On pages which support scroll, these key bindings are also active:
+
+==== ==================
+UP Scroll one line up
+DOWN Scroll one line down
==== ==================
Font
@@ -62,6 +69,15 @@ Configurable Options
Key bindings for page switching while stats are displayed.
+``key_scroll_up``
+ Default: UP
+``key_scroll_down``
+ Default: DOWN
+``scroll_lines``
+ Default: 1
+
+ Scroll key bindings and number of lines to scroll on pages which support it.
+
``duration``
Default: 4
@@ -183,7 +199,7 @@ The displayed information is accumulated over the redraw delay (shown as
``poll-time`` field).
This adds entries for each Lua script. If there are too many scripts running,
-parts of the list will simply be out of the screen.
+parts of the list will simply be out of the screen, but it can be scrolled.
If the underlying platform does not support pthread per thread times, the
displayed times will be 0 or something random (I suspect that at time of this