Skip to main content
QUICK REVIEW

[Paper Review] PyBatchRender: A Python Library for Batched 3D Rendering at Up to One Million FPS

Evgenii Rudakov, Jonathan P. Shock|arXiv (Cornell University)|Jan 3, 2026
Artificial Intelligence in GamesComputer Science0 citations
TL;DR

PyBatchRender is a Python-based, data-oriented batched 3D renderer built on Panda3D that achieves over 1 million FPS on simple scenes by combining multi-view tiling, GPU instancing with tensor control, CUDA-OpenGL interoperability, and TorchRL integration.

ABSTRACT

Reinforcement learning from pixels is often bottlenecked by the performance and complexity of 3D rendered environments. Researchers face a trade-off between high-speed, low-level engines and slower, more accessible Python frameworks. To address this, we introduce PyBatchRender, a Python library for high-throughput, batched 3D rendering that achieves over 1 million FPS on simple scenes. Built on the Panda3D game engine, it utilizes its mature ecosystem while enhancing performance through optimized batched rendering for up to 1000X speedups. Designed as a physics-agnostic renderer for reinforcement learning from pixels, PyBatchRender offers greater flexibility than dedicated libraries, simpler setup than typical game-engine wrappers, and speeds rivaling state-of-the-art C++ engines like Madrona. Users can create custom scenes entirely in Python with tens of lines of code, enabling rapid prototyping for scalable AI training. Open-source and easy to integrate, it serves to democratize high-performance 3D simulation for researchers and developers. The library is available at https://github.com/dolphin-in-a-coma/PyBatchRender.

Motivation & Objective

  • Provide a high-throughput, Python-accessible 3D renderer for reinforcement learning from pixels.
  • Bridge the gap between performance of C++ engines and ease of use of Python-based frameworks.
  • Enable rapid prototyping of large-scale visual RL environments with minimal Python code.
  • Offer physics-agnostic rendering that can integrate with various backends and TorchRL.

Proposed method

  • Extend Panda3D with data-oriented extensions for batched rendering.
  • Implement multi-view tiling to render S scenes in a single large render target.
  • Use hardware instancing and a custom GLSL shader to perform tensor-based batched control of I instances across S scenes.
  • Provide CUDA-OpenGL interoperability to avoid PCIe readback bottlenecks on NVIDIA GPUs, with a CPU fallback path.
  • Integrate with TorchRL to expose a Gymnasium-compatible environment interface.
Figure 1: Batched rendering pipeline for a single geometry across multiple scenes. Users specify per-instance translations for $I$ instances of a shared mesh across $S$ scenes (dashed box separates user control from internal operations). The system constructs per-instance model matrices $M_{i}^{s}$
Figure 1: Batched rendering pipeline for a single geometry across multiple scenes. Users specify per-instance translations for $I$ instances of a shared mesh across $S$ scenes (dashed box separates user control from internal operations). The system constructs per-instance model matrices $M_{i}^{s}$

Experimental results

Research questions

  • RQ1How can batched rendering be achieved in Python on top of an existing game engine to reach high FPS for RL from pixels?
  • RQ2What architectural extensions are needed to move instance manipulation from Python to GPU, and how does that affect throughput across different GPUs?
  • RQ3How does PyBatchRender compare to other high-throughput renderers (Isaac Lab, Maniskill, Madrona MJX) across resolutions and GPUs?
  • RQ4What are the practical trade-offs of a physics-agnostic, high-throughput renderer in end-to-end RL pipelines?

Key findings

  • Baseline Panda3D rendering achieves 1.1k–3.3k FPS.
  • Multi-view tiling yields 5.2×–7.8× gains across GPUs by consolidating passes.
  • CUDA–OpenGL interoperability eliminates PCIe readback bottlenecks, increasing throughput by ~1.35×–1.65× on NVIDIA GPUs.
  • Hardware instancing with shader-based batched control provides the largest gains: M2 ~5×, RTX 4090 ~107×, A100 ~150× speedups.
  • Multi-processing offers marginal wins on saturated GPUs (e.g., 1.38× on RTX 4090) while benefiting less on already GPU-bound hardware.
  • PyBatchRender achieves 1.6 million FPS at 64×64 and 61k FPS at 512×512 on RTX 4090 against Madrona MJX’s 403k FPS and 19k FPS respectively.
Figure 2: Cumulative performance gains for rendering throughput for 64x64 resolution in the CartPoleBalance environment. Each component is added cumulatively to the baseline, demonstrating its contribution to the final performance on Apple M2, Nvidia RTX 4090, and Nvidia A100 GPUs.
Figure 2: Cumulative performance gains for rendering throughput for 64x64 resolution in the CartPoleBalance environment. Each component is added cumulatively to the baseline, demonstrating its contribution to the final performance on Apple M2, Nvidia RTX 4090, and Nvidia A100 GPUs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.