Questions tagged [unity-job-system]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
79 views

How to use Unity job system to do background work spanning multiple frames?

I have a slow level generation algorithm that freezes the main thread when it runs. I found this post which is exactly the same problem, but predates the Jobs system. All the jobs examples I found are ...
user avatar
1 vote
1 answer
154 views

Passing a string as argument to Unity Job System

I have a Job that needs to take some string from main thread and use it locally. Considering that the Job System cannot directly accept the string as an argument, is there any workaround to circumvent ...
user avatar
1 vote
1 answer
267 views

Using Unity Jobs to encode file to PNG and then save it on Main Thread

I have a following code , and i can not retrive encoded Output from Job. If I Use JOB : The result is not a valid png file. What I get is a 67,2 MB file which can not be opened with any image editor ...
user avatar
1 vote
1 answer
97 views

Speed up Reaction-Diffusion simulation calculations in Unity

I'm trying to use Unity Job system to speed up some calculation related to Reaction-Diffusion simulation. The calculations requires 2 matrixes, current and ...
user avatar
  • 117
2 votes
2 answers
431 views

How to return an unknown amount of data from a parallel job? (C# Jobs + Burst)

Say we have a parallel job (implementing IJobParallelFor) which requires a large array (>100,000 items) as an input to do some complicated processing. After said ...
user avatar
1 vote
1 answer
82 views

C# Jobs + Burst executing slowly (bottleneck?)

I'm trying to make a system where the player can do a RTS-like drag-to-select of tiles in a box to mark trees to be chopped or ores to be mined. I'm testing this system on a large scale, possibly ...
user avatar
2 votes
1 answer
555 views

Should I dispose a NativeArray on application quit?

I have a NativeArray which stays alive during the whole game, using the Persistent allocator. Should I dispose it inside an <...
user avatar
0 votes
1 answer
158 views

Scene Tab doesn't show anything beside canvas while Game Tab shows everything

i've been building my script normally, but suddently after the last build, i don't see any GameObject Rendered in Scene Tab beside a canvas i have in another scene. I can see everything rendered in my ...
user avatar
1 vote
1 answer
50 views

How can I call Schedule() on interface that inherits from IJob

So I have a voxel terrain engine, and I have an interface that all meshing jobs should inherit from. That looks like this (simplified from the actual): ...
user avatar
0 votes
1 answer
255 views

Worker threads are not being utilized in Time rewind system, is this job system really multi-threaded?

I am trying to make a simple time rewind mechanic. It's working but it becomes slower as number of game objects increases. I decided to give Job System a shot. My idea is to interpolate between ...
user avatar