Distribute work across threads
Suspend or move work off the main thread so that expensive operations don't block frame updates.
Read time 1 minuteLast updated a day ago
Unity provides different options for work that you don't want to run inline on the main thread. The job system schedules small units of work across worker threads to use all available CPU cores. The class integrates C# and with Unity's frame loop, letting a method suspend and resume without blocking the main thread.
AwaitableasyncawaitTopic | Description |
|---|---|
| Write multithreaded code with the job system | Use Unity's job system to get the most out of multi-core CPUs and parallelize your algorithms. |
| Asynchronous programming with the Awaitable class | Asynchronous programming in Unity with the .NET |