欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

change delicate server max player numbers HOW-TOs 博客分类: UnrealEngine4 what is the maximum number of players UE4 can handle? 

程序员文章站 2024-03-21 20:25:10
...

 

what is the maximum number of players UE4 can handle? I am hoping to start aims to support 24 players in UE4. My client transport messages several M per seconds per client which is syn to server. another application broadcast the udp message to every client at the same rate of tramission.

 

Someone in the FAQs asqued about that, someone replyed that there is no limit, it only depends of the pc that will hold the game, I mean, the server. It really depends on how much messages your players are sending back and forth. If it's a low-message game then you can probably handle thousands; if it's a high message game you may be able to support only 100 players. This is purely speculation, though.

 

look in the source code under the following directory: UnrealEngine/Engine/Config/BaseGame.ini there is a value for MaxPlayers=16.

 

I'm not entirely sure where this is being called from when starting a game but I believe that's a start in the right direction. Someone will have to come up with a basic game that allows an infinite amount of players to connect and automate the testing of said basic game to stress test both the hardward, network, and the code optimizations made to be able to properly gauge how many players you can have in any given location/server.

Dive a bit into the source code, you'll find all there is to know about how the networking portion of the engine is setup and ask questions about it. I'm still diving through it currently at work but I can't really test it since it's my work computer :P

I believe that right now the server/client configuration is setup for basic Team Deathmatch sort of gameplay and would need tweaking to the code to allow for more players (ex: mmo).