New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windowing/gbm: add option to limit gui size #16063
Conversation
This is now used on Allwinner, Amlogic, Rockchip and RPi4 in LibreELEC. Should be ready for merging unless we want to add support for using 720p as gui size when a 1080p resolution is used, current limits only kicks in when resolution is above 1080p. |
ed49353
to
64ec730
Compare
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
64ec730
to
a181899
Compare
I plan on merging this unless anyone have any objection, ping @lrusak Windows UWP build seems to have failed due to a Python3 issue. |
Wait! Are you aware that we already have a very similar setting for Android and rpb? I suggest to reuse this setting and its values for gbm. https://github.com/xbmc/xbmc/blob/master/system/settings/android.xml#L15-L28 |
Yes I am aware, I added a new option and labels because although the To my knowledge the This new option was originally intended to only apply for screen resolutions above 1080p (1440p, 2160p etc). The reasoning behind this is that for some embedded devices (RK3328) there is only enough memory bandwidth to display a 2160p video buffer and a 720p gui buffer at the same time for 2160p screen resolutions with refresh rates above 30hz. Using a 2160p video buffer and a 1080p gui buffer may work with 2160p@30hz or less hz. Other devices (RK3399) may have enough memory bandwidth to display 2x 2160p buffers but are instead limited by GPU power and can only cope with GUI at 2160p up to 30fps. Any suggestions on how to merge both these two options into one is welcomed! |
I think you should at least reuse the strings from strings.po. |
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
@Kwiboo do you want to progress this, close it or put it on the backburner? |
@jernejsk I tried also but couldn't get it to work. I think it's because his xbmc repo is a fork of |
Thanks @jernejsk, I have pushed your branch now |
added @ksooo again to check if the changes make him happy 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go other than that small string change
Any objection against merging this in few days? |
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
windowing/gbm: add option to limit gui size
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Leia backport of xbmc#16063 picked from Kwiboo@b2ad605
Description
This PR adds a new video setting
Limit GUI Size
forGBM
platform that can be used on devices / SoCs with weaker GPUs in order to improve user experience by limiting the gui plane size used.This setting is
<visible>false</visible>
by default and is only intended to be set visible or forced inappliance.xml
for devices / SoCs with weaker GPUs.Motivation and Context
Allows for video to render in 4K using direct-to-plane rendering and having a 720/1080p gui plane for osd / subtitles.
How Has This Been Tested?
This has been included in LibreELEC Rockchip, Allwinner and mainline Amlogic builds for a long time.
Screenshots (if appropriate):
Types of change
Checklist: