2010-12-14, 13:49
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:
Code 2:
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>