New packer option exclusiveTag (Defaut: true)
If exclusiveTag is set to true, packer will be identical to the older version which will pack each tagged rectangles into their own bins.
If exclusiveTag is set to false, the newly implemented algorithm will test all existing bins and try to pack rectangles with the same tag into the same bin. If not, a new bin will be created.
This is useful when you want to pack animation sequence / sprites into the same bin to save drawcalls.
Note that if one bin cannot fit in all rectangles, THEY WILL NOT BE PACKED!
Coverage decreased (-0.7%) to 91.258% when pulling b4827b827b478990983886c567e8c2ef7afdc2cf on non-exclusive-tag into 0eeb7d14c9402caa5b29e50aecb6c7db368b5b8b on master.
New packer option
exclusiveTag
(Defaut: true) IfexclusiveTag
is set totrue
, packer will be identical to the older version which will pack each tagged rectangles into their own bins. IfexclusiveTag
is set tofalse
, the newly implemented algorithm will test all existing bins and try to pack rectangles with the same tag into the same bin. If not, a new bin will be created. This is useful when you want to pack animation sequence / sprites into the same bin to save drawcalls. Note that if one bin cannot fit in all rectangles, THEY WILL NOT BE PACKED!