diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-07-16 10:37:41 +0300 |
---|---|---|
committer | avih <avih@users.noreply.github.com> | 2021-07-19 22:06:50 +0300 |
commit | 59c10274b402c7fcca5d2765cb38e535e17907c2 (patch) | |
tree | d53bd19691d1a738acc1da733deb3b3bc45bb16f /filters/f_auto_filters.h | |
parent | 50280197e26e83210d63165572b6748e329d140f (diff) | |
download | mpv-59c10274b402c7fcca5d2765cb38e535e17907c2.tar.bz2 mpv-59c10274b402c7fcca5d2765cb38e535e17907c2.tar.xz |
stats.lua: scroll: allow throttling page-rebuild (no-op)
Typically the current page is rebuilt and rendered once per second,
howeve, scrolling can invoke the rebuild function very frequently,
even at a rate which is too fast for the rebuild function to keep
up. This can result in high CPU usage and input lag.
This commit adds an argument to the page-rebuild function, letting it
know whether or not it's called following a scroll keypress, thus
allowing it to cache intermediate data so that it doesn't have to
re-calculate the whole page from scratch.
This additional argument is unused currently, but it could be useful
for the internal performance page - which can be relatively heavy.
Diffstat (limited to 'filters/f_auto_filters.h')
0 files changed, 0 insertions, 0 deletions