> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/creator/content-creator-zh/mian-xiang-yi-dong-duan-gou-jian/kai-fa/optimize-performance.md).

# 性能

Decentraland 场景的移动端限制和性能目标，以及如何在 Creator Hub 中预览和衡量它们。

与桌面端或 Web 相比，移动设备的资源限制更严格。了解移动场景限制以及如何预览这些限制，有助于你发布能在更多设备上流畅运行的场景。

## 移动场景限制

下表列出了在移动设备上运行时强制执行的限制。达到 **软限制** 时，性能面板会显示警告；达到 **硬限制** 时，场景将无法加载。

| 指标         | 软限制       | 硬限制       |
| ---------- | --------- | --------- |
| 三角形        | 1,000,000 | 1,200,000 |
| 实体         | 4,800     | 6,000     |
| 网格（主体）     | 2,400     | 3,000     |
| 几何体        | 1,000     | 2,000     |
| 材质         | 400       | 500       |
| 纹理         | 400       | 500       |
| 碰撞体        | 1,200     | 1,500     |
| VFX 发射器    | 8         | 10        |
| 活动粒子       | 25,000    | 50,000    |
| 光源         | 8         | 16        |
| 阴影光源       | 2         | 4         |
| 内容大小       | 120 MB    | 150 MB    |
| 外部内容       | 40 MB     | 50 MB     |
| 内存（进程 RSS） | 1,638 MB  | 2,048 MB  |
| 绘制调用       | 1,000     | 2,000     |
| 性能（越高越好）   | 90%       | 85%       |

## 光源和粒子

光源行统计的是 **场景内容中创作的** 光源数量，而不是引擎最终实际运行的数量。每种图形配置仅启用一定数量的最近光源（从“极低”下的 0 个到“高”下的 8 个），并且可能完全禁用阴影。因此，即使场景中创作了 20 个光源，场景仍需承担它们带来的开销，尽管同一时间最多只有 8 个光源会发光。创作时请遵守限制，不要依赖运行时预算。

粒子在运行时还受到额外限制：每个发射器最多 5,000 个粒子，每个场景最多 50,000 个粒子。超出上限的数量会被静默截断，因此超过限制只会浪费场景预算。

## 预览移动端性能

你可以直接在 **Creator Hub** 中检查场景的移动端性能，无需部署到实体设备。

1. 在 **Creator Hub**.
2. 选择“预览”>“显示移动端二维码”
3. 在手机上点击右上角的图标（显示红色统计信息的显示器图标），打开 **场景限制预览** 。

![Creator Hub 中的移动场景限制面板](https://2460066822-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoPnXBby9S6MrsW83Y9qZ%2Fuploads%2Fgit-blob-643086d38d714356d285000ffc14f00b54889437%2Fmobile_scene_limits.webp?alt=media)

{% hint style="warning" %}
**在“高”图形设置下将性能保持在 90% 以上**

该 **性能** 该值是当前图形配置文件所设 FPS 预算的百分比。得分为 **100%** 表示场景达到了完整的 FPS 目标。

请务必在中端设备上进行测试，例如 **三星 Galaxy A54** 并力争在高画质配置文件下获得 **高于 90% 的性能得分**。这能确保大多数移动端玩家获得流畅体验。请参阅 [硬件要求](https://docs.decentraland.org/creator/content-creator-zh/mian-xiang-yi-dong-duan-gou-jian/yi-dong-ke-hu-duan/hardware-requirements.md) 了解参考设备。

你可以通过以下路径更改图形配置文件： **游戏内菜单 → 设置 → 图形 → 将动态画质设为“关闭” → 切换配置文件**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.decentraland.org/creator/content-creator-zh/mian-xiang-yi-dong-duan-gou-jian/kai-fa/optimize-performance.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
