Questions tagged [thread]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

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. ...
Jarno's user avatar
  • 21
1 vote
3 answers

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 ...
bertibott 's user avatar
1 vote
1 answer

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 ...
Alex Bükk's user avatar
0 votes
1 answer

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 ...
laegirl's user avatar
-1 votes
2 answers

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 ...
Muhammad Faizan Khan's user avatar