summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@gmail.com>2015-11-25 17:52:32 -0800
committerwm4 <wm4@nowhere>2017-10-09 20:40:31 +0200
commit41246c8a34164bd7bcbd0e2edde445f87fba482a (patch)
tree45f2db630fcbfa45567e02c746066aaf79ae25b7 /player
parent1a1e5b87fb743f24c4299aaed1a8420320b17aaa (diff)
downloadmpv-41246c8a34164bd7bcbd0e2edde445f87fba482a.tar.bz2
mpv-41246c8a34164bd7bcbd0e2edde445f87fba482a.tar.xz
stats: add display fps
Diffstat (limited to 'player')
-rw-r--r--player/lua/stats.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/player/lua/stats.lua b/player/lua/stats.lua
index 2848c9caa6..4073661184 100644
--- a/player/lua/stats.lua
+++ b/player/lua/stats.lua
@@ -114,6 +114,13 @@ function add_video(s)
append_property(s, sec, "vo-drop-frame-count", {prefix="VO:", nl=""})
append_property(s, sec, "vo-missed-frame-count", {prefix="Missed:", nl=""})
end
+ if append_property(s, sec, "display-fps", {prefix="Display FPS:", suffix=" (specified)"}) then
+ append_property(s, sec, "estimated-display-fps",
+ {suffix=" (estimated)", nl="", indent=""})
+ else
+ append_property(s, sec, "estimated-display-fps",
+ {prefix="Display FPS:", suffix=" (estimated)"})
+ end
if append_property(s, sec, "fps", {prefix="FPS:", suffix=" (specified)"}) then
append_property(s, sec, "estimated-vf-fps",
{suffix=" (estimated)", nl="", indent=""})