Questions tagged [thread]
The thread tag has no usage guidance.
5 questions
2
votes
1
answer
969
views
How to synchronize the main thread (rendering, 60 FPS) with the game logic thread (10 FPS)
I wrote some games years ago, and they were always in sync with the main thread. So, for example if the monitor refresh rate is 60 Hz it would look like below.
...
1
vote
3
answers
8k
views
Using pygame with multiple threads
I have decided to try out pygame. I created a class that is supposed to handle all the GUI and game related stuff.
My idea is that I would have two seperate threads. One to handle the GUI and one to ...
1
vote
1
answer
268
views
Is it always necessary to synchronize rendering in a game loop?
When writing a game loop from scratch in java for an android game applications, it is very common in many tutorials I have read that the keyword synchronized is used to synchronize update and ...
0
votes
1
answer
184
views
Pause updating but keep rendering
I am creating an implementation of Snakes and ladders
and I run into some issues.The game is updating too fast and I want to limit the framerate kinda,or make a pause so that the move is actually ...
-1
votes
2
answers
4k
views
Unity is single thread then why unity webgl says asset bundles are load in main thread
Got stuck in a performance issue in Unity WebGL that whenever my asset bundles are load, my unity game gets freeze for some seconds/minutes. I know that unity is not thread-safe and it is based on a ...