Optimize your game with Threads in Godot!
In this video, I'll go over the basics of multi-threading in Godot!
Threads are super helpful for for when you want to offload intensive tasks to other CPU cores. This helps by increasing your game's performance, reducing/eliminating stutters, and also speeding up your loading times!
We'll also go over some commons issues that you may run into when working with threads (race conditions, deadlocks, etc.), and how to avoid them with Mutexes and Semaphores!
Hopefully this video can teach you something you didn't know before!
Also apologies - my voice is a bit more raspy as I had been talking all day and was struggling by the end of this recording đ
Thanks for watching, and I hope you have a great week! :)
Resources:
âą Discord: https://discord.gg/kgWXhZjd69
âą Twitch: https://www.twitch.tv/queble_game_dev (game dev streams)
âą Godot Download: https://godotengine.org/
Amazing video by Cashew OldDew here: https://www.youtube.com/watch?v=ox5jp_ySFlg
Great video by @bitbirdy that goes more in depth on Semaphores: https://www.youtube.com/watch?v=4XmtZMvyHZE
Official Docs:
âą https://docs.godotengine.org/e....n/latest/tutorials/p
âą https://docs.godotengine.org/e....n/latest/tutorials/p
I offer 1 on 1 Godot Tutoring through my website, and also on Fiverr:
âą https://www.queblegames.com/
âą https://www.fiverr.com/s/o8Wq7AG
Timestamps:
0:00 Intro / what is a Thread?
0:44 Basics of making a Thread
3:40 What's a Mutex / how to use it!
8:23 Basics of using Semaphores
12:00 â Important notes / common questions â
14:23 Outro, thanks for watching! :)
This video was recorded in Godot v.4.4.1 stable