Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Burst Compiler + WebGL

Discussion in 'Web' started by aromana, Mar 1, 2021.

  1. aromana

    aromana

    Joined:
    Nov 11, 2018
    Posts:
    137
    I was under the impression that the Burst compiler/package was NOT supported under WebGL, however, I saw that BurstAotSettings_WebGL.json was generated when I installed burst on Unity 2020.2.6f1. Does that mean it's supported? Or is this file indicative just a "placeholder" for when Burst will in fact be supported in WebGL? If the latter -- is there any update on timing?
     
    Iron-Warrior and De-Panther like this.
  2. dlorddd

    dlorddd

    Joined:
    Aug 13, 2016
    Posts:
    7
  3. dlorddd

    dlorddd

    Joined:
    Aug 13, 2016
    Posts:
    7
    I tested it and it is possible to use Burst 1.5.1 to direct call static methods compiled with burst. However the job system is not supported, and some overhead is added when calling these methods so it probably only makes sense to use this for really intense tasks.
     
  4. Iron-Warrior

    Iron-Warrior

    Joined:
    Nov 3, 2009
    Posts:
    838
    Are these methods actually Burst compiled, or just that you can still call them? I'd imagine you could call them fine but from what I've read the [BurstCompile] tag is just ignored.

    (Bit of a necro here but figured better than starting a new thread.)
     
  5. apkdev

    apkdev

    Joined:
    Dec 12, 2015
    Posts:
    277
    Sadly:
     
    Unifikation likes this.