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

(WebGL)Loading Assetbundle contains shaders is very slow in firefox windows

Discussion in 'Shaders' started by fullike, Apr 3, 2015.

  1. fullike

    fullike

    Joined:
    Nov 13, 2012
    Posts:
    17
    Maybe because that I use dynamic branch in shaders with large loop count. But I'm very sure that the loop can be break with some condition and the FPS is always ideal.
    And, loading that bundle is much faster in chrome windows and all browsers in MacOS. So I think that maybe there is a optimization or something in firefox windows trying to unroll the loop.

    I've put this message to feedback, but with no response.

    Attach file is that assetbundle
     

    Attached Files:

  2. fullike

    fullike

    Joined:
    Nov 13, 2012
    Posts:
    17
    Compiling these shaders outputs unrolling error for DX9 and DX11, so I switched to OpenGL Editor by command line -force-opengl. Someone told me that firefox use Direct3D to simulate OpenGL ES on windows. Is that the reason?