From 2cb148549235e512249d9f5bc90e5245828640ce Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Wed, 20 Dec 2023 23:17:28 -0500 Subject: stats.lua: display the current GPU context This displays the current GPU context when --vo=gpu or --vo=gpu-next is used, which shows the platform and backend information of the vo which are previously not available. --- player/lua/stats.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/lua') diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 60f3385058..f944270dfb 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -855,6 +855,8 @@ local function add_video_out(s) append(s, vo, {prefix_sep="", nl="", indent=""}) append_property(s, "display-names", {prefix_sep="", prefix="(", suffix=")", no_prefix_markup=true, nl="", indent=" "}) + append(s, mp.get_property_native("current-gpu-context"), + {prefix="Context:", nl="", indent=o.prefix_sep .. o.prefix_sep}) append_property(s, "avsync", {prefix="A-V:"}) append_fps(s, "display-fps", "estimated-display-fps") if append_property(s, "decoder-frame-drop-count", -- cgit v1.2.3