From 055fc5ced321c49689fade3ec464a2aa2f946467 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 12 Aug 2017 14:08:35 +0200 Subject: stats: reorganize the framedrop counters Clarified the relationship between `Dropped` and `VO`, and also merged the DS-exclusive stats into the DS line. --- player/lua/stats.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'player/lua/stats.lua') diff --git a/player/lua/stats.lua b/player/lua/stats.lua index cbc30ba4c5..0550487463 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -372,6 +372,9 @@ local function append_display_sync(s) {prefix="DS:" .. o.prefix_sep .. " - / ", prefix_sep=""}) end + append_property(s, "mistimed-frame-count", {prefix="Mistimed:", nl=""}) + append_property(s, "vo-delayed-frame-count", {prefix="Delayed:", nl=""}) + -- As we need to plot some graphs we print jitter and ratio on their own lines if toggle_timer:is_enabled() and (o.plot_vsync_ratio or o.plot_vsync_jitter) and o.use_ass then local ratio_graph = "" @@ -426,10 +429,8 @@ local function add_video(s) {no=true, [""]=true}) end append_property(s, "avsync", {prefix="A-V:"}) - if append_property(s, compat("decoder-frame-drop-count"), {prefix="Dropped:"}) then - append_property(s, compat("frame-drop-count"), {prefix="VO:", nl=""}) - append_property(s, "mistimed-frame-count", {prefix="Mistimed:", nl=""}) - append_property(s, "vo-delayed-frame-count", {prefix="Delayed:", nl=""}) + if append_property(s, compat("decoder-frame-drop-count"), {prefix="Dropped Frames:", suffix=" (decoder)"}) then + append_property(s, compat("frame-drop-count"), {suffix=" (output)", nl="", indent=""}) end if append_property(s, "display-fps", {prefix="Display FPS:", suffix=" (specified)"}) then append_property(s, "estimated-display-fps", -- cgit v1.2.3