Ludovic Marie
55945ee975
Collision scans: skip blocks with no shape, build the entity shape lazily
...
BlockCollisionScan asked every cursor cell for its collision shape,
moved it into place and intersected it with Shapes.create(box), even
for air. Mob movement and every other Entity.collide spent most of
their time there. Now:
- CollisionBlock carries empty_shape, set by the registry for states
with no contextual rule and an empty cached shape (air, plants): the
scan skips them without asking. Providers that build CollisionBlock
themselves (the query-order fixture) leave it false, so their query
logs are unchanged.
- A shape whose bounds miss the box is skipped before moving it:
joinIsNotEmpty(AND) of the two is false anyway.
- Shapes.create(box) is built the first time a shape is not the unit
cube (finite bounds always make one), not for every scan.
- SceneCollisions hands the scan the resident chunk itself, so a cell
costs one section read instead of a chunk-map lookup.
Results are unchanged: running both paths side by side over 900,000
mob moves in a 600-mob village gave bit-identical movement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-16 16:40:22 +02:00
..
2026-10-06 11:24:51 +02:00
2026-10-07 11:09:59 +02:00
2026-10-07 10:56:23 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 03:56:36 +02:00
2026-10-07 13:27:16 +02:00
2026-10-07 12:53:20 +02:00
2026-10-07 04:28:50 +02:00
2026-10-07 11:39:35 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 19:49:00 +02:00
2026-10-06 19:49:00 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-16 16:40:22 +02:00
2026-10-06 14:59:17 +02:00
2026-10-07 01:37:33 +02:00
2026-10-06 12:42:28 +02:00
2026-10-07 01:13:45 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-16 07:07:47 +02:00
2026-10-07 07:16:41 +02:00
2026-10-07 06:00:28 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 08:59:07 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-14 00:09:59 +02:00
2026-10-06 19:31:11 +02:00
2026-10-06 15:40:26 +02:00
2026-10-09 00:28:32 +02:00
2026-10-07 02:43:07 +02:00
2026-10-06 23:43:16 +02:00
2026-10-06 23:13:27 +02:00
2026-10-07 04:32:00 +02:00
2026-10-07 07:16:41 +02:00
2026-10-07 07:06:29 +02:00
2026-10-07 09:53:21 +02:00
2026-10-07 09:58:37 +02:00
2026-10-07 10:16:26 +02:00
2026-10-07 05:31:45 +02:00
2026-10-07 04:45:25 +02:00
2026-10-07 05:47:53 +02:00
2026-10-13 00:06:19 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 00:56:02 +02:00
2026-10-07 12:07:19 +02:00
2026-10-07 11:31:39 +02:00
2026-10-07 14:19:54 +02:00
2026-10-07 04:02:38 +02:00
2026-10-07 00:08:21 +02:00
2026-10-07 03:33:30 +02:00
2026-10-07 01:52:30 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 09:31:23 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 22:10:44 +02:00
2026-10-07 01:01:15 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 19:31:11 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 03:41:22 +02:00
2026-10-06 12:32:23 +02:00
2026-10-07 03:12:04 +02:00
2026-10-07 02:49:12 +02:00
2026-10-07 02:03:42 +02:00
2026-10-07 04:07:48 +02:00
2026-10-07 09:42:53 +02:00
2026-10-07 04:11:52 +02:00
2026-10-07 00:30:53 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 02:08:32 +02:00
2026-10-07 07:54:29 +02:00
2026-10-07 07:59:07 +02:00
2026-10-07 08:25:27 +02:00
2026-10-07 08:43:08 +02:00
2026-10-07 09:25:56 +02:00
2026-10-07 06:12:53 +02:00
2026-10-07 09:17:20 +02:00
2026-10-07 07:16:41 +02:00
2026-10-07 09:49:49 +02:00
2026-10-07 07:30:19 +02:00
2026-10-07 08:50:15 +02:00
2026-10-07 06:58:53 +02:00
2026-10-07 06:20:34 +02:00
2026-10-07 08:08:32 +02:00
2026-10-07 06:42:53 +02:00
2026-10-07 10:43:55 +02:00
2026-10-07 10:43:55 +02:00
2026-10-08 03:22:22 +02:00
2026-10-08 03:22:22 +02:00
2026-10-07 13:51:15 +02:00
2026-10-07 13:16:05 +02:00
2026-10-07 02:28:48 +02:00
2026-10-07 04:36:31 +02:00
2026-10-07 01:07:11 +02:00
2026-10-07 02:32:09 +02:00
2026-10-07 04:18:35 +02:00
2026-10-07 05:24:37 +02:00
2026-10-07 02:19:25 +02:00
2026-10-07 02:36:01 +02:00
2026-10-08 15:18:18 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 01:43:13 +02:00
2026-10-07 00:43:56 +02:00
2026-10-07 00:38:02 +02:00
2026-10-07 11:52:45 +02:00
2026-10-07 11:19:02 +02:00
2026-10-07 00:47:39 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 08:03:42 +02:00
2026-10-07 04:39:43 +02:00
2026-10-07 05:05:28 +02:00
2026-10-07 05:28:01 +02:00
2026-10-07 07:47:32 +02:00
2026-10-07 02:39:16 +02:00
2026-10-14 18:06:24 +02:00
2026-10-07 05:54:59 +02:00
2026-10-07 02:53:17 +02:00
2026-10-07 02:15:30 +02:00
2026-10-07 03:19:39 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 00:23:13 +02:00
2026-10-06 15:55:41 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 16:26:45 +02:00
2026-10-07 05:17:23 +02:00
2026-10-06 14:08:13 +02:00
2026-10-07 07:41:29 +02:00
2026-10-14 17:49:15 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 10:08:55 +02:00
2026-10-07 10:32:07 +02:00
2026-10-07 11:01:50 +02:00
2026-10-07 12:38:24 +02:00
2026-10-07 12:38:24 +02:00
2026-10-08 21:40:00 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 23:43:16 +02:00
2026-10-07 03:37:38 +02:00
2026-10-07 08:15:15 +02:00
2026-10-07 04:53:08 +02:00
2026-10-07 10:23:21 +02:00
2026-10-06 11:24:51 +02:00
2026-10-06 11:24:51 +02:00
2026-10-09 00:28:32 +02:00
2026-10-07 08:34:24 +02:00
2026-10-07 08:53:10 +02:00
2026-10-06 11:24:51 +02:00
2026-10-09 00:32:50 +02:00
2026-10-07 06:07:40 +02:00
2026-10-07 03:45:49 +02:00
2026-10-07 00:15:16 +02:00
2026-10-06 11:24:51 +02:00
2026-10-07 01:59:47 +02:00
2026-10-06 11:24:51 +02:00