# Neon Bioma Esp32p4

NEON (neon racing game, 24 fps 1080p) and BIOMA (200,000-agent living wallpaper) running on a US$15 ESP32-P4 with no GPU. Measured optimizations: PSRAM tiles + DMA, PPA…

给 Wireless-Tag WT9932P4-TINY（ESP32-P4，芯片 v1.0）写的两个 1080p 固件，都不带 GPU，只用一根 USB-C 连电脑，板子在 PC 上同时是一个 UVC 摄像头和一块提供控制页面的网卡。

- id: franciscoaldun-neon-bioma-esp32p4
- author: franciscoaldun
- repository: https://github.com/franciscoaldun/neon-bioma-esp32p4
- license: MIT
- shape: square
- scenes: games, ai
- boards: ESP32-P4
- browser_playable: no
- preview: Project screenshots
- html: https://esp32gallery.com/projects/franciscoaldun-neon-bioma-esp32p4/
- html_zh: https://esp32gallery.com/zh/projects/franciscoaldun-neon-bioma-esp32p4/
- json: https://esp32gallery.com/data/catalog/projects/franciscoaldun-neon-bioma-esp32p4.json

## Hardware

Supported hardware: ESP32-P4. Confirm the exact board revision and pin map in the upstream repository.

支持硬件：ESP32-P4。烧录前请在上游仓库核对板卡版本与引脚定义。

## English

```
Two 1080p firmwares for a Wireless-Tag WT9932P4-TINY ESP32-P4, both run with no GPU and a single USB-C cable to the PC, where the chip appears as a UVC webcam and as a network card serving a control page. NEÓN is a neon racing game rendered entirely on-chip, measured at 24 fps: core 1 draws a 960×540 frame per pixel in C, the PPA scales it ×2, the JPEG encoder feeds the webcam, and core 0 handles physics and the controls WebSocket. BIOMA is a wallpaper of 200,000 Physarum agents that evolves by itself, judging frames by how large their JPEG comes out, at 13–14 fps. The write-up spends most of its space on measurements: never write frames into PSRAM from the CPU, replace per-pixel math with tables, and seed a xorshift instead of calling esp_random.
```

## 中文

```
给 Wireless-Tag WT9932P4-TINY（ESP32-P4，芯片 v1.0）写的两个 1080p 固件，都不带 GPU，只用一根 USB-C 连电脑，板子在 PC 上同时是一个 UVC 摄像头和一块提供控制页面的网卡。NEÓN 是完全跑在芯片上的霓虹赛车游戏，实测 24 fps：1 号核用 C 逐像素画 960×540，PPA 把画面放大两倍，JPEG 编码器喂摄像头，0 号核管物理、圈数和手柄 WebSocket。BIOMA 是 20 万个 Physarum 黏菌智能体的动态壁纸，用一帧 JPEG 压出来多大来判断这帧够不够有意思，自行演化，13–14 fps。正文大半在讲实测教训：别用 CPU 往 PSRAM 写帧、逐像素的三角函数换成查表、随机数用一次 xorshift 播种而不是反复调 esp_random。
```
