Everything You Need to Know about Dependencies in the C# Job System - Unity 2020

Опубликовано: 01 Октябрь 2024
на канале: Turbo Makes Games
1,226
48

📌 Download the project files from this video: https://tmg.dev/JobDeps 📌
💬 Hang out with other ECS Developers: https://tmg.dev/discord 💬
👶 New to ECS? Start here: https://tmg.dev/StartECS 👶

- 0:00 - Introduction and Project Overview
- 2:57 - Unity Project Setup
- 3:18 - JobDependencies.cs Script Setup
- 3:44 - Defining the Jobs
- 6:11 - Waiting for Jobs on the Main Thread
- 6:52 - NativeContainer Allocator Types
- 8:24 - JobHandle.Complete()
- 9:30 - Job 'B' Depends on Job 'A'
- 11:33 - Job 'C' Depends on Job 'B' that Depends on Job 'A'
- 12:40 - Job 'C' Takes in Results from Independent Jobs 'A' and 'B' as Parameters
- 13:49 - JobHandle.CompleteAll()
- 15:40 - Job 'C' Depends on Independent Jobs 'A' and 'B'
- 16:40 - JobHandle.CombineDependencies()
- 18:07 - Wrap-up and Final Thoughts

Links:
Blog: https://tmg.dev
Twitch:   / turbomakesgames  
Twitter:   / turbomakesgames  
Game Studio: https://homecookedgames.com
GitHub: https://github.com/JohnnyTurbo

Music by: Joakim Karud    / joakimkarud  

📸 My Camera Gear: https://tmg.dev/CameraGear 📸
🎮 Let me know what other topics you want to learn about 🎮

#UnityJobs #JobDependencies #MadeWithUnity

Please 'Like' this video and share it with anyone who is interested in video game development.

Subscribe to the channel for much more independent video game developer related content including tutorials, design breakdowns, industry events, VLOGs, and much more fun stuff!