feat : 서버 로직 성능개선 / 결과 정리

This commit is contained in:
qornwh1
2026-03-06 10:16:36 +09:00
parent 85c3276207
commit 2a7d4aeb09
5 changed files with 159 additions and 35 deletions

View File

@@ -1,4 +1,6 @@
namespace MMOserver.Game.Channel;
using LiteNetLib;
namespace MMOserver.Game.Channel;
public class ChannelManager
{
@@ -37,12 +39,12 @@ public class ChannelManager
return channels;
}
public void AddUser(int channelId, long userId, Player player)
public void AddUser(int channelId, long userId, Player player, NetPeer peer)
{
// 유저 추가
connectUsers.Add(userId, channelId);
// 채널에 유저 추가
channels[channelId].AddUser(userId, player);
// 채널에 유저 + peer 추가
channels[channelId].AddUser(userId, player, peer);
}
public bool RemoveUser(long userId)