From a5e322b896cd894b44159a76e3a2a15c1058feb8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 16:54:27 +0000 Subject: [PATCH] Stop the expanded 3D starters from freezing while boxes move, and load faster The navigation mesh of the whole level was rebuilt (at most once per second) each time a pushable box moved, which took 100 to 300 ms in the expanded shooter with enemies and the 3D house horror. The pushable boxes are no longer navigation mesh obstacles (enemies push them out of the way instead of walking around them). The cells of the navigation mesh are 10 pixels instead of 5 in the expanded starters using it, so that building it when the level starts is about 4 times faster. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GFZnZwjYz8dSQxu3B2QVUJ --- .../starting-expanded-3d-house-horror.json | 9 +-------- .../starting-expanded-3d-rts-unit-selection.json | 2 +- .../starting-expanded-first-person-horror.json | 2 +- .../starting-expanded-first-person-shooter-enemies.json | 9 +-------- .../starting-expanded-first-person-shooter-horror.json | 2 +- 5 files changed, 5 insertions(+), 19 deletions(-) diff --git a/examples/starting-expanded-3d-house-horror/starting-expanded-3d-house-horror.json b/examples/starting-expanded-3d-house-horror/starting-expanded-3d-house-horror.json index fa33d5eb2..417147e07 100644 --- a/examples/starting-expanded-3d-house-horror/starting-expanded-3d-house-horror.json +++ b/examples/starting-expanded-3d-house-horror/starting-expanded-3d-house-horror.json @@ -5759,13 +5759,6 @@ "massCenterOffsetY": 0, "massCenterOffsetZ": 0, "massOverride": 0 - }, - { - "name": "NavMeshObstacle", - "type": "NavMeshPathfinding::NavMeshObstacleBehavior", - "shape": "Box", - "meshShapeResourceName": "", - "obstacleOnly": true } ], "content": { @@ -10266,7 +10259,7 @@ { "name": "NavMeshCharacter", "type": "NavMeshPathfinding::NavMeshCharacterBehavior", - "cellSize": 5, + "cellSize": 10, "cellDepth": 2, "slopeMaxAngle": 40, "stairHeightMax": 20, diff --git a/examples/starting-expanded-3d-rts-unit-selection/starting-expanded-3d-rts-unit-selection.json b/examples/starting-expanded-3d-rts-unit-selection/starting-expanded-3d-rts-unit-selection.json index 61e7454c1..77f00a65d 100644 --- a/examples/starting-expanded-3d-rts-unit-selection/starting-expanded-3d-rts-unit-selection.json +++ b/examples/starting-expanded-3d-rts-unit-selection/starting-expanded-3d-rts-unit-selection.json @@ -3428,7 +3428,7 @@ { "name": "NavMeshCharacter", "type": "NavMeshPathfinding::NavMeshCharacterBehavior", - "cellSize": 5, + "cellSize": 10, "cellDepth": 2, "slopeMaxAngle": 22, "stairHeightMax": 20, diff --git a/examples/starting-expanded-first-person-horror/starting-expanded-first-person-horror.json b/examples/starting-expanded-first-person-horror/starting-expanded-first-person-horror.json index 7b34b604a..7fb72d2ea 100644 --- a/examples/starting-expanded-first-person-horror/starting-expanded-first-person-horror.json +++ b/examples/starting-expanded-first-person-horror/starting-expanded-first-person-horror.json @@ -3393,7 +3393,7 @@ { "name": "NavMeshCharacter", "type": "NavMeshPathfinding::NavMeshCharacterBehavior", - "cellSize": 5, + "cellSize": 10, "cellDepth": 2, "slopeMaxAngle": 40, "stairHeightMax": 20, diff --git a/examples/starting-expanded-first-person-shooter-enemies/starting-expanded-first-person-shooter-enemies.json b/examples/starting-expanded-first-person-shooter-enemies/starting-expanded-first-person-shooter-enemies.json index 17da43339..313053e1b 100644 --- a/examples/starting-expanded-first-person-shooter-enemies/starting-expanded-first-person-shooter-enemies.json +++ b/examples/starting-expanded-first-person-shooter-enemies/starting-expanded-first-person-shooter-enemies.json @@ -1712,13 +1712,6 @@ "massCenterOffsetY": 0, "massCenterOffsetZ": 0, "massOverride": 0 - }, - { - "name": "NavMeshObstacle", - "type": "NavMeshPathfinding::NavMeshObstacleBehavior", - "shape": "Box", - "meshShapeResourceName": "", - "obstacleOnly": true } ], "content": { @@ -5092,7 +5085,7 @@ { "name": "NavMeshCharacter", "type": "NavMeshPathfinding::NavMeshCharacterBehavior", - "cellSize": 5, + "cellSize": 10, "cellDepth": 2, "slopeMaxAngle": 40, "stairHeightMax": 20, diff --git a/examples/starting-expanded-first-person-shooter-horror/starting-expanded-first-person-shooter-horror.json b/examples/starting-expanded-first-person-shooter-horror/starting-expanded-first-person-shooter-horror.json index 9741ca3ec..7a3d7979e 100644 --- a/examples/starting-expanded-first-person-shooter-horror/starting-expanded-first-person-shooter-horror.json +++ b/examples/starting-expanded-first-person-shooter-horror/starting-expanded-first-person-shooter-horror.json @@ -5578,7 +5578,7 @@ { "name": "NavMeshCharacter", "type": "NavMeshPathfinding::NavMeshCharacterBehavior", - "cellSize": 5, + "cellSize": 10, "cellDepth": 2, "slopeMaxAngle": 40, "stairHeightMax": 20,