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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Asset Flickering when Viewed on some iOS Devices

Discussion in 'WebGL' started by forgaardk, May 2, 2022.

  1. forgaardk

    forgaardk

    Joined:
    Jun 12, 2019
    Posts:
    2
    I have a 2D Unity WebGL app that is usually run on desktop devices, but is sometimes accessed via iPad. We have started observing that when viewing the app on certain iPads there is severe graphics flickering. We have not identified a pattern with what iPads experience this (it doesn't seem to be performance related).

    I've experimented with different things. The issue seems to be unrelated to framerate (lower framerates just reduce the speed of the flickering). I've also disabled lightmap streaming and forced WebGL 1.0 as the only graphics API, but neither of those had any noticeable impact.

    Are there any other settings I could try playing with that might make a difference?
     
  2. xavier-ateo

    xavier-ateo

    Joined:
    Aug 8, 2018
    Posts:
    12
    Did you try setting shader precision model in the ProjectSettings/Player/Other Settings section to "Use full sampler precision by default"?
     
  3. forgaardk

    forgaardk

    Joined:
    Jun 12, 2019
    Posts:
    2
    @xavier-ateo Thank you for your reply. I should have mentioned in my description, I am using Unity 2019.4. I'm not seeing the option you mentioned in my player settings. I think that must have been added later.
     
  4. xavier-ateo

    xavier-ateo

    Joined:
    Aug 8, 2018
    Posts:
    12
    No worries. I'm only guessing that it might have to do with shader precision.
    Especially with thin objects fare away from the camera, flickering can occur when using a lower precision mode for your shaders.

    You can read up on it here:
    https://docs.unity3d.com/2019.4/Documentation/Manual/SL-DataTypesAndPrecision.html

    My assumtion is that your iPad's GPU might not support higher precision floats on WebGL... (But I'm really not an expert on any of this.)
     
  5. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    334
    If you have a small reproducible example, you can file a bug, let me know what the bug number is, and I can take a look at it.