改进 Windows Phone 7 中的全景视图性能

发布于 2024-12-01 03:00:43 字数 275 浏览 3 评论 0原文

我的主页有一个全景页面,只有 3 页,但是由于某些原因,幻灯片不能像平常一样流畅(在我的模拟器中很流畅,但当我将其构建到 LG optimus 7 中时,有明显的滞后当一页一页滑动时) 我放置了一张精美的大图像作为全景背景(大约 1024*800 和 175KB ),我还为每个全景项目设置了一个蒙版。这是问题的原因吗?因为我还没有实现任何代码,只是一个纯粹的设计和简单的媒体播放器控件。 我还使用 MemoryDiagnosticsHelper 来检查内存使用情况,大约为 35mb 到 40mb。 问题可能出在哪里以及如何提高性能?

I have a panorama page as my mainpage, there was only 3 pages, however for some reasons the slide doesn't go smoothly as usual (In my emulator it's smooth but when I build it into my LG optimus 7, there is a noticeable lag when sliding page to page)
I have place a fancy big image as panorama backgrounds (about 1024*800 and 175KB ), I also have a mask for each panoramaitems. Is this the cause of problem? Because I didn't implement any code yet, just a pure design and simple mediaplayer control.
I also use MemoryDiagnosticsHelper to check memory usage and it's about 35mb to 40mb.
Where could be the problem and how to improve the performance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

樱娆 2024-12-08 03:00:43

如果您所说的蒙版是指 OpacityMask,那么这可能就是问题所在。这是因为 OpacityMask 强制在 UI 线程上渲染全景图,而不是在合成线程上。

性能测试确实需要在真实设备上进行,因为它的硬件与普通 PC 非常不同(较慢)。

If by mask you mean OpacityMask then that's likely to be the issue. That's because OpacityMask forces rendering of the panorama on the UI thread, not the Composition thread.

Performance testing does all need to happen on a real device as it has very different (slower) hardware to your average PC.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文