Windows Phone 7.1 (Mango) 的 UDP 性能不佳 [英] Poor UDP performance with Windows Phone 7.1 (Mango)

查看:24
本文介绍了Windows Phone 7.1 (Mango) 的 UDP 性能不佳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以尽可能快的速度从带有 Windows Phone 7.1 Beta2 刷新(Mango)的 Samsung Omnia 7 连续发送小的 UDP 数据包(8 字节)到带有 Windows 7 的标准 PC,但我的性能非常不稳定.

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.

最奇怪的是,当每大约 1-4 毫秒发送一条消息时,我获得了最佳性能.如果我发送消息更快(<1 毫秒) 更慢(> 4 毫秒),我会收到奇怪的冻结,其中包裹似乎在它们之前的某处卡住(每约 0.5 秒 0.5-1 秒)再次被释放.

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.

另一个奇怪的观察是发送电话应用程序似乎仍然连续发送消息.就好像冻结出现在应用程序之外,也许在电话上的网络设备中(?).但是为什么消息之间的 1-4 毫秒延迟是最佳的呢?为什么在以 较低 速率(5-50 毫秒)发送消息时,我会收到更多这些冻结?

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.)

更新

我现在有点放弃了.也许它在 WP7.1 的最终版本中效果更好.等待的人会看到.

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

推荐答案

在 WP7 上发送 UDP 数据似乎存在问题.请参阅此 MS Connect 问题日志

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

这篇关于Windows Phone 7.1 (Mango) 的 UDP 性能不佳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