I would like official to make it possible to spawn jobs from within other jobs for job system in future editor engine release. This will enable much more possibilities but also to address the main thread job stalling issue at dots physics that can’t be solved without this job system improvement as following:
I would also like to +1 this feature, although I recognize that it’s not very likely. There’s an old manual page on why they don’t allow this:
https://docs.unity3d.com/Packages/com.unity.jobs@0.51/manual/scheduling_a_job_from_a_job.html
But hopefully this could be revisited, or allowed with an ‘unsafe’ designator?
Copied from my response on Discord:
We have some internal plans on exploring this area, however there is no timeline for it since there is a bunch of care to be taken when allowing for the current level of job safety we provide and allowing jobs to schedule jobs. It’s not impossible and is something we want to add as you are correct there are lots of potential benefits, however if you’re not careful we can enter a deadlocking, unsafe, non-deterministic disaster which we want to ensure we don’t provide ![]()