> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XR-133 本地存储写入限制

> XR-133 将游戏在每 5 分钟窗口内对持久或临时本地存储的写入限制为 1 GiB；超出将触发本地存储系统提示。

**XR-133 在认证中进行测试。** 使用本地存储的游戏在 **5 分钟的时间段内**，对持久本地存储或临时存储的总写入量不得超过 **1 GiB**。

超出此预算将触发"本地存储写入限制"（Local Storage Write Limitations）系统提示，视为认证失败。

有关在使用 GDK 的 XBOX 主机上进行本地存储实现的详细信息，请阅读 GDK 文档的 [Local Storage 部分](https://learn.microsoft.com/en-us/gaming/gdk/_content/gc/system/overviews/features/local-storage)。

## 测试用例

### 133-01 本地存储写入限制

1. 安装游戏，在游戏运行的状态下遍历所有区域，包括但不限于：
   * 创建游戏存档，重启主机并加载存档。
   * 游玩所有游戏模式并解锁 / 查看成就。
2. 观察游戏是否会出现"本地存储写入限制"系统提示。

**通过：** 游戏未触发"本地存储写入限制"系统提示。

**不通过：** 游戏触发了"本地存储写入限制"系统提示。

## 常见失败原因

* 在零售版本中向磁盘写入详细遥测或调试日志。
* 频繁写入很小增量的流式缓存。
* 每帧保存的模式或过度激进的自动保存。
* 中间件写入中间文件而未进行清理。

## 相关内容

* [XR-132 服务访问限制](/publishing/certification/xr/xr-132)
* [XR-052 用户状态与游戏存档位置、漫游及依赖](/publishing/certification/xr/xr-052)


## Related topics

- [XBOX 认证概览](/zh-CN/publishing/certification/overview.md)
- [FMA:XR-133 本地存储写入限制](/zh-CN/publishing/certification/fma/xr-133.md)
- [XBOX 要求 (XR) 认证参考](/zh-CN/publishing/certification/xbox-requirements.md)
- [Beta 与 XBOX Game Preview 游戏的认证](/zh-CN/publishing/certification/cert-beta-game-preview.md)
- [XR-018 用户生成的内容](/zh-CN/publishing/certification/xr/xr-018.md)
