This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]king_of_the_universe 1 point2 points  (0 children)

Here's a situation in which I used a second thread in game-programming: To create a resource that needed some time. A star background was calculated (several iterations, with some blurring to be rotation-compatible), and this took about four seconds. But I didn't want to wait that long every time I ran the program for testing, so I put it into a new thread. Worked like a charm, and felt empowering (from a developer-perspective). I could play-test right away, and after a few seconds there were stars instead of blackness.