PulseCore

Chapter 3 · Section 16

Gravity Rings: RingField and the Adaptive Ring Search

The BPT law

BPT Part 2.8 defines the beat the rings keep: the Local Universe Time Crystal duration is "the Pulse Rhythm: the time to cross the Pulse Diameter one way," ⧖⌂ = ↁℨ⧖ × 2ⁿ × f₀ⁿ × ⟪C⟫. BPT Part 7.5 (The Resonant Field of Becoming, Interference Dynamics) gives how pulses add where they meet: the Constructive Interference Amplitude, A⋓ = |Σ_i A_i e^(iφ_i)|, which is greatest "when phase relationships satisfy integer multiples of 2π (φ_i − φ_j = 2πn)", with destructive interference at (2n + 1)π making null zones of radius r∅ = λ/4. The game's rings join the two. The comment at rings.js:4–15 reads: "Every well of a universe pulses, and each pulse sends a ring outward at one cell per pulse: the Pulse Diameter per Rhythm." It cites BPT Part 2.8 for the Pulse Rhythm as the Time Crystal duration, Chapter 7 for interference and harmonics, and Chapter 5 for phase coupling. Where k rings meet in the same frame is a convergence of depth k: 2 at a vesica tip, 3 where three petals touch, 6 at a daisy's center (the flower of life). That each well sends rings is the game's reading of the Pulse Rhythm; BPT does not state rings from wells as such. Their search is a game method.

The established physics

None: a game method. Two circles meet at zero, one or two points, by plane geometry (circleMeets() rings.js:70).

The game's math

ensureRings() app.js:565 builds the field:

new RingField({ period: pulseLength = 2, speed: 1, maxRadius: max(rows, cols)/2,
                eps: 0.35, maxRings: 10, maxSources: max(4000, ⌊rows·cols/4⌋), ringSources: 32 })
  • Rings of a well, radii(src, t) rings.js:42: one ring per period since birth, radius (age − k·period)·speed. They stop at maxRadius or at the newest maxRings.
  • A ring through a point, ringThrough() rings.js:55. A ring of radius d left at age − d/speed. It exists if that time is within eps/speed of a multiple of the period.
  • The search, step(t) rings.js:87. It takes the youngest ringSources wells. For each pair, and each pair of their rings with both radii at least 2, it finds where the circles meet. Each meeting is checked against every other well's rings, and the depth is the count passing through. A meeting that recurs at the same rounded spot, seen on three beats with depth ≥ 2, is announced as a time crystal (a node). A crystal unseen for 4 periods is forgotten. alive(t) returns crystals seen within one period. The search is O(n²·r²·n) in the n wells searched.
  • The adaptive count, stepFinds() app.js:1924–1929. The search is timed each step. If it took under 4 ms and more wells exist than are searched, ringSources grows by 15 %. If it took over 8 ms, it shrinks by 15 %, never below 8 (ruling 2026-10-29: "swap that"; it was a fixed 32).
  • Node finds are off. NODE_FINDS = false (app.js:231, ruling 2026-10-28): the rings still meet and are drawn, but their meetings are not collected.

The sources are the wells. rings.sources is the game's list of physical wells and sites, which every other Part reads.

The method, in plain steps:

each well sends a ring every period (2 flips), growing one cell a flip, at most 10 rings
a ring passes a point if it left at a time within eps of a whole period
each step, for the youngest wells searched: where two rings meet, count the other rings through that point
    a meeting that recurs three beats with depth ≥ 2 is a node (not collected in 8.4)
time the search: under 4 ms → search 15% more wells; over 8 ms → 15% fewer, never below 8

The code:

// public/game-v8.4/app.js:564 ensureRings()
function ensureRings() {
    if (!rings) rings = new RingField({ period: pulseLength, speed: 1, maxRadius: Math.max(rows, cols) / 2, eps: 0.35, maxRings: 10, maxSources: Math.max(4000, Math.floor((rows * cols) / 4)), ringSources: 32 });   /* as many wells as the field has room for (2026-10-29) */
    return rings;
}

