@series-inc/rundot-syncplay 6.0.0-rc.35 → 6.0.0-rc.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ # Migrating from Syncplay 6.0.0-rc.35 to rc.36
2
+
3
+ This release has no API changes. A game needs no code change.
4
+
5
+ ## Behavior changes
6
+
7
+ ### A checkpoint restore reads far hull shapes again only when a shape changed
8
+
9
+ The portal code keeps the extents of each body shape. In rc.35, the first
10
+ step after every `restoreCheckpoint` read the shape of every cached body
11
+ again, also when no shape had changed since the capture. With many hulls or
12
+ meshes, this added time to each rollback.
13
+
14
+ From rc.36, a restore skips that check when no body was created, edited, or
15
+ removed since the checkpoint was captured. A restore from serialized bytes
16
+ (`restore`, `importCheckpoint`) always checks. Results are the same as in
17
+ rc.35: digests, contacts, and straddlers do not change.
18
+
19
+ A restore that removes a body created after the capture still checks every
20
+ entry. A later body that gets the same id gets fresh extents.
21
+
22
+ ## An rc.35 change that the rc.35 notes did not list
23
+
24
+ ### Reopening a pair is not a crossing
25
+
26
+ In rc.34, a body kept its crossing history while every pair was closed. A
27
+ body that moved past the plane of a closed end jumped to the linked end when
28
+ the pair opened again. A rollback to a checkpoint from the closed time
29
+ repeated the jump, because the checkpoint kept the old history.
30
+
31
+ From rc.35, a body's crossing history lasts one step. When no pair is open,
32
+ the history is cleared. A body that moves past a closed end stays where it
33
+ is when the pair opens again, also after a rollback. To cross, the body must
34
+ move through the open end. The test "review 27: crossing history does not
35
+ outlive a jump, a closed pair, or a removed body" covers this behavior.
36
+
37
+ ## Release process
38
+
39
+ The publish workflow now waits up to 30 minutes for the npm registry to show
40
+ a new version, before it creates the GitHub release.
@@ -0,0 +1,53 @@
1
+ # Migrating from Syncplay 6.0.0-rc.36 to rc.37
2
+
3
+ This release resolves the 5 remaining physics and portal gaps requested by the Wreck Yard engineering team, improving Continuous Collision Detection (CCD) isolation, portal aperture contact clipping, motion locks under arbitrary pair rotations, proxy capacity visibility and fail-closed safety, and chained portal traversal.
4
+
5
+ ## New World Options & Capabilities
6
+
7
+ ### Configurable Portal Proxy Reserve Capacity
8
+
9
+ The portal proxy reserve (used for clone bodies, bubbles, and joint ghosts) is now configurable in `createPhysicsWorld3D` via `portalProxyCapacity`:
10
+
11
+ ```ts
12
+ const world = createPhysicsWorld3D({
13
+ tickRate: 60,
14
+ capacity: { bodies: 64, joints: 16 },
15
+ portalProxyCapacity: 128, // Default is 64; configurable up to 512
16
+ });
17
+ ```
18
+
19
+ ### Inspect Proxy Metrics on `world.info()`
20
+
21
+ `world.info()` now exposes proxy reserve utilisation metrics:
22
+
23
+ - `info.portalProxyCapacity`: The maximum number of simultaneous portal proxies configured.
24
+ - `info.portalProxyCount`: The current number of active proxy bodies (straddler clones, bubble colliders, joint ghosts).
25
+ - `info.portalProxyOverflow`: Cumulative count of proxy allocation overflow events.
26
+
27
+ ### Fail-Closed Proxy Allocation
28
+
29
+ In prior versions, saturating the portal proxy reserve could silently evict existing straddler clone support. From rc.37, joint ghost allocation against a saturated proxy pool fails closed with error code `physics.capacity-exceeded`, preserving all existing clone couplings and straddler contacts without unexpected floor fall-throughs.
30
+
31
+ ## Behavior Changes & Bug Fixes
32
+
33
+ ### 1. Isolated Continuous Collision Detection (CCD)
34
+
35
+ In rc.36, when any body in the physics world had Continuous Collision Detection (`ccd: true`) active, the contact solver disabled portal clone contacts world-wide. In rc.37, CCD continuous contact clocking is scoped specifically to bullet bodies and their direct contacts. Portal clone couplings and distant straddler supports remain fully active regardless of distant CCD bodies.
36
+
37
+ ### 2. Free-Standing Aperture Contact Clipping
38
+
39
+ In free-standing portal setups (portals without backing walls), objects behind the exit portal aperture plane could previously contact the rear of the clone. In rc.37, the portal contact manager excludes contacts for geometry lying completely behind the exit aperture half-space (`localCenter.z + radius <= 1e-4`), preventing rear ghost collisions while maintaining full interactive pushback in front of the portal.
40
+
41
+ ### 3. Arbitrary Portal Pair Rotations with Motion Locks
42
+
43
+ In previous releases, bodies with linear or angular `motionLocks` (e.g., 2D physics plane constraints or vertical lock axes) would lose their lock constraints when traversing portals with non-cardinal relative rotations (such as 30° or 45°). rc.37 projects motion lock axes onto the dominant transformed rotation axis (using $\ge \cos(45^\circ) \approx 0.7071$), keeping locked axes constrained across arbitrary rotations.
44
+
45
+ ### 4. Chained Portals (Depth 2 Traversal)
46
+
47
+ Syncplay now supports chained portal topologies where an exit of Portal Pair 1 immediately leads into an entry of Portal Pair 2. Straddler detection recursively inspects transformed body bounds up to depth 2, allowing long bodies spanning multiple openings to retain continuous momentum and contact response with bit-identical rollback parity.
48
+
49
+ ## Partner Architecture Notes
50
+
51
+ - **Buoyancy & Fluid Sensors:** Fluid bodies configured with `sensor: true` emit fluid contact events continuously through portals; bubble shapes carry surface velocities across the aperture frame.
52
+ - **CCD bodyB Restriction on Portal Joints:** Portal joints require a non-CCD `bodyB` to ensure single-substep constraint determinism. If an articulated structure needs CCD, attach the CCD component to a child body and link the joint to a standard dynamic parent body.
53
+ - **Rollback Safety & Stale Handles:** All portal proxy state is derived deterministically from the canonical checkpoint. When invoking `world.restoreCheckpoint(cp)`, remember that previous body handles are invalidated; obtain updated handles via `world.resolveBody(bodyId)`.
@@ -0,0 +1,22 @@
1
+ # Migrating from Syncplay rc.37 to rc.38
2
+
3
+ rc.37 did not publish. rc.38 keeps its portal features and fixes the work
4
+ that exceeded three release performance limits. No API change is required.
5
+
6
+ ## Portal motion reads
7
+
8
+ Portal opening checks no longer resolve an unused body handle when cached
9
+ shape extents are available. Free-standing exit clipping uses the motion
10
+ rows already read before the step. It keeps the same body origin, shape
11
+ radius, and clipping threshold.
12
+
13
+ ## Pending teleport history
14
+
15
+ The portal manager indexes pending history keys. An ordinary step does not
16
+ scan all history entries to find a pending teleport. Host jumps keep the
17
+ original history order. Checkpoint restore rebuilds the index from the saved
18
+ history. The index is not serialized.
19
+
20
+ These changes keep checkpoint data and physics results unchanged. Existing
21
+ performance limits stay unchanged. The three failed gates now print their
22
+ measurements when they pass, so release logs retain the evidence.
@@ -6490,11 +6490,12 @@ WorldError World::stepWithRules(const StepOptions& options,
6490
6490
  if (clone >= bodyCount || original >= bodyCount || clone == original) {
6491
6491
  return error(WorldErrorCode::InvalidState, "portal coupling body is missing");
6492
6492
  }
6493
- // In a clock step a contact clone touches nothing and is not coupled.
6494
- // A CCD original also cannot take changes the clock did not make, so
6495
- // a joint ghost of a CCD body stays where it is for that step.
6493
+ // A CCD original cannot take changes the clock did not make, so
6494
+ // a clone or joint ghost of a CCD body stays inert for that step.
6495
+ // Unrelated portals with non-CCD bodies remain fully supported
6496
+ // even when distant bodies in the world run the CCD motion clock.
6496
6497
  const bool bulletOriginal = candidateBodies_[original * bStride + 30] != 0.0;
6497
- if (motionClock && (coupling.contacts || bulletOriginal)) {
6498
+ if (bulletOriginal) {
6498
6499
  const std::uint64_t index = clone;
6499
6500
  std::erase_if(stepRestrictedAllowedPairs, [index](std::uint64_t pair) {
6500
6501
  return (pair >> 32) == index || (pair & 0xffffffffu) == index;