指定 MemoryDependency UWP App
Specify MemoryDependency UWP App
我有一个从 Unity 生成的 UWP 应用程序。我想根据内存限制我的应用程序的可用性,因为它在小于 1gb 的情况下 运行 效果不佳。我 found this MemoryDependency,但我无法在 package.appxmanifest 的代码中应用它,有人可以告诉我这是如何完成的吗?
你走在正确的轨道上。以下是步骤。
To validate your StoreManifest.xml, create a new xml document in Microsoft Visual Studio and add the following declaration:
http://schemas.microsoft.com/appx/2015/StoreManifest
namespace
下面是 StoreManifest.xml 最小 1 GB 的设备
<?xml version="1.0" encoding="utf-8"?>
<StoreManifest xmlns="http://schemas.microsoft.com/appx/2015/StoreManifest">
<Dependencies>
<MemoryDependency MinForeground="300MB" />
</Dependencies>
</StoreManifest>
下面是Table声明MemoryDependency
For mobile devices, the value indicates the requirements for available memory. The equivalent requirements for installed memory on mobile devices are as follows:
- 300MB = 设备必须至少安装 1 GB 内存
- 750MB = 设备必须至少安装 2 GB 内存
- 1000MB = 设备必须至少安装 3 GB 内存
- 2000MB = 设备必须至少安装 4 GB 内存
For example, if you specify that your UWP app requires 300 MB to run properly, it will only be able to be installed on mobile devices with >1 GB of RAM or on desktop devices with >300 MB of RAM.
有关如何执行此操作的更多信息和配置是 here
我有一个从 Unity 生成的 UWP 应用程序。我想根据内存限制我的应用程序的可用性,因为它在小于 1gb 的情况下 运行 效果不佳。我 found this MemoryDependency,但我无法在 package.appxmanifest 的代码中应用它,有人可以告诉我这是如何完成的吗?
你走在正确的轨道上。以下是步骤。
To validate your StoreManifest.xml, create a new xml document in Microsoft Visual Studio and add the following declaration:
http://schemas.microsoft.com/appx/2015/StoreManifest
namespace
下面是 StoreManifest.xml 最小 1 GB 的设备
<?xml version="1.0" encoding="utf-8"?>
<StoreManifest xmlns="http://schemas.microsoft.com/appx/2015/StoreManifest">
<Dependencies>
<MemoryDependency MinForeground="300MB" />
</Dependencies>
</StoreManifest>
下面是Table声明MemoryDependency
For mobile devices, the value indicates the requirements for available memory. The equivalent requirements for installed memory on mobile devices are as follows:
- 300MB = 设备必须至少安装 1 GB 内存
- 750MB = 设备必须至少安装 2 GB 内存
- 1000MB = 设备必须至少安装 3 GB 内存
- 2000MB = 设备必须至少安装 4 GB 内存
For example, if you specify that your UWP app requires 300 MB to run properly, it will only be able to be installed on mobile devices with >1 GB of RAM or on desktop devices with >300 MB of RAM.
有关如何执行此操作的更多信息和配置是 here