Search Unity

Bug WEBGL is broken on Iphone

Discussion in 'Web' started by sinitsyndev, Nov 13, 2023.

  1. sinitsyndev

    sinitsyndev

    Joined:
    Jan 27, 2021
    Posts:
    2
    Using unity 2022.3.11f1 (repeats on 2020.3.47f also ) i have issues with webgl build on iphone (11,ios 16.3 and 16.6.1) - very long load (around 3-4 minutes),1fps after ,almost all materials invisible (standart materials). Meanwhile in Android/Windows its works alright. There are lots of warnings logs in debug panel in iphone chrome browser : "RGB Compressed DXT1|BC1 UNorm format is not supported, decompressing texture" i think its a main source (full log below)
    I've tested build on empty scene with 3 cubes with standart materials with textures - also invisible on iphone with these warnings
    i've also tryied with diffrent setups: without compression /ASTC texture - nothing helps.
    If somewhone have information or a way to make it work I would appreciate the help.
    upload_2023-11-13_21-0-43.png
    upload_2023-11-13_21-0-28.png

    Logs (there are some game warnings also about old missing scripts , but its not root of the problem cause i've tested it also on empty scene ):
    upload_2023-11-13_21-25-16.png upload_2023-11-13_21-25-30.png upload_2023-11-13_21-26-8.png
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,813
    Did you create a new URP (Universal Render Pipeline) project for this? If not, do that to see if that works better.

    And no, to my knowledge DXT is not supported on iOS WebGL. If the player settings don't help you may have to go through each texture importer settings. Check this in the cube project so you can more quickly find out which texture format works (best).

    You may actually have to support different formats per platform. The manual has some tips on that. See here and specifically the link about creating different builds: https://docs.unity3d.com/2022.1/Documentation/Manual/webgl-texture-format.html
     
  3. sinitsyndev

    sinitsyndev

    Joined:
    Jan 27, 2021
    Posts:
    2
    I'm using build in for now , i'm sure its support cause in my friend's project with 22 unity and build-it pipline works perfect on iphone with DXT. Also there are auto compressing to DTX or ASTC format for all textures.

    For now 1 found some solution : cause of GPU instancing some materials are invisible , i'm keep going test performance without it and load speed