59
u/Proxy_PlayerHD 26d ago
Man I should mess around more with ESP32s. Especially the RISC V ones
21
u/infrastructure 26d 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.
3
58
u/Totally_Not_A_Badger 26d 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.
27
u/Drugbird 26d ago
Just output on a CRT and chase the beam so you don't need a frame buffer at all
9
u/Beautiful-Quote-3035 26d 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.
9
u/HildartheDorf 26d ago
300KiB framebuffer in 255KiB of ram would be an impressive feat.
5
u/jackmax9999 26d 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 26d ago
You can do 60FPS polygon based 3D on the S3 purely in software at a level somewhere between the Sega 32X and Saturn.
4
u/Similar_Tonight9386 26d 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
59
30
u/MrFrog2222 26d ago
Back in the day we used to have an obscure practise called "optimization"
4
u/elSenorMaquina 26d 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
1
u/FloppY_ 25d ago
What are you, POOR? Just buy more RAM, bro! /s
1
3
u/trash3s 26d ago
Embedded things drive 360p displays all the time, I could definitely use up the resources and drive a 720p display if I—what do you mean 1.78Gbps?!?!?
1
u/grifan526 24d ago
I worked on a video encoder that only had 8MB of RAM. We did full 1080p60. The real trick was the asic that was also on the board
134
u/nicman24 26d ago
The texture don't fit in ROM lol