Font Size: a A A

Research And Implementation Of A Mobile Real-time Strategy Game Server System

Posted on:2020-08-06Degree:MasterType:Thesis
Country:ChinaCandidate:Q C ShenFull Text:PDF
GTID:2428330590459920Subject:Software engineering
Abstract/Summary:PDF Full Text Request
In recent years,with the rapid development of the Internet and the popularity of mobile devices,the market share of mobile games and the size of game users have shown an explosive growth trend.Real-time strategy game(RTS)is one of the most popular games.A stable and reliable server system is the key to a game.However,there are some problems in the mobile RTS server at present,such as low performance under high concurrency and high network delay.Therefore,this thesis designs and implements a mobile RTS server system through demand analysis.The main work of this thesis is summarized as follows:(1)Proposed a design scheme of a mobile real-time strategy game server system.According to the input and output of the system,the requirements of the system are analyzed,mainly including functional requirements and performance requirements.The main functions of the system are sorted out,and the system deployment scheme and database table structure are designed.(2)According to the problem of high concurrency and limited network bandwidth of mobile real-time strategy games,two optimization mechanisms including load balancing and data caching are proposed.For load balancing mechanism,virtual nodes are introduced on the basis of consistency hashing algorithm,and load balancing is realized through node weight allocation and load dynamic adjustment;for data caching mechanism,this thesis proposes a cache replacement algorithm based on key value evaluation,aiming at balancing object hit rate and byte utilization in cache,thereby improving cache utilization and reducing network latency.(3)A mobile real-time strategy game server system supporting high concurrency and real-time performance is implemented.Load balancing technology is used to realize login and payment functions under high concurrency;The hierarchy system is used to realize player matching system;frame synchronization protocol stack is designed for the combat module,and real-time online combat functions for multiple people are realized with the frame synchronization technology;data persistence is realized by database.Separation of reading and writing and synchronization technology ensure high performance and high availability of database.Finally,the performance test of the mobile real-time strategy game server system is carried out,including the stress test under high concurrency and the performance test of the database.The test results show that the system meets the functional and performance requirements,and the system has been deployed and applied in real enterprise scenarios.
Keywords/Search Tags:real-time strategy game, game server system, load balancing, cache technology, high concurrency
PDF Full Text Request
Related items