Answer the question
In order to leave comments, you need to log in
Is multi-threaded programming used when creating a mobile game?
I'm new to Gamedev, I just learned basic C# and started to get familiar with Unity. I was wondering if multithreading is used in mobile games? And if it is used, in what cases and is it so important?
Answer the question
In order to leave comments, you need to log in
It is used where and not in games.
If there is a lot of data that can be processed in parallel, then multithreading can be used.
If there are no performance problems, then you should not screw multithreading.
This usually only causes performance degradation and bugs if implemented incorrectly.
All modern programs work with at least two threads.
It does not matter what operating system and purpose of the program.
There is a UI thread - drawing the interface. The reaction to actions (buttons, tapas, etc.) as soon as it takes more than a few milliseconds is taken out to a separate stream (s).
Since it is not a trivial task to catch all combinations of states of different threads,
for simplicity, the task executor can be limited to 1 thread.
Specially some task to divide and run on different threads? Well, I don't think it would be necessary.
Again, the number of available threads is not infinite. On a particular hardware, it may turn out that you are only allowed 1, 2, 4 threads.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question