2014-06-07, 15:50
Hi guys,
I'm looking to cleanup some of my code for weather icons and wanted to know if there was any serious performance penalty for using a multiimage control instead of a image control even if there is only one image in the target folder. For example I would like to use this code
Instead of using a image and a multiimage control with a visible condition that includes a skin bool that says if user wants an animated or static icon, just allow the user to select a location that contains a directory tree that may or may not have multiple images in each child directory.
Is there any difference between a multiimage and a image control when there is only one image in the target directory?
Wyrm (xTV-SAF)
I'm looking to cleanup some of my code for weather icons and wanted to know if there was any serious performance penalty for using a multiimage control instead of a image control even if there is only one image in the target folder. For example I would like to use this code
Code:
<control type="multiimage"><!-- Use Custom weather condition Icon if location selected -->
<include>iconsizeandlocation</include>
<imagepath fallback="$INFO[Current.ConditionIcon]">$INFO[Skin.String(custom-weathericons)]$INFO[Window(Weather).Property(Current.FanartCode)]</imagepath>
<timeperimage>100</timeperimage>
<randomize>false</randomize>
<fadetime>0</fadetime>
</control>
Instead of using a image and a multiimage control with a visible condition that includes a skin bool that says if user wants an animated or static icon, just allow the user to select a location that contains a directory tree that may or may not have multiple images in each child directory.
Is there any difference between a multiimage and a image control when there is only one image in the target directory?
Wyrm (xTV-SAF)