Florestan
Posts: 227
Joined: 6/5/2010 From: Montpellier, France Status: offline
|
quote:
ORIGINAL: Speeder The game use threading, and sometimes it DOES behave strangely (I for example saw intelligence missions completed and science breakthourghs when the game is completely paused...) Multithreading, you mean? Any program needs at least one execution thread. It is not strange at all. It is called optimization. Instead of computing everything every 1/50 second, the game distributes its computing over a few seconds. This way you don't have to “+1” the position of your moving ship 200 times, and instead, you “+200” it once, saving CPU. Only what is on screen is computed continuously. So if you zoom somewhere else when in pause, the game updates what you look at, and it may trigger events that where not computed yet. This is why events often happen by groups. It must be a very complex mechanism, to avoid missing objects interactions, to predict what will need to be computed before what and such.
|