Rendering speed and memory use
#1
I wonder if someone could tell me are there differents in speed, cpu & memory use between this two methods? My eyes only empiric measure method is not enough. So please tell me if you know. This is part of itemlayout in panel container control.

Code 1:
PHP Code:
<control type="image">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>156</width>
    <
height>234</height>
    <
bordertexture>holder-12x3-nofocus.png</bordertexture>
    <
bordersize>12</bordersize>
    <
texture background="true" diffuse="holder-12x3-diffuse.png">$INFO[Listitem.Icon]</texture>
    <
aspectratio scalediffuse="false">stretch</aspectratio>
</
control

Code 2:
PHP Code:
<control type="image">
    <
posx>12</posx>
    <
posy>12</posy>
    <
width>132</width>
    <
height>210</height>
    <
texture background="true" diffuse="holder-12x3-diffuse.png">$INFO[Listitem.Icon]</texture>
    <
aspectratio scalediffuse="false">stretch</aspectratio>
</
control>
<
control type="image">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>156</width>
    <
height>234</height>
    <
texture>holder-12x3-nofocus.png</texture>
</
control
AsRock 330 HT, 2GB RAM, 320GB HDD, Openelec 3.2.4
Intel NUC D54250WYK, 4GB RAM, Kingston 120GB SSD, OpenELEC-Generic.x86_64-devel-20131126081257-r16438
Reply
#2
I'd always go for option 1 - as to whether it's more efficient, I'd assume it was, but I've no idea really.
Reply
#3
First one is possibly more efficient (one less control in the control map). Rendering should be pretty much identical.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
Thank you for answer
AsRock 330 HT, 2GB RAM, 320GB HDD, Openelec 3.2.4
Intel NUC D54250WYK, 4GB RAM, Kingston 120GB SSD, OpenELEC-Generic.x86_64-devel-20131126081257-r16438
Reply

Logout Mark Read Team Forum Stats Members Help
Rendering speed and memory use0