-2

Some "long work" needs to be performed during game process. Obviously game freezes on 1-2 seconds when this work is being performed. So i put algorithm of "long work" to second thread and, as was expected, freezing has disappeared... but only on PC. Game still freezed on android device.

Please, tell me what I could have missed. Perhaps there are some compilation options that forbid multithreading or something like that?

1 Answer 1

0

Threads work as they must. To find the real problem you should use profiler. They will show you when, where and why the program freezes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.