Hello Guest

Author Topic: Sprite Trimming  (Read 4428 times)

stiv

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Sprite Trimming
« on: June 09, 2015, 01:11:36 pm »
Hi,

Hopefully this is a simple question. I've noticed that when sprites are added to a sprite collection they are automatically trimmed to remove unnecessary transparency. Currently most of my source art is 100x100 pixels even if it is only really a 20x20 pixel image and the rest is transparent.

Would I be correct in assuming there would be no performance benefit for me to manually trim these sprites down myself since the sprite collection is already doing it? Or do the transparent pixels get added back when you use the sprite in game unless you define custom render meshes for every sprite?


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite Trimming
« Reply #1 on: June 09, 2015, 01:35:27 pm »
The transparent pixels don't get added back, you're fine doing this :)

stiv

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Sprite Trimming
« Reply #2 on: June 09, 2015, 01:49:24 pm »
Brilliant, thank you :)