Windows Phone 8 的内存使用限制 [英] Memory usage limit for windows phone 8

查看:24
本文介绍了Windows Phone 8 的内存使用限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

windows phone 8 应用程序的应用程序内存使用限制是多少,我需要三种不同设备(如 720p、WXVGA 等)的内存限制

What is the application memory usage limit of windows phone 8 application, I need memory limit for the three different devices available (like 720p, WXVGA etc)

推荐答案

WP8 内存上限有三个方面:默认基线(150MB+)、扩展内存(180MB+)和低内存设备选择退出(300MB+).

The zen of WP8 memory caps has three aspects: default baseline (150MB+), extended memory (180MB+) and low-memory device opt-out (300MB+).

基线:

默认情况下,WP8 上的所有应用程序(D3D、XAML 和 XNA)至少有 150MB,高于 WP7 上的 90MB.从 90MB 增加到 150MB 是为了容纳在高清显示器上获得更详细视觉效果所需的额外内存.

By default all apps (D3D, XAML and XNA) on WP8 have at least 150MB which is up from 90MB on WP7. The increase from 90MB to 150MB is done to accommodate the extra memory needed for more detailed visuals on HD displays.

扩展内存上限

应用还可以通过指定 ID_FUNCCAP_EXTEND_MEM 来请求额外的内存.当要求额外的内存时,您保证在所有设备上至少有 180MB.当要求额外的内存时,您的应用实际上可能在高内存设备上获得高达 380MB 的内存.

Apps can also ask for additional memory by specifying ID_FUNCCAP_EXTEND_MEM. When asking for additional memory you're guaranteed at least 180MB on all devices. When asking for additional memory your app may actually get all the way up to 380MB memory on high-memory devices.

选择退出低内存设备

应用还可以通过指定 ID_REQ_MEMORY_300 选择退出低内存设备(512MB RAM).这保证了您的应用程序只能在高内存设备(大于 1GB 的 RAM)和至少 300MB 的内存上运行.

Apps can also opt-out of low-memory devices (512MB RAM) by specifying ID_REQ_MEMORY_300. That guaranteed your app will only run on high-memory devices (more then 1GB of RAM) and with at least 300MB of memory.

您应该对高内存设备"的看法是,它就像拥有一个可选传感器(陀螺仪、指南针等)或任何其他可选硬件(NFC 等).不要假设用户有这个额外的内存,除非你想大大限制你的应用程序的分发.公共统计数据表明,低内存设备的销售情况非常好,除非绝对必要,否则您不应取消您的应用程序在这些设备上的资格.

The way you should think about "high memory devices" is that it's just like having an optional sensor (Gyroscope, Compass, etc) or any other optional hardware (NFC, etc). Don't assume users have this extra memory unless you want to limit the distribution of your app considerably. Public statistics show that low-memory devices sell pretty well and you shouldn't disqualify your app from those devices unless it's an absolute must.

这篇关于Windows Phone 8 的内存使用限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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