Răsfoiți Sursa

TNet10个client,每个client发送10000000,用时45秒

tanghai 11 ani în urmă
părinte
comite
9ebcbbeda4

+ 3 - 0
CSharp/App/Modules/BehaviorTreeModule/NodeType.cs

@@ -6,6 +6,7 @@
 		Sequence = 2,
 		Not = 10,
 		Weight = 11,
+		True = 12,
 
 		// condition节点 10000开始
 		SelectTarget = 10000,
@@ -32,6 +33,8 @@
 		SpellPrefixInCD = 100018,
 		// 开启了跟随模式
 		EnableFollow = 100019,
+		// 方形陷阱选择目标
+		RectTrapSelectTarget = 100020,
 
 
 

+ 2 - 2
CSharp/Platform/TNetTest/TServerTest.cs

@@ -10,9 +10,9 @@ namespace TNetTest
 	public class TServerTest
 	{
 		private Barrier barrier;
-		private const int clientNum = 100;
+		private const int clientNum = 10;
 
-		private const int sendNum = 10000;
+		private const int sendNum = 10000000;
 
 		[TestMethod]
 		public void SendRecv()