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.
This commit is contained in:
nanahi 2023-12-20 23:17:28 -05:00 committed by Dudemanguy
parent a0ba10b62e
commit 2cb1485492
1 changed files with 2 additions and 0 deletions

View File

@ -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",