Performance
Это содержимое пока не доступно на вашем языке.
A Vertex Character on the normal capsule costs about the same as the engine’s character. Features cost only while they are used.
Measured with 100 characters walking on a ramp, without meshes or animation, per character per frame:
| Situation | Time |
|---|---|
| Engine character | 11.1 µs |
| Vertex character, normal capsule | 12.2 µs (within measuring noise) |
| Lying capsule or box | about 16.5 µs |
| Box with Align To Floor, walking | 25.6 µs |
Network: 1 bit per player move with the normal capsule, a few bits while a preset is active, and the shape is sent to other players only while it changes. Measured: about 3% more upload while switching presets every second.
Profiling
Section titled “Profiling”| Tool | How |
|---|---|
| Unreal Insights | CPU scopes start with VAC_: VAC_UpdateShape, VAC_ApplyShape, VAC_UpdateAutoTilt, VAC_MeasureFloorSlope, VAC_ComputeFloorDist, VAC_ConstrainTurn. |
| On-screen state | VAC.Debug 1 shows the movement mode, preset and shape. VAC.Debug 0 hides it. Not in Shipping builds. |
Keep it fast
Section titled “Keep it fast”- Tick Align To Floor only on presets that need it.
- Use On Collision Shape Preset Changed or On Collision Shape Reached for your logic, not On Collision Shape Changed (it fires many times during each change).