rlgb
a cycle-accurate Game Boy (DMG) emulator written from scratch in C. built for performance and accuracy — ~3,200 fps at scanline-level precision. runs Pokémon Red end-to-end and serves as the backend for ML training.
features
- cycle-accurate SM83 CPU — faithful Z80-style core
- scanline-accurate PPU — pixel-perfect rendering
- MBC support — MBC1 / MBC3 / MBC5 cartridges
- ~3,200 fps on modern hardware
- deterministic save-states — reproducible for RL
- python bindings — drops into ML frameworks
stack
core: c, assembly
bindings: python, cffi
use cases: emulation, reinforcement learning