General

Reply

socket very slow on ps vita , run fine on simulator

[ Edited ]

Hello,

 

I tryed to send a few char on a thread to a server, I am able to have 10 send /second in simulator but only 5 / second on the psvita ? it sems that I can not send more than 5 time /seconde on the vita ?

 

static System.Net.Sockets.TcpClient clientSocket;
static NetworkStream serverStream;

private static volatile bool _shouldStop;
static Thread t;
static byte[] outStream;

 

 

public static bool Init()
    {
            graphics = new GraphicsContext();
        SampleDraw.Init(graphics);
    t = new Thread(new ThreadStart(DoWork));
    t.Start();
        return true;
    }

 

 

public static void DoWork()
{
            clientSocket = new System.Net.Sockets.TcpClient();
       
            clientSocket.Connect("192.168.1.12", 8888);
            serverStream = clientSocket.GetStream();
            outStream = System.Text.Encoding.ASCII.GetBytes("Message from Client$");
           
    while (!_shouldStop)
    {
            serverStream.Write(outStream, 0, outStream.Length);
            serverStream.Flush();
            System.Threading.Thread.Sleep(100);// on vita it is 500ms whatever the value I put. simulator is ok i tryed up to 10ms
    }
 }
       

Please use plain text.

Re: socket very slow on ps vita , run fine on simulator

Hi wifibot78,

I will have to confirm this in the next few days. I will let you know when I have more information.

Thanks,
James
PlayStation®Mobile Dev Team
Please use plain text.

Re: socket very slow on ps vita , run fine on simulator

Hi Wifibot78,

Thanks once again for your report. We've had a bit of time to look into it and it seems that there is an unexpected delay occurring here, and we'll investigate to see if we can improve it any further.

Thanks,
James
PlayStation®Mobile Dev Team
Please use plain text.
This widget could not be displayed.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。






Recent News