From 41246c8a34164bd7bcbd0e2edde445f87fba482a Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Wed, 25 Nov 2015 17:52:32 -0800 Subject: stats: add display fps --- player/lua/stats.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'player') 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=""}) -- cgit v1.2.3