Search Unity

WebGL and ECS

Discussion in 'Entity Component System' started by De-Panther, Dec 4, 2018.

  1. De-Panther

    De-Panther

    Joined:
    Dec 27, 2009
    Posts:
    589
    Should it work?
    Tried the Samples Project ( https://github.com/Unity-Technologies/EntityComponentSystemSamples ) Using 2018.3.0b7.

    I tried the Boid Example.
    In the editor, the fish boid won't instantiate when the platform is WebGL.
    In the browser, the fish are instantiated, but I get errors regarding JobTempAlloc every frame.

    Internal: JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak
    To Debug, enable the define: TLA_DEBUG_STACK_LEAK in ThreadsafeLinearAllocator.cpp. This will output the callstacks of the leaked allocations

    Is it like this in every version of the Unity Editor or the ECS packages? Or is there a combination that does work?

    Thanks
     
    Antypodish likes this.
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,778
    I wouldn't be surprised, if ECS is not yet complaint with WebGL.
    Unless someone confirms as such, I think we may still need to wait.
    Or maybe there is simple fix already?