Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Which texture compression is better for WebGL?

Discussion in 'Web' started by MaorDany, Oct 14, 2022.

  1. MaorDany

    MaorDany

    Joined:
    Dec 31, 2017
    Posts:
    105
    For quality, rendering performance and file size?
    Thanks!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,510
    If your target mobile: ASTC
    For PC use the best compression for PC (forgot the exact term)

    If you target both I recommend to use ASTC, as this would have higher PC vram usage, which probably is fine if mobile also runs ot
     
  3. MaorDany

    MaorDany

    Joined:
    Dec 31, 2017
    Posts:
    105
    Thanks!, I need it for WebGL. Which texture compression is better for WebGL?
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,510
    I gave your answer already. Depends on what your target device is.
    Also using 2022.2 (or 2022.1 for more stability) might be nice since it has some WebGL optimization
     
    MaorDany likes this.
  5. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    584
    The best is to do not use the "Override For WebGL" and stay on default with "use crunch compression" with a compressor quality set at 50. Change it on what you need on quality.
     
    pachermann and DevDunk like this.
  6. Eloren

    Eloren

    Joined:
    Jul 17, 2019
    Posts:
    21
    Thanks, I was able to compress the texture size from 10 mb to 1.2 mb