Repository navigation
Home
Tagin T edited this page Dec 1, 2026
·
6 revisions
English | 中文
RTM (real-time-manim) is a Vulkan-accelerated real-time rendering backend for ManimCE, not a Manim fork. It keeps ManimCE's Mobject / Animation data model and replaces only the layer that puts a scene on screen.
The main path:
construct()
│ win.play(...) / self.add(...)
▼
Timeline (global, seekable)
│ evaluate(t)
▼
MLWindow.sync(scene)
│ camera / background / paint order / mesh
▼
native command list (AddRect / AddPolygon / AddImageQuad / AddMesh...)
│ Render_DrawScene → vertex buffers
▼
Vulkan render pass
│ mesh → painter → images → post
▼
swapchain → present / readback → ffmpeg / PNG
| Chapter | What it covers |
|---|---|
| 01 Overview & Architecture | RTM vs. ManimCE, components, execution modes, code map |
| 02 Runtime Model |
Scene lifecycle, MLWindow, play(), scheduling mode |
| 03 Timeline & Frame Addressing |
Timeline, begin/evaluate/finalize, O(1) access to any frame |
| 04 Paint Queue & Ordering | CE paint order, z_index, 3D depth, static layer, command list |
| 05 The Native Vulkan Layer | swapchain, MSAA, native pipelines, depth, post, readback |
| 06 Recording & Parallelism | fast record, FrameServer, ffmpeg pipe, jobs=N, prepare()
|
| 07 Meshes & 3D |
MeshBatch, MeshMobject, indexed meshes, lighting, painter depth |
| 08 Caching, Performance & Limits | cache layers, performance model, hard constraints, diagnostics |
| 09 Performance by Scene Type | measured RTM-vs-CE speedups per workload, before/after, method |
| 10 The llms.txt Strategy | the one file written for a model: structure, rules, maintenance, and why it is not a second manual |
-
The data model is ManimCE: RTM calls
setup()/construct()/tear_down()and never drivesScene.render(). -
Output is fixed at 1920×1080@60, with one
MLWindowper process. -
Scenes are addressable:
FrameServerrunsconstruct()once, thenrender_frame(t)is O(1). -
Recording shares the render path:
fast_record_scenesimply feeds readback pixels to ffmpeg. - The source is the documentation: each chapter ends with the files that matter; when in doubt, read the code.
Install:
pip install -U real-time-manim. On macOS alsobrew install molten-vk; recording needsffmpeg.