Quantcast
Channel: 2D Latest Topics
Viewing all articles
Browse latest Browse all 623

Phaser optimization

$
0
0

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!

photo_2017-06-27_02-42-28.jpg


Viewing all articles
Browse latest Browse all 623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>