Question by
yenicerix · Nov 10, 2015 at 09:17 AM ·
androidnetworking
(Android)Client Network performance on Release(Slow) and Development build(Fast)
Hi,
We have written a code by using UDPClient Class. When we built this code, why is it running slower in the Release Mode? Normally, it should have run faster. When i enabled Development build and Script Debugging, it is running to fast.
Ping on Development Mode : 65-80 ms on Release Mode: 500 - 1000 ms
Client Side:
socket = new UdpClient(IP, _port);
socket.BeginReceive(new AsyncCallback(ReceiveCallback), null);
private static void ReceiveCallback(IAsyncResult ar)
{
IPEndPoint remoteEP = new IPEndPoint(IPAddress.Any, 0);
buffer = socket.EndReceive(ar, ref remoteEP);
if (buffer.Length > 0)
{
string sb = (Encoding.UTF8.GetString(buffer, 0, buffer.Length)).TrimEnd('\0');
}
}
Comment
Your answer
Follow this Question
Related Questions
How to add realtime game events without updating build? 1 Answer
[HELP] Problem in multiplayer networking code in c# 0 Answers
Photon synchronization on different devices failes 0 Answers
saving IAP data on a database 0 Answers
Unity (PC/Mac) communication with Non-Unity (Android/iOS) over LAN? 2 Answers