Skip to main content
QUICK REVIEW

[논문 리뷰] PyBatchRender: A Python Library for Batched 3D Rendering at Up to One Million FPS

Evgenii Rudakov, Jonathan P. Shock|arXiv (Cornell University)|2026. 01. 03.
Artificial Intelligence in GamesComputer Science인용 수 0
한 줄 요약

PyBatchRender는 Panda3D 위에 구축된 Python 기반의 데이터 지향 배치 3D 렌더러로, 다중 뷰 타일링, 텐서 제어를 갖춘 GPU 인스턴싱, CUDA-OpenGL 상호 운용성 및 TorchRL 통합을 결합하여 단순 씬에서 1 million FPS 이상을 달성합니다.

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.

연구 동기 및 목표

  • 픽셀에서 강화 학습을 위한 고처리량의 Python 접근 가능한 3D 렌더러를 제공합니다.
  • C++ 엔진의 성능과 Python 기반 프레임워크의 사용 편의성 사이의 간극을 좁힙니다.
  • 최소한의 Python 코드로 대규모 시각적 RL 환경의 빠른 프로토타이핑을 가능하게 합니다.
  • 다양한 백엔드 및 TorchRL와 통합될 수 있는 물리학 비의존 렌더링을 제공합니다.

제안 방법

  • 데이터 지향 확장을 통해 Panda3D를 배치 렌더링용으로 확장합니다.
  • 하나의 큰 렌더 타깃에서 S개의 씬을 렌더링하기 위한 다중 뷰 타일링을 구현합니다.
  • 하드웨어 인스턴싱과 맞춤 GLSL 셰이더를 사용하여 S개의 씬에 걸친 I 인스턴스의 텐서 기반 배치 제어를 수행합니다.
  • NVIDIA GPU에서 PCIe 리드백 병목을 피하기 위해 CUDA-OpenGL 상호 운용성을 제공하고, CPU 대체 경로를 포함합니다.
  • Gymnasium 호환 환경 인터페이스를 노출하기 위해 TorchRL과 통합합니다.
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}$

실험 결과

연구 질문

  • RQ1Python 위에 존재하는 게임 엔진 위에서 배치 렌더링을 달성하여 픽셀에서의 RL을 위한 높은 FPS를 달성할 수 있는지?
  • RQ2인스턴스 조작을 Python에서 GPU로 옮기기 위해 어떤 아키텍처 확장이 필요하며, 이것이 서로 다른 GPU에서 처리량에 어떤 영향을 주는지?
  • RQ3PyBatchRender가 해상도와 GPU별로 Isaac Lab, Maniskill, Madrona MJX 등 다른 고처리량 렌더러와 비교하여 어떤 차이를 보이는지?
  • RQ4물리학 비의존적이고 고처리량인 렌더러가 엔드투엔드 RL 파이프라인에서 가지는 실용적 트레이드오프는 무엇인가?

주요 결과

  • 베이스라인 Panda3D 렌더링은 1.1k–3.3k FPS를 달성합니다.
  • 다중 뷰 타일링은 패스를 하나의 큰 렌더 타깃으로 통합하여 GPU 간 5.2×–7.8×의 이득을 제공합니다.
  • CUDA–OpenGL 상호 운용성은 PCIe 리드백 병목을 제거하여 NVIDIA GPU에서 처리량을 약 1.35×–1.65× 증가시킵니다.
  • 하드웨어 인스턴싱과 셰이더 기반 배치 제어는 가장 큰 이득을 제공합니다: M2 ~5×, RTX 4090 ~107×, A100 ~150× 속도향상.
  • 다중 프로세싱은 포화된 GPU에서 한정적 이득을 주지만(예: RTX 4090에서 1.38×), 이미 GPU에 바운드된 하드웨어에서는 덜 이득을 줍니다.
  • PyBatchRender는 RTX 4090에서 Madrona MJX의 각각 1.6백만 FPS와 64×64에서 61k FPS 대비 1.6 million FPS 및 61k FPS를 달성합니다.
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.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.