Jump to content

Multi-Texture usage?


stupot
 Share

Recommended Posts

Just upgraded to 2.7.3 and thought I'd try out multi-texture.  It appeared to work (less draw calls) but I noticed the following:

  1. The setTexturePriority() accepts an array of keys and checks only the image cache for matches.  I wanted to include some rendertarget and text textures.  I was able to manualy set the textureIndex property of those textures and the draw count dropped accordingly, so that appeared to work.  Is there any reason why setTexturePriority() doesn't allow a wider variety of targets?
  2. The docs say to clear out the multi-texture settings by passing in an empty array to setTexturePriority(), which doesn't do anything.  It wrongly references 'index' instead of 'i', to reset the texturePriority of the textureNameCollection[] list.  A[art from this fault, I'm thinking that this should really be clearing every texturePriority to include any manualy set ones, not just the ones remembered from the last setTexturePriority() call.  What's the thinking on this?
Link to comment
Share on other sites

  • 3 months later...
On 22/06/2017 at 5:24 PM, samme said:

Thanks for the update samme.  My local fixed setTexturePriority() allows non-image components to be specified, thus allowing a wider range of things with textures to be added.  It's a few commits behind now but I could update it and check in?

I got my whole game down to 1 draw (I think) and it ran slower, probably something to do with issue #198, so didn't pursue the mutitexture route any further.

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...