English 中文(简体)
Poor UDP performance with Windows Phone 7.1 (Mango)
原标题:

Im trying to continuously send small UDP-packets (8 byte) as fast as possible from a Samsung Omnia 7 with Windows Phone 7.1 Beta2 refresh (Mango) to a standard PC with Windows 7 and I get very erratic performance.

The weirdest thing is that I get the best performance when sending one message per around 1-4 milliseconds. If I send messages faster (< 1 ms) or slower (> 4 ms) I get strange freezings where the packages seem to get stuck (for 0.5-1 sec every ~0.5 sec) somewhere before they get released again in a burst.

Another weird observation is that the sending phone-app still seem to send the messages continuously. It is as if the freezings arise outside the app, perhaps in the network-device on the phone (?). But why is a 1-4 ms delay between the messages optimal? Why do I get more of these freezings when sending messages with a lower rate (5-50 ms)?

(When sending from the emulator I get good performance.)

Update

Im kind of giving this up for now. Perhaps it works better in the final release of WP7.1. He who waits shall see.

最佳回答

There appears to be an issue with sending UDP data on WP7. See this MS Connect issue log

http://connect.microsoft.com/VisualStudio/feedback/details/690198/poor-udp-performance-in-windows-phone-7-mango

问题回答

暂无回答




相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签