diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2023-12-20 23:17:28 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-20 17:12:07 +0000 |
commit | 2cb148549235e512249d9f5bc90e5245828640ce (patch) | |
tree | 4ccb48b7012bd690f0563c25a013b6bab75a200c /player/lua/stats.lua | |
parent | a0ba10b62e75329d1c707d9f95052c8c66323ac7 (diff) | |
download | mpv-2cb148549235e512249d9f5bc90e5245828640ce.tar.bz2 mpv-2cb148549235e512249d9f5bc90e5245828640ce.tar.xz |
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.
Diffstat (limited to 'player/lua/stats.lua')
-rw-r--r-- | player/lua/stats.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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", |