(2022-06-07, 05:52)wyrm Wrote: Have at it @sarbes , have been hammering on my skin for years and it started out as a xbox skin, so would like to think its pretty lightweight.
Skin is AppTV available thru main repo or from my Github (wyrm65).
Home screen
Looking at the home screen, it has an overdraw of around 3.2. Pretty good, but it can be made better.
Firstly, you can reduce the size of the black background element, so it ends with the border of the grey element above. This saves an overdraw of 0.4 without issues.
Secondly, I would advice you to bake in the gradient of the top part of the skin into the grey bars themselves. This saves 0.4 draws on average.
You might even be able to bake in the "shadow" filter texture, saving another 0.4 - but the effect would have to be tested. EDIT: there is no such thing.
Also, the icons could be improved. Ideally, there would be two versions (selected/unselected), with no alpha and everything baked in. But I don't know if this would be easy to achieve with our skinning engine. Otherwise, the border element on the selected element seems a bit odd to me. So small gains can be made here.
For the left hand menu, you might be able to dim the screen using the new diffuse animation effect on all the elements in the background, saving a whole draw on the screen. But this might be tricky to do without improvements to the layering system.
Content views
At the views, the overdraw is around 2.5.
You seem so blend the fanart onto a black texture. Instead of doing so, use a diffuse color on it. This saves one draw across the screen.
General comments
Some of those ideas mentioned should be pretty easy to realize. Others might not be. Some might even be impossible right now, I'm actually not too familiar with some details of our GUI. If you have the time you might want to focus on the low hanging fruits. Also, I'm not saying that the GUI will render 50% faster by decreasing the overdraw. It depends heavily on the system Kodi runs on. But I'm sure that there will be some improvement of framerate or power draw.
Also seeing that you are using a basic color in the background, I might be able to give you the option to set the default background color. This would also save further 0.6 draws on the home screen.
(2022-06-07, 05:52)wyrm Wrote: Would like to be able to use diffuse textures on text so that we could fade text at the bottom of a textbox or fade the end of a text string. Doable?
Instead of having a diffuse texture, I would have the GPU calculate such simple gradients. This is less expensive than using textures and produces higher quality resullts.
Unfortunately, this would require me to make changes on the DirectX side of things. I'm only familiar with OpenGL and the generic GUI system.