Some texture tweaks for better background loading

Posted By: Team XBMC on May 12, 2009 in Site News

Another couple of nice changes have hit SVN for you skinners.  There’s been a bug fixed in the large texture manager (that handles background loading of images) – it used to wait up to a second between loading images, which meant you couldn’t really use them in situations where you needed a lot of textures loaded all at once.  This has been remedied.

I’ve also added an attribute background=”true” to all texture related tags.  This forces the image to be loaded via the large texture manager except for textures in Textures.xpr.

Jezz_X also suggested a slight tweak to info images with <fadetime> set.  Now, if the first texture to load in a window is already in memory (due to being used in a previous window) it will load instantly, and thus forgo the usual fade in.

All these changes mean:

  • You can use the background texture loader for images within containers – this means your wall thumbs can be loaded in the background, giving silky smooth scrolling, at the expense of a slight delay in loading the image (you can mask this by using a loading image for instance).
  • You can use the background texture loader for background images that persist across window transitions – there’s no fade in due to the new window being opened.

With judicious use of background=”true” you can have texture-rich skins whilst still having nice, smooth scrolling.

Discussion - 3 Comments

  • Will May 13, 2009 

    I wonder does this help the xbox with memory issues in any way?

  • jmarshall May 13, 2009 

    The background loading can be done on xbox, yes. In this case it’s unlikely to affect memory consumption – if anything, for short periods of time (2 seconds after transistions) it might use more. This stuff hasn’t been merged to xbox anyway at present, and it’s completely up to arnova as to whether he wants to do this.

  • Pingback: New multiimage control code allows background loading | jmarshall's blog

About Kodi

Kodi is a free and open source media player application developed by the XBMC Foundation, a non-profit technology consortium. Kodi is available for multiple operating-systems and hardware platforms, featuring a 10-foot user interface for use with televisions and remote controls. It allows users to play and view most videos, music, podcasts, and other digital media files from local and network storage media and the internet.