Monax Posted June 27, 2017 Share Posted June 27, 2017 Hello, How to optimize this? 96 draws, 707 calls. 40 cards and they are drawn separately. all textures are in one atlas, all cards are on the same parent. The card object is a sprite in which the sprite in which 2 sprites for shirt and card face and 4 textures for this. Card class code on the gist: https://gist.github.com/maxmonax/fd8ea7605a7558986aa152c63338f9fd Thanks! Quote Link to comment Share on other sites More sharing options...
Monax Posted June 27, 2017 Author Share Posted June 27, 2017 I solved the problem! I put all the cards elements on one parent. And from the card class made a manager for these elements. Using an empty sprite as a container for other sprites breaks out batching. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.