Тёмный

Understanding Job Dependencies in Unity ECS - Unity DOTS Tutorial [ECS Ver. 0.17] 

Turbo Makes Games
Подписаться 26 тыс.
Просмотров 6 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@TurboMakesGames
@TurboMakesGames Год назад
❗❗ *Caution:* This video was made using an older version of Unity ECS. While the core concepts remain the same, some of the API and workflows have changed as of ECS version 1.0. I would recommend checking out my ECS 1.0 tutorial video for a good overview of the latest standards for Unity’s DOTS: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-IO6_6Y_YUdE.html Once again, the theory behind the concepts of this video are still relevant, however the API has changed. Stay tuned for further updated videos on this subject. Please let me know if you have any questions either here or in our Discord community: tmg.dev/Discord
@TurboMakesGames
@TurboMakesGames 2 года назад
Hey all, thanks for watching this video! I know this video is probably a bit longer than it “could have been” if I just wanted to explain to you how job dependencies work. But with this video I really wanted to give you a practical example of how to use them rather than just “oh hey ‘job A’ depends on ‘job B’!” Again I know it’s not the way you would actually make a project like this, but I hope it helped you understand the quirks of job dependencies in ECS 😊
@qtxsystems
@qtxsystems 2 года назад
You misspelled dependencies in your cover image for this video... btw, keep up the good work on the ECS content! I do enjoy these videos.
@TurboMakesGames
@TurboMakesGames 2 года назад
Fixed! Thanks for looking out 🙃
@qtxsystems
@qtxsystems 2 года назад
@@TurboMakesGames Not a problem! Would love a good tutorial or overview on Animation with ECS. There doesn't seem to be a lot on the topic and the best examples I have found have been from Philippe St-Amand with his Rival library (anything with Inverse Kinematics would be amazing).
@로물루스-e5p
@로물루스-e5p 2 года назад
OMG this is what I wanted
@TurboMakesGames
@TurboMakesGames 2 года назад
Great to hear! Hope this was helpful to you 😊
@r1pfake521
@r1pfake521 2 года назад
Maybe Im thinking wrong about the whole job system, but one thing I don't understand is that all code examples schedule the jobs in every Update loop, can't you make a job that takes multiple frames and you want to access the data only after the job is "done"? For example let's say I click somewhere and then want to start a job that does some heavy work, for example a heavy pathfinding, that runs in the '"background" and can take a while and then once the pathfinding job is done I want to start the actual walking. But all job examples that I saw so far call schedule in Update, so every frame. Wouldn't that start a new pathfinding job every frame, even if the previous pathfinding isn't done yet? In traditonal C# code I would run the pathfinding in an Task and await it until the results are done, maybe my thinking is wrong, because I see jobs as tasks?
@TurboMakesGames
@TurboMakesGames 2 года назад
Yeah, that's a great point to bring up - in jobs scheduled in SystemBase Updates yes, the job will need to be completed within the frame they were scheduled. This does allow for parallel processing and reducing context switching, but it's not like asynchronous programming like you brought up. When scheduling jobs from MonoBehaviours, the jobs can take longer than a frame, so long as you don't force completion later in the frame. But this is definitely a topic I'd like to explore further on the channel, to give people some options for running code in the background over a longer period of time.
@r1pfake521
@r1pfake521 2 года назад
@@TurboMakesGames Ah I see, thanks for the answer. I will look forward to the video(s) :D
@yudnai5577
@yudnai5577 2 года назад
can you make a video about NetCode and ECS?
@TurboMakesGames
@TurboMakesGames 2 года назад
It's definitely something I'd like to explore at some point. Probably won't do anything with the official DOTS Netcode until we hear more from them, though I'd be more likely to do something with DOTSNET
@ahsanuirham
@ahsanuirham 2 года назад
What is Job Dependencies Bro?.....
@ahsanuirham
@ahsanuirham 2 года назад
Hey, Jonny, Can you teach me C#?..... I will pay you, after generate the revenue from my game..... Really I'm not kidding.....
@chadfranklin47
@chadfranklin47 2 года назад
oh no
@epicfailman69
@epicfailman69 2 года назад
Man, your email message was a little too clickbatey for my liking, don’t do it pls
@miltonmedeiros915
@miltonmedeiros915 2 года назад
It was a pun
@epicfailman69
@epicfailman69 2 года назад
I know, but you only know it’s a pun after knowing what the video is about, so it’s still a clickbait
@TurboMakesGames
@TurboMakesGames 2 года назад
Just having fun with it 😁😁 Thanks for stopping by, cheers!
Далее
Сколько стоит ПП?
00:57
Просмотров 173 тыс.
#kikakim
00:10
Просмотров 14 млн
Unity Job System - A Practical Code Example
13:50
Просмотров 82 тыс.
Getting Started with the Job System in Unity 2019
25:54
What are BlobAssets ? How to use them ?
8:02
Просмотров 2,8 тыс.