Abstract:Nowadays, the run-time performance of server becomes a crucial factor for online games. To solve the problem, this paper proposes a new method, which uses the callback strategy based on templates, to improve the run-time performance of game-server. Based on Visual Studio and C++, the key technology and strategy during the erection of server are researched. In the article, the server is divided into 4 parts:database, account server, network and map. The experimental result shows that the delay in server session reduces obviously by using the callback strategy based on templates. Through this experiment, it is proved that the key technology proposed can be used in VR environments, game development and many other fields and has practical value.