Repository navigation
Visualization System Animation System
The Animation System in TokenPrint refers strictly to the temporal pacing of the visualization. It governs how the playback ticker advances through the operation trace.
The core promise of TokenPrint is "Real data only." If the animation system artificially interpolates or guesses intermediate states to make a transition look smoother, it breaks that promise.
TokenPrint uses a single, headless PlaybackEngine component.
The ticker runs on a setInterval or requestAnimationFrame loop. However, it never fabricates frames.
- It looks at the
op_catalog(e.g., 243 operations). - Based on the user's Speed Multiplier, it waits
$X$ milliseconds. - It then instantly updates the
store.activeOpto the next index. - The Geometry and Materials react instantly to the new
activeOp.
To keep the 3D scene from feeling sterile when paused, TokenPrint applies a very slight, slow sine-wave rotation to certain elements. This is strictly visual polish and is carefully designed to be unmistakable from actual computational updates.
sequenceDiagram
participant Ticker as PlaybackEngine
participant Store as Zustand
participant Scene as 3D Scene
Note over Ticker, Scene: Pacing is normalized by Speed Multiplier
Ticker->>Store: setActiveOp(54)
Store->>Scene: Highlights Op 54
Ticker->>Ticker: Wait (base_delay / speed_mult)
Ticker->>Store: setActiveOp(55)
Store->>Scene: Highlights Op 55
| Previous | Home | Next |
|---|---|---|
| Materials | Home | Color Mapping |
TokenPrint Wiki | Home | Getting Started | User Guide | Concepts | Architecture | API | GitHub
TokenPrint is an interactive 3D visualization platform for exploring transformer architectures, tensors, and real-time LLM inference.
- User Guide
- Architecture Explorer
- Live Inference
- Tensor Inspector
- Camera Controls
- HUD
- Timeline
- Scene Navigation
- Transformer Concepts
- Tokenization
- Embeddings
- Positional Encoding
- RoPE
- Multi-Head Attention
- KV Cache
- LayerNorm
- Feed Forward Network
- Residual Connections
- Logits
- Softmax
- Sampling
- Autoregressive Generation
- Visualization System
- Scene Graph
- Geometry
- Materials
- Animation System
- Color Mapping
- Camera System
- Interaction Model
- Architecture
- Overall Architecture
- Frontend
- Backend
- WebSocket Protocol
- Data Pipeline
- Renderer
- Event System