when should i start using multi threading ?(beginner)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

hi, what i want to know is
when i should start using multi threading ?
how to know, that i need to use multi threading?

example, if i have 16 cd timer( decrease value by 0.01, each 0.01 sec) running at same time, should i start using multi threading, dedicated just to all this timer?

Another example is when your game is going to need additional assets you’ll need to load from disk, but you don’t want your game to pause for the load. You can load your assets in a separate thread, then notify your main game loop when the loading is done.

Any time you need to perform some long-running operation, but you don’t want it to impact your user experience, you can consider putting that long running operation into a separate thread.

stormreaver | 2021-09-22 01:49

:bust_in_silhouette: Reply From: klaas

Hi,
you should/can use multi threading whenever your game stutters because a process takes longer then an idle cicle. Decreasing a simple value isn’t a “multi thread worth” effort.
Mutli threading is best used when do heavy calculations like pathfinding, image processing etc.