A couple of questions, presumably Immortius:
I am puzzled by the structure of main loop. I'm looking at the blocks of code after the handling of hibernation, that is what goes on when Terasology runs normally (line 497).
First the networkSystem updates, then the currentState updates. I guess it is in these two steps that most game-related things happen, either driven by a remote server or by the local client/server while playing standalone.
Then, shortly thereafter, the line GameThread.processWaitingProcesses(); is framed by two loops iterating over subsystems and activating their preUpdate() and postUpdate() methods, hinting to that line being "the" update subsystems care about.
What I don't understand is this:
1) why networkSystem and currentState updates do not occur -between- the preUpdate()/postUpdate() loops?
2) what is the processWaitingProcesses() line for when I cannot find usage anywhere in the project of the methods GameThread.synch()/asynch(), which I seem to understand submit processes into the list of Runnable to be processed?
I am puzzled by the structure of main loop. I'm looking at the blocks of code after the handling of hibernation, that is what goes on when Terasology runs normally (line 497).
First the networkSystem updates, then the currentState updates. I guess it is in these two steps that most game-related things happen, either driven by a remote server or by the local client/server while playing standalone.
Then, shortly thereafter, the line GameThread.processWaitingProcesses(); is framed by two loops iterating over subsystems and activating their preUpdate() and postUpdate() methods, hinting to that line being "the" update subsystems care about.
What I don't understand is this:
1) why networkSystem and currentState updates do not occur -between- the preUpdate()/postUpdate() loops?
2) what is the processWaitingProcesses() line for when I cannot find usage anywhere in the project of the methods GameThread.synch()/asynch(), which I seem to understand submit processes into the list of Runnable to be processed?