Jump to content

[Pixi] texture or setTexture?


d13
 Share

Recommended Posts

Definetly using setTexture is better method, because it does a few more things than just replacing texture variable. Check this out here:

 


 

this method notices when old and new textures(just a region definitions on real texture?) has different baseTexture(real texture).

 

I think it is necessary cause WebGL need to switch baseTexture currently in use and it takes some gpu. So if baseTexture are the same, we don't need to do this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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