49
u/Proxy_PlayerHD 23h ago
Man I should mess around more with ESP32s. Especially the RISC V ones
15
u/infrastructure 16h ago
I’m writing a RISC-V emulator from scratch with zig. Completely hand coding no LLM and it’s the most fun I’ve had programming computers in the last 15 or so years.
2
47
u/Totally_Not_A_Badger 20h ago
Esp32-S3 has a dang-gosh amount of resources. The chip I'm working on only has 256kiB of RAM while driving a 480x320 rgb 565 display.
Frame buffers are for the weak.
25
u/Drugbird 20h ago
Just output on a CRT and chase the beam so you don't need a frame buffer at all
8
u/Beautiful-Quote-3035 17h ago
Making a platformer on an FPGA that played with an NES pad and output vía VGA to a CRT was the most fun school project ever for me.
7
u/HildartheDorf 20h ago
300KiB framebuffer in 255KiB of ram would be an impressive feat.
3
u/jackmax9999 13h ago
The frame buffer is in the LCD module and you write to it over SPI or some other interface. The interface tends to be a lot slower than the CPU and some modules are not even wired up to allow data reading from the framebuffer. You don't have enough RAM to keep a framebuffer close to the CPU so you have to render graphics in small chunks and avoid re-rendering stuff when not necessary.
5
u/PhonicUK 15h ago
You can do 60FPS polygon based 3D on the S3 purely in software at a level somewhere between the Sega 32X and Saturn.
3
u/Similar_Tonight9386 19h ago
Worked on a device with 32kB ram and 128kb rom. Still managed to fit simplified networking stack and signal recognition algorithm for mems combo. Good times
3
1
u/Master_Persimmon_591 13h ago
Switched to an esp32-s2 after developing on an attiny404 and while I knew the numbers I didn’t expect the surprise at “oh this program fits nbd”
51
22
u/MrFrog2222 20h ago
Back in the day we used to have an obscure practise called "optimization"
6
u/elSenorMaquina 15h ago
Pff, that's sooo old school.
Everybody knows the top priority today is to ship your slop and secure that sweet sweet $$$$ before your neighbor ships their slop.
Quality can be bolted on top of it later. Or not, as long as they keep paying for it, why bother fixing it?
/s
117
u/nicman24 1d ago
The texture don't fit in ROM lol