LearnNewsExamplesServices
Frontmatter
id8670
titleImplement Data Flow & Interaction Visuals
stateClosed
labels
enhancementaiperformance
assigneestobiu
createdAtJan 15, 2026, 3:13 AM
updatedAtJan 15, 2026, 3:36 AM
githubUrlhttps://github.com/neomjs/neo/issues/8670
authortobiu
commentsCount1
parentIssue8661
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 15, 2026, 3:36 AM

Implement Data Flow & Interaction Visuals

Closed v11.22.0 enhancementaiperformance
tobiu
tobiu commented on Jan 15, 2026, 3:13 AM

Objective

Implement the visual layer for data transmission and user interaction within the Neural Swarm.

Tasks

  1. Data Packets: Create "pulses" of light that travel along the connections between nodes.
    • Logic: Randomly spawn on a link, travel from Node A to Node B, then disappear.
  2. Parallax: Implement 3-4 layers of depth. Rear nodes should move slower than front nodes.
  3. Interaction:
    • Hover: Mouse repulsion for Agents (they flee the cursor).
    • Click: Spawn a "Signal Ripple" that propagates through the network.

Technical Details

  • Optimize drawNetwork to handle these overlays without excessive draw calls.
tobiu assigned to @tobiu on Jan 15, 2026, 3:13 AM
tobiu added the enhancement label on Jan 15, 2026, 3:13 AM
tobiu added the ai label on Jan 15, 2026, 3:13 AM
tobiu added the performance label on Jan 15, 2026, 3:13 AM
tobiu added parent issue #8661 on Jan 15, 2026, 3:13 AM
tobiu referenced in commit 70cc440 - "feat: Implement Data Flow & Interaction Visuals for Neural Swarm (#8670)" on Jan 15, 2026, 3:35 AM
tobiu
tobiu Jan 15, 2026, 3:35 AM

Input from Gemini 3 Pro:

✦ I have implemented the Data Flow & Interaction Visuals.

Changes:

  1. Initialization Fix: Updated updateSize to force initNodes and initAgents. This solves the "top-left blob" issue where the simulation initialized with default dimensions before the canvas was sized.
  2. Data Packets:
    • Added packetBuffer (Float32Array).
    • Implemented updatePackets: Randomly spawns "pulses" that travel between connected nodes (Child -> Parent).
    • Implemented drawPackets: Renders traveling packets as glowing white dots with fade-out trails.
  3. Shockwaves:
    • Re-implemented shockwaves array and drawShockwaves.
    • Connected updateMouseState (click) to spawn shockwaves.
    • Connected updatePhysics to make nodes and agents "push away" from shockwaves.
  4. Parallax Refinement:
    • Updated drawNetwork to apply parallax depth to connections and nodes.
    • Added interaction highlight: Nodes now pulse when a shockwave passes through them.

The visual system is now complete: Nodes (Structure), Agents (Intelligence), and Packets (Data) all interacting in a simulated 2.5D space.

tobiu closed this issue on Jan 15, 2026, 3:36 AM