Faster physics in Python

OpenAI Blog Tools

Summary

OpenAI open-sources mujoco-py, a high-performance Python library for robotic simulation using the MuJoCo engine, featuring ~40x speedup with headless GPU rendering and VR interaction support.

We’re open-sourcing a high-performance Python library for robotic simulation using the MuJoCo engine, developed over our past year of robotics research.
Original Article
View Cached Full Text

Cached at: 04/20/26, 02:45 PM

# Faster physics in Python Source: [https://openai.com/index/faster-physics-in-python/](https://openai.com/index/faster-physics-in-python/) OpenAIWe’re open\-sourcing a high\-performance Python library for robotic simulation using the MuJoCo engine, developed over our past year of robotics research\. ![Loopdiscogif2](https://images.ctfassets.net/kftzwdyauwt9/42a4f547-89ce-4240-5a7d9a0d067f/61b00638721d7274ab70cc1d16af617c/loopdiscogif2.gif?w=3840&q=90&fm=webp) We use the[domain randomization⁠\(opens in a new window\)](https://arxiv.org/abs/1703.06907)technique across many projects at OpenAI\. The latest version of mujoco\-py supports headless GPU rendering; this yields a speedup of ~40x compared to CPU\-based rendering, letting us generate hundreds of frames per second of synthetic image data\. In the above \(slowed down\) animation we use this to vary the textures of one of our robots, which helps it identify its body when we transfer it from the simulator to reality\. Check out[examples/disco\_fetch\.py⁠\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/examples/disco_fetch.py)for an example of randomized texture generation\. The API exposed by mujoco\-py is sufficient to enable Virtual Reality interaction without any extra C\+\+ code\. We ported MuJoCo’s[C\+\+ VR example⁠\(opens in a new window\)](https://www.mujoco.org/book/programming.html#saVive)to Python using mujoco\-py\. If you have an HTC Vive VR setup, you can give try it using[this example⁠\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/examples/mjvive.py)\(this support is considered experimental, but we’ve been using it internally for a while\)\. The simplest way to get started with mujoco\-py is with the[MjSim class⁠\(opens in a new window\)](https://github.com/openai/mujoco-py/blob/master/mujoco_py/mjsim.pyx)\. It is a wrapper around the simulation model and data, and lets you to easily step the simulation and render images from camera sensors\. Here’s a simple example:

Similar Articles

MuJoCo – Advanced Physics Simulation

Hacker News Top

Google DeepMind maintains MuJoCo, a high-performance open-source physics engine with C/Python APIs and Unity plugin for robotics and ML research.

Just open-sourced FastVLA

Reddit r/LocalLLaMA

FastVLA, an open-source Vision-Language-Action model, now runs 5 Hz robotics on an L4 GPU.

Mojo 1.0 Beta

Hacker News Top

Modular announces the Mojo 1.0 Beta, a high-performance programming language that combines Python's ease of use with the speed of compiled languages for AI and systems programming.