---
title: 了解Physics性性能问题
product: Unity Editor
version: '6000.0'
latest_version: '7000.0'
status: This page documents version 6000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/zh-cn/engine/6000.0/manual/physics-section/physics-overview/physics-optimization/physics-performance-issues
latest_url: https://docs.unity.com/zh-cn/engine/7000.0/manual/physics-section/physics-overview/physics-optimization/physics-performance-issues.md
last_updated: 2026-10-30
generated_at: 2026-11-17T10:25:23.850Z
locale: zh-cn
---

# 了解Physics性性能问题

> 了解应用程序中与 Physics 相关的性能问题。

Physics 模拟与主要逻辑的更新 Loop 分开的已修复频率更新周期 ON 运行，并且只能通过每次调用的[`Time.fixedDeltaTime`](/engine/6000.0/script-reference/unityengine/time/fixeddeltatime.md)来提前时间。这类似于 [`Update`](/engine/6000.0/script-reference/unityengine/monobehaviour/update.md) 和 [`FixedUpdate`](/engine/6000.0/script-reference/unityengine/monobehaviour/fixedupdate.md) 之间的差异。如需了解更多信息，请参阅 ON [时间窗口](/engine/6000.0/manual/unity-editor/editor-settings-reference/comp-manager-group/class-time-manager.md)的文档。

当繁重的逻辑或图形帧需要很长时间时，性能分析器必须每帧调用多个 Physics 模拟。这意味着已经Resource密集型的帧会占用更多时间和资源。这可能会导致 Physics 模拟根据 **Maximum Allowed Time步进** 值暂时停止，您可以在 Project Settings 窗口（菜单：**编辑 > 项目设置 > 时间**)

要在项目中检测此问题，请选择 [CPU 使用率性能分析器模块](/engine/6000.0/manual/analysis/profiler/visualizing-data/cpu/cpu.md)，并检查 **Physics.Processing** 或 **Physics.模拟**在 **层级**视图的 Overview 部分中的调用数量。


**CPU Usage Profiler with the value of 2 in the Calls column:**
![](/api/media?file=/engine/6000.0/media/images/profiler-physics-cpu-module.png)

在此示例图像中，Calls 柱状图值 2 表示在最后一个逻辑帧中调用了两次Physics模拟。

调用数量关闭 10 可能表示存在问题。作为第一个解决方案，请降低Physics模拟的频率，如果问题仍然存在，请检查在Physics system必须使用大量模拟Calls来赶上Game Time之前可能导致帧的原因。有时，沉重的图形帧可能会导致场景中稍后 ON 发生更多 Physics Simulation Calls。

有关 Scene 中 Physics 模拟的详细信息，请选择模块细节面板顶部的 search Box，搜索 **Physics.Processing**，然后从面板顶部的 Dropdown 中选择 **Call**。此时会显示为更新Scene而运行的Physics system任务的名称，例如以下命令：

* \*\*Pxs：\*\*PhysX 解算器，这是关节需要的Physics system任务，用于解析重叠Rigidbody组件的接触。
* \*\*ScScene：\*\*用于更新 Scene、运行宽阶段和窄阶段以及集成 Rigidbody 组件（由于力和脉冲而在 Space 中移动这些组件）的任务。

## 其他资源##additional-resources

* [Physics Profiler 模块参考](/engine/6000.0/manual/physics-section/physics-overview/profiler-physics.md)
* [Physics 调试窗口参考](/engine/6000.0/manual/physics-section/physics-overview/physics-debug-visualization.md)
