From f0719727ccdd296ef5b7ba47964906a20b722e0c Mon Sep 17 00:00:00 2001 From: Julian Date: Sun, 23 Jul 2017 20:59:44 +0200 Subject: stats: always print perfdata total There's no point in disabling it anyway --- player/lua/stats.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'player') diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 0dda26bf28..771e8b5d19 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -23,7 +23,6 @@ local o = { ass_formatting = true, timing_warning = true, timing_warning_th = 0.85, -- *no* warning threshold (warning when > target_fps * timing_warning_th) - print_perfdata_total = true, -- prints an additional line adding up the perfdata lines print_perfdata_passes = false, -- when true, print the full information about all passes debug = false, @@ -330,12 +329,10 @@ local function append_perfdata(s, full) end end - if o.print_perfdata_total then - s[#s+1] = format(f, o.nl, o.indent .. o.indent .. o.indent, - o.font_mono, hl(last_s[frame]), - hl(avg_s[frame]), hl(peak_s[frame]), o.font, - o.prefix_sep, o.prefix_sep, b("Total")) - end + s[#s+1] = format(f, o.nl, o.indent .. o.indent .. o.indent, + o.font_mono, hl(last_s[frame]), + hl(avg_s[frame]), hl(peak_s[frame]), o.font, + o.prefix_sep, o.prefix_sep, b("Total")) else -- for the simplified view, we just print the sum of each pass s[#s+1] = format(f, o.nl, o.indent .. o.indent, o.font_mono, -- cgit v1.2.3