Search Unity

Question JobSystem on WebGL not work?

Discussion in 'C# Job System' started by Stormer2020, Jan 27, 2023.

  1. Stormer2020

    Stormer2020

    Joined:
    Sep 14, 2020
    Posts:
    92
    Hi~ I'm testing JobSystem on WebGL.
    The code all work fine, until I put this:
    Code (CSharp):
    1. JobsUtility.JobWorkerCount = 5;
    If JobWorkerCount>0, WebGL webpage will throw error:
    “Invalid JobWorkerCount 5 must be in the range 0 -> 0”

    So, if just only one JobWorker that meaning my work(jobsystem part) here is a waste. Right? The game still running at single thread.

    Any advise for me? I'm writting a voxel engine.
     
  2. SF_FrankvHoof

    SF_FrankvHoof

    Joined:
    Apr 1, 2022
    Posts:
    780
    Stormer2020 likes this.
  3. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,005
    Stormer2020 likes this.
  4. Stormer2020

    Stormer2020

    Joined:
    Sep 14, 2020
    Posts:
    92
  5. Stormer2020

    Stormer2020

    Joined:
    Sep 14, 2020
    Posts:
    92
    Thank you~ Yes, I know that.
    So, is it feasible to build an open world voxel game in webgl?
     
  6. Stormer2020

    Stormer2020

    Joined:
    Sep 14, 2020
    Posts:
    92