How to use the Job System + Burst with Game Objects in Unity! (2020 - Unity 6)
Channel: Dev Dunk
Date: 2023-06-02

Unity Jobs System and Burst can deliver insane performance improvements. This guide will show you both the basics and some advanced ways you can use these great free tools to make your game run a lot more smoothly.

Starting point (project without jobs/burst): https://github.com/smitdylan2001/JobSystemTutorial/tree/TutorialStart
Written guide + source code: https://github.com/smitdylan2001/JobSystemTutorial


Timestamps:
- 00:00 Introduction
- 00:54 Jobs & Burst basic theory
- 02:44 Install Jobs + requirements
- 04:30 Make C# Job + Burst compatible
- 07:56 Create parralel job struct
- 10:35 Make and schedule job
- 13:02 Advanced job usage


Full description: 
Performance is crucial for real-time 3D software, like games. The Unity Job System combined with Burst is a great tool to obtain a huge performance increase for parallel tasks! In my current graduation project, where I deform meshes in real-time, it got me from 5ms to 0.1ms on the main thread. This is done with a mesh with over 80.000 vertices. This performance is great for standalone VR. Most calculations in for loops can be made parallel using the job system, as long as it does not make any references to managed code. References to Transform can be made using their own job type, as this is a common use case. This guide will show you the basics of how to implement the job system in your project!

This guide is made in Unity 2021.3 LTS, but will also work in other Unity versions!
2022.3 LTS, 2023.1 tech stream, and 2023.2 beta all should work.


~~Thanks for Watching!~~

Support me on Patreon:
https://www.patreon.com/TechDunk


    --Subscribe for more!--

My social media:
Discord - https://discord.gg/rAYumVP
Itch.io - https://devdunk.itch.io/
Instagram - https://instagram.com/DevDunkStudio
Twitter - https://twitter.com/DevDunkStudio
Facebook - https://facebook.com/DevDunkStudio

 #JobSystem #Unity3D #MadeWithUnity