Skip to content

Hight Level Architecture

Markus edited this page Jun 20, 2020 · 1 revision

Parallel Processing

This diagram gives a rough overview of how the parser utilizes parallel processing. In one thread the demo packages are parsed and in the second thread they are processed.

Sequence Diagram: Parallel Processing

Parsing Loop

Here is a more detailed diagram of the parsing loop. First we read the binary data (read: byte-arrays), then decode it to structs via gogo/protobuf and finally write it to the queue for the processing loop to take over.

Sequence Diagram: Parsing Loop

Processing Loop

In the processing loop we update the game-state and send out events to the registered handlers.

Sequence Diagram: Processing Loop