Online multiplayer game architecture and programming 1

[ Online multiplayer game architecture and programming 1 ]

1, even today, most of the multiplayer online game in each game session still limit the number of players, in general, supports 4 to 32 players. However, in the massively multiplayer online game (massive multiplayer online gmme, MMO) , the hundreds of thousands of players will also appear in the same game session in.

2, "Star siege: Tribes," the developers will eventually be divided into the following four types of data:

  1) non-guaranteed data. When the bandwidth is limited, it discards the first game selection data.

  2) to protect data.

  3) most recent state data. Only the latest player data is important data applications. Such as game players know the current value of life, then his life value 5 seconds before is not important.

  4) protection of the fastest data. As a player of the mobile information is extremely important in a very short time, so to be busy transfer.

3, peer network model requires O (n ^ 2) bandwidth, and the C / S model requires only O (n) bandwidth.

4, "Star siege: Tribes" network model:

  

  1) internet packet module. Socket API standard package can be constructed, and transmit different data packet format.

  2) Connection Manager. The network connection between the two computers abstraction, the connection manager is not reliable, which ensures the correct transmission of the delivery status notification.

  3) stream manager. It determines the maximum allowable rate of data transmission. The request lined up in order of priority, under bandwidth constraints, mobile manager, event manager, ghost manager has the highest priority.

  4) Event Manager. Maintain an event queue simulation game produced by layer, these events can be seen as a remote procedure call (remote procedure call, RPC).

  5) Ghost manager. Copy is considered dynamic objects associated with a given client. This information is divided into "need to know" priority, "know best"

  6) mobility manager. When a mobile data is available, the outbound stream manager always add all mobile packet data manager.

5、

6、

7、

Guess you like

Origin www.cnblogs.com/tekkaman/p/11261528.html