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. Dismiss Notice

Burst for WebGL

Discussion in 'Burst' started by Carpet_Head, Jul 22, 2021.

  1. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    254
    What is the current status on burst with webgl - our jobs seem to be running fairly slowly on webgl - though it has an obvious lack of threading support - I'm curious if the jobs are burst compiled or not?
     
  2. Lee_Hammerton

    Lee_Hammerton

    Unity Technologies

    Joined:
    Jul 26, 2018
    Posts:
    111
    Burst is not currently supported on webgl unfortunately. Jobs will simply compile the same as they would without any BurstCompile attributes.
     
  3. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    254
    Got it. I did see an old forum thread somewhere saying it was being worked on last year. It is on the roadmap, or unlikely to happen?
     
  4. Lee_Hammerton

    Lee_Hammerton

    Unity Technologies

    Joined:
    Jul 26, 2018
    Posts:
    111
    At this time its not on the roadmap or being actively worked on (to my knowledge). Burst itself does support wasm as a target, but integration with Unity webgl player is the missing piece.
     
  5. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    254
    that's useful information, thanks
     
  6. jasonboukheir

    jasonboukheir

    Joined:
    May 3, 2017
    Posts:
    80
    If we wanted to try integrating it ourselves, where would we start?
     
  7. Lee_Hammerton

    Lee_Hammerton

    Unity Technologies

    Joined:
    Jul 26, 2018
    Posts:
    111
    Hi,

    Unfortunately I don't think that this is possible to do without some engine work, The burst package uses the player target to decide what to build, at present the burst package does not do anything for webgl (its ignored). On top of this, the web gl player would need to be modified in order to provide the right interface for plugging into burst wasm generated code. Sorry If I got your hopes up too much, I didn't mean to imply that it would be trivial. Burst currently generates wasm internally (which is used for verifying behaviour - ie Continous Integration - against a simply chrome browser), the only way at present to use burst and wasm in Unity would be to use Project Tiny.

    Lee
     
    Rallix and jasonboukheir like this.
  8. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    254
    just a very small poke to say we would really love this and it would be a super powerful feature to have. We have a lot of features that rely on burst, and it would be great to be able to expose it to people on web. Without it, our code is so slow!
     
  9. Zarbuz

    Zarbuz

    Joined:
    Oct 13, 2015
    Posts:
    31
    Any news about it in 2023 ?
     
  10. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    282
    Hi @Zarbuz - no news, unfortunately. Burst support for WebGL isn't something that's been prioritised - it's not being worked on, and it's not on the roadmap.
     
  11. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    254
    :(
     
    Coco07 likes this.