Search Unity

What dose the size of the sprite shown in the Editor mean?

Discussion in 'General Graphics' started by soaring, Jun 3, 2017.

  1. soaring

    soaring

    Joined:
    Jun 22, 2015
    Posts:
    27
    We noticed that Unity Editor is reporting image sizes that are WAY bigger what they actually are. We are trying to figure out why, and if we are doing something wrong is bloating out our image.

    For example, here is one of our images "skeleton.png", and it shows a size of 145KB on our Mac Finder:
    Screen Shot 2017-06-02 at 5.25.50 PM.png
    But from the Editor, it shows up as a whopping 5.3MB! We didn't change the image size from what it is on the disk, nor did we change any import settings. MipMap is being auto-generated, but I believe that should have only added about 30% to the size.

    Screen Shot 2017-06-02 at 5.25.35 PM.png

    So, what's going on? We are particularly interested in what this means in terms of how it impacts the size of the app we build? How it impacts vram usage?

    Many Thanks!!
     

    Attached Files:

  2. soaring

    soaring

    Joined:
    Jun 22, 2015
    Posts:
    27
    I just realized that by changing the Compression Option from "None" to "Normal Quality" or "High Quality", the size shown is reduced down to 1.3MB. Crunch Compression further reduce it down to ~134.6KB even at 100% quality!

    What's not completely clear to me is does this refer to the amount of space taken on the disk (impacting the build size), or does it refer to the amount of texture memory used?
     
  3. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    (1024octet * 1024octet * 4.rgba)+30% =5.3248MB
     
  4. soaring

    soaring

    Joined:
    Jun 22, 2015
    Posts:
    27
    Got it. So it is the uncompressed size of the sprite. thx!