// public/game-v8.4/rings.js:42 radii()
radii(src, t) {
    const out = [];
    const age = t - src.born;
    if (age < 0) return out;
    for (let k = Math.floor(age / this.period); k >= 0; k--) {
        const radius = (age - k * this.period) * this.speed;
        if (radius > this.maxRadius || out.length >= this.maxRings) break;
        if (radius > 0) out.push(radius);
    }
    return out;
}

// public/game-v8.4/rings.js:55 ringThrough()
ringThrough(src, r, c, t) {
    const d = Math.hypot(r - src.r, c - src.c);
    const age = t - src.born;
    if (age <= 0 || d > this.maxRadius) return false;
    // a ring of radius d left at age − d/speed; it exists if that is a multiple of the period (within eps)
    const left = age - d / this.speed;
    if (left < 0) return false;
    const k = Math.round(left / this.period);
    return Math.abs(left - k * this.period) * this.speed <= this.eps;
}

// public/game-v8.4/app.js:1924
const t = pulseCounter;
const tR0 = performance.now(), res = rings.step(t, rows, cols), tR = performance.now() - tR0;
/* ⚠️ HOW MANY WELLS' RINGS ARE SEARCHED (2026-10-29, the author: "swap that"; was a fixed 32): the search for where rings meet grows as the
   cube of the wells in it, so the device sets it: the youngest wells, more while a search takes under 4 ms, fewer past 8 ms */
if (rings.sources.length > rings.ringSources && tR < 4) rings.ringSources = Math.ceil(rings.ringSources * 1.15);
else if (tR > 8) rings.ringSources = Math.max(8, Math.floor(rings.ringSources * 0.85));

In the game

The rings are drawn in the 2D view ("2D · the field" in the view menu, index.php:141), from the big bang on: every well and every site sends thin cyan circles out from its center, one a Tempo, fainter as they widen (drawGrid() app.js:4133–4138). Where rings meet in step the live crystals show as small diamonds, colored by their rarity's hue and larger for a greater depth, 3 + 1.5·depth pixels (app.js:4141–4144). The drawer switch "Show the wells' rings" (index.php:195, on by default) turns the circles off in 2D; in 3D the same switch shows or hides the halo ring round each well and each Proto Well (scene3d.js:1526, 1646). The 3D view does not draw the expanding rings. Its crystal markers, small glowing octahedra, at most 120 (setCrystals() scene3d.js:1773–1781), are cleared once the matter is drawn (scene3d.js:1775), and the rings only begin at the big bang, when the first wells and sites join rings.sources, so in 3D the meetings are not marked. The help card "Finds" tells the player: "Every well sends rings; where rings meet in step a harmonic node forms, deeper where more meet" (index.php:310). While NODE_FINDS is off the meetings are drawn but no node is added to the Collection.

The scale model

The rings are drawn in drawn cells and flips. One ring per Tempo per drawn well. The ring search covers only the youngest ringSources drawn wells, so convergences among older wells are not found. That only bears on what is found, not on any physics.

Where the game and the theory differ

  • addSource() rings.js:34 still drops the oldest source when the list passes maxSources: if (this.sources.length > this.maxSources) this.sources.shift(). The comment at rings.js:26–27 says sources "are no longer dropped". That holds only while the list stays under maxSources = max(4,000, ⌊rows·cols/4⌋): 4,000 on a phone and 16,384 on a desktop. On a desktop at level 202, the comment at matter.js:245 counts about 15,000 sites, which leaves room for fewer than 1,400 more wells. Past that, the oldest well or site is silently removed from gravity, the census and the lineage.
  • The rings live on a torus, but circleMeets() rings.js:70 and ringThrough() rings.js:55 use plain plane distance, and step() skips meetings that fall outside the field (rings.js:101), so rings that meet across the seam are not found. The rings also stop at half the field, maxRadius = max(rows, cols)/2.

Fixed numbers

Number Where What it is Kind
2 pulseLength app.js:51 period: a ring per Tempo, two flips BPT (Pulse Rhythm, Part 2.8)
1 app.js:565 ring speed, a cell a flip BPT (Pulse Diameter per Rhythm, Part 2.8)
1/2 app.js:565 maxRadius, half the field CAP (a fixed reach; the meeting geometry ignores the wrap, so half the field is where it stops being right)
0.35 app.js:565 eps, how close a ring must pass METHOD (tolerance on a rasterized ring)
10 app.js:565 maxRings, newest rings checked CAP (older rings are not searched)
4000, 1/4 app.js:565 maxSources CAP (past it the oldest well is dropped from the game)
32 app.js:565 ringSources at start CAP (the starting search count)
3, 400, 0.6, 6, 24, ∞ rings.js:19 constructor defaults, all overridden by ensureRings() CAP (not in effect)
2 rings.js:99 rings under radius 2 skipped: "right on a well is the well" METHOD
1e-9 rings.js:79 tangent test METHOD
3 rings.js:126 beats seen before a crystal is announced METHOD (a pattern must repeat)
2 rings.js:126 least depth of a crystal BPT (a vesica, two rings; rings.js:13)
4 rings.js:129 periods before a crystal is forgotten RECORD
1 rings.js:133 crystal alive within one period DISPLAY
4 ms, 8 ms app.js:1928–1929 search time budget CAP (a device-time budget on the wells searched)
1.15, 0.85 app.js:1928–1929 growth and shrink steps METHOD (control-loop gains)
8 app.js:1929 least wells searched CAP
12 app.js:1940 pulses between node pops (inert while NODE_FINDS is false) DISPLAY
3, 1.5 drawGrid() app.js:4142 2D crystal diamond size, 3 + 1.5·depth px DISPLAY
120 setCrystals() scene3d.js:1777 crystal markers drawn in 3D DISPLAY

The radiation leaves from the wells (16 November 2026). The author: "the radiation should certainly come from the wells, not just a random pattern". Before this, the ledger's booked radiation (book Part 3.13, What Feeds the Vacuum) was drawn evenly. Thin cyan crests ran round the whole tube toward the inner equator at the gravitational-wave power booked since the last tick, and a warm glow gathered toward the centre at the Hawking power. The pattern belonged to no well. Now each booking names its well (radiate(kind, amount, w) hands scene.addRadSource(w.r, w.c, g, h)), at the gains the even version had: g = min(0.25, 300·E/M) in life and min(0.3, 600·E/M) in the decay, h = min(0.1, 200·E_H/M_wells). The skin shader draws, for the 16 strongest sources, a stream at the well's own longitude from the well down the tube to the pinch, which on the horn torus is the centre (Non-Resonant Return): the waves as cyan crests moving inward, the glow warm, both brighter nearer home. Each source fades with a half-life of 1.5 s. Where no well radiates, nothing is drawn. Seen with hand-placed sources (harness __pcScene().addRadSource): an amber stream and a cyan one each run from their place into the centre. Not yet seen through a full decay, where most of it happens.

Show Radiation (16 November 2026). The author asked for the radiation on the switches too, on by default. It sits beside Show Gravitational Waves. Off, the skin draws no well streams (the cyan crests of mergers and in-falling matter, the warm glow of an evaporating well) and no first light after the big bang. The sources keep fading underneath, so switching it back on shows what is radiating at that moment, not a backlog. Checked on, off and on again in a live run: 1 source drawn, then 0 with the first light at 0, then 1 again.

Show Cosmic Microwave Background (16 November 2026). The author asked for the first light on the switches under its own name, the cosmic microwave background, on by default. It now has its own switch under Show Radiation, which keeps only the wells' streams. Off, the skin draws no first light at the Physical Nova; everything else stands. The book needed no addition: Part 3.11 already names the microwave background, its release at about 3,000 K, its stretch by about 1,100 to 2.7255 K (Fixsen, 2009), the dark ages, and the torus's axis in the microwave sky. One defect found there while reading it: the paragraph beginning "The glow does not last" stood twice, back to back and identical; the second copy was removed (backup chapter-3-before-glow-dupe-20261116) and the chapter re-signed, 178 badges valid.