Jump to content

hi!, heellpp!, looking a lot and can't find a way to use multiple same sprites in one single draw call! -->read more pls! helpp!


mrkarate
 Share

Recommended Posts

hi, sorry, but I'm really frustated,  at least I know, it's possible to make a batching of your sprites, if you make from the same texture, this will can count as one single draw call,

but how you can do that?,  (I don't mean to convert all tiles to bitmap), I mean for example, I have an spritesheet of four objetcs, it;s same texture, so I can draw four and count only as a one draw call,  or more simple, just draw the same object, don't be count as only one draw call?, someone know something about this?? i'm really need to know this

 

 

thanks!!!

Link to comment
Share on other sites

  • 2 weeks later...

yes, already do that, but that only work when you have backgrounds sprite, I need to change children index to put sprite above or behind me, I read than you can using spritesheets pow of 2, and when you got a texture from that, you can save a draw call if you call multiple sprites of same texture, at least the logic say this is possible (unity with static and dinamic batching, pixi with texture bashing), but here I can't do this, it's possible? or simple not?

 

another question enpu, I see create a container it's a draw call too, it's a same expensive have a empty container for draw call, than a sprite?, because I have sprites inside containers for get a better child index in the main container.

 

 

really thanks for answer it!

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...