Download

pip install real-time-manim
Download
Python
C
Vulkan

The stack

Python in.
Vulkan out.

Real-Time-Manim is not a Manim fork. It keeps the scene you already write and replaces the road from that scene to the screen.

Python stays the authoring layer. Mobjects, animations, updaters, rate functions — the same ManimCE API, the same files. You don't learn a second way to describe a scene.

C is the bridge. The frame crosses one thin native boundary, where each mobject becomes vertices once; the hot path stays compiled and the render loop never re-interprets the scene.

Vulkan is the renderer. Every shape gets its own pipeline, the GPU is addressed directly, and the swapchain presents a frame the moment it exists. Cairo and OpenGL are no longer on the path.

Three layers, one contract: the Manim data model.

Export

The window
is the file.

A window pops out instantly. The same window is the file — it records the frame you already see.

No headless pass at the end: RTM reads the Vulkan framebuffer and hands it to ffmpeg while the scene runs, so the picture on screen and the frames in the mp4 are the same pixels.

Hide the window and the readback runs faster than real time; show it and the capture is live. Either way a 60 fps mp4 lands when the scene ends.

One scene. Every output.

  1. 01 fast_record_scene()Offline and fastest: framebuffer to ffmpeg, hidden by default.
  2. 02 record_scene()Real-time capture of the window the user is watching.
  3. 03 start_record() / stop_record()Wrap one section by hand inside construct().
  4. 04 enable_fast_record()The fast path without a visible window.
  5. 05 Timeline.render_mp4()Walk the schedule and encode it frame by frame.
  6. 06 FrameServer.export_frames()Any list of times becomes a folder of PNGs.
  7. 07 FrameServer.save_frame()One frame, synchronously, at any t.
  8. 08 FramePreviewScrub, play or save a still without rendering a video.
  9. 09 export_srt()The subtitle track beside the recording.

Architecture

The wiki,
in one graph.

Every note in the Real-Time-Manim wiki, linked as it is written. Drag the map, search a title, or open a note in the reader.

Click the map, then scroll to zoom. Hover or tap a dot for its connections; right-click a node for the local graph.

Reading wiki graph...

The test suite

351 sample clips from the test suite — a lot of tests, one frame each. Cameras, mobjects, animations, text, graphs, 3D and utilities, all working.

351 tests · one frame each · open full size