Questions tagged [unity-job-system]
The unity-job-system tag has no summary.
13 questions
1
vote
1
answer
81
views
How do I get a Unity Job to update external data?
I'm relatively new to Unity, and I wanted to use the Job system for a complex pathfinding algorithm, since it will likely be used alongside multiple instances of NPCs attempting to find a valid route. ...
0
votes
1
answer
2k
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 ...
1
vote
1
answer
2k
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 ...
2
votes
2
answers
2k
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 ...
2
votes
1
answer
2k
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 <...
1
vote
1
answer
194
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):
...
8
votes
2
answers
11k
views
When to use NativeArray over List or Array?
I have been reading about NativeArray, but I have to admit I do not understand it.
From the documentation:
A NativeArray exposes a buffer of native memory to managed code, making it possible to ...