How ximiyad123/fbdoom works
FBDOOM launches Chocolate Doom with a physical display address and dimensions, then adapts its software-rendered game frames for direct display-memory output. Its platform backend also polls Linux input devices and posts Doom key events. The README documents the framebuffer-to-fbprinter-to-/dev/mem display path; the fbprinter implementation and Chocolate Doom submodule internals were not sampled, so those components are represented at directory level and their internal behavior is not expanded.
Main entry points: i_video_fbdoom.c Video Interface Adapter · i_input_fbdoom.c Input Device Backend · chocolate-doom Chocolate Doom Engine · main.c Argument and Config Launcher
Components 13
Launch and Configuration
- Argument and Config Launcher
src/main.c
Doom Engine
- Chocolate Doom Engine
src/chocolate-doom - Doom Software Renderer
src/chocolate-doom
FBDOOM Platform
- Video Interface Adapter
src/fbdoom/i_video_fbdoom.c - Frame Conversion and Scaling
src/fbdoom/i_video_fbdoom.c - Input Device Backend
src/fbdoom/i_input_fbdoom.c - Platform Stubs
src/fbdoom/i_platform_fbdoom.c
Direct Display
- Framebuffer Output API
include/fbprinter.h - fbprinter Library
src/fbprinter - Display Memory
- Physical Display
Other components
- Player
- Linux Input Devices
Connections 12
- Player → Argument and Config Launcher: runs with options
README.md - Argument and Config Launcher → Chocolate Doom Engine: starts engine
src/main.c - Chocolate Doom Engine → Video Interface Adapter: uses video backend
- Doom Software Renderer → Video Interface Adapter: presents frames
README.md - Video Interface Adapter → Frame Conversion and Scaling: converts and scales
src/fbdoom/i_video_fbdoom.c - Video Interface Adapter → Input Device Backend: polls input
src/fbdoom/i_video_fbdoom.c - Input Device Backend → Linux Input Devices: reads events
src/fbdoom/i_input_fbdoom.c - Input Device Backend → Chocolate Doom Engine: posts key events
src/fbdoom/i_input_fbdoom.c - Frame Conversion and Scaling → Framebuffer Output API: draws buffer
src/fbdoom/i_video_fbdoom.c - Framebuffer Output API → fbprinter Library: implemented by
- fbprinter Library → Display Memory: writes via /dev/mem
README.md - Display Memory → Physical Display: drives display
README.md