Skip to main content

Optimising Assets - Overview

Once the build contains only the required assets, developers can further optimise the size by tweaking export parameters of specific assets and folders. Most of such optimisations are "free": changing an image format from PNG to JPEG might yield as much as 80% of size reduction with little to no visual differences and little to no startup time cost. Similarly, switching the sound file to Mono and reducing the bit rate might be unnoticeable to most users and can yield significant savings in terms of the wire size.

We suggest starting your optimisation with the assets that take most of the space in compressed build.

Optimising various asset types#

Please navigate to sections listed below to see how Luna can help reducing the build size in a quick and non-destructive manner.

  • Optimising textures :
    Reduce max size of a specific or all textures to reduce their size. This section allows for setting texture sizes for folders or files that can have parameters applied to exported textures by default.
  • Optimising sounds :
    Setting the audio assets bit rate will help to reduce its size. Bitrate 0 k means max size, changing this to specific size will help reduce its size, it may also lower the audio quality.
  • Optimising fonts :
    Control which characters get rasterized into an atlas by entering in your own custom alphabet contents, and removing characters that aren't being used in your playable.
  • Optimising animations :
    Checking Half precision floating-point. Animations are stored as floats, reducing the size of the animation data taken by 50%.
  • Optimising meshes :
    Checking Half precision floating-point. Meshes are stored as floats, reducing the size of the mesh data taken by 50%.
  • Optimising shaders :
    Unity can include an unnecessary big amount of shader variants as Unity cannot predict whether certain variants will be used or not. Check out our docs on Shaders for more details.