Some texture tweaks for better background loading

May 12th, 2009 Jonathan

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.

  1. Will
    May 13th, 2009 at 14:06 | #1

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

  2. jmarshall
    May 13th, 2009 at 15:34 | #2

    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.

Comments are closed.