In this video I am showcasing the utility of multi threading in Godot 4.3. Threads are extremely useful for when we want to pass methods which are expensive computationally to different other cores of your processor. This leads to having a much smoother experience, helping reduce frame drops and speed up loading times.
On top of that, this video also tackles issues that might occur when working with threads like: race conditions, deadlocks and thread synchronization through rendezvous and barriers applied on both mutexes and semaphores.
Resources:
Using multiple threads in Godot https://docs.godotengine.org/en/stabl...
Loading a texture with a separate thread https://github.com/godotengine/godot...
Assets:
Kenney's UI Scifi pack https://kenney.nl/assets/uipackscifi
Github repository for this project.
TO BE UPDATED SOON
Support me on KoFi: https://kofi.com/cashewolddew
Chapters:
0:00 Making a game faster with threads
5:37 Loading assets faster with threads
10:10 Race Conditions
17:18 Mutexes
23:39 Semaphores
28:27 Deadlocks
32:00 Mutex Rendezvous Synchronization
36:42 Semaphore Barrier Synchronization
40:41 Thanks to sponsors
#gamedev #godot #threads