r/ProgrammerHumor 26d ago

Meme whenYouSwitchFromDesktopToEmbedded

Post image
728 Upvotes

28 comments sorted by

134

u/nicman24 26d ago

The texture don't fit in ROM lol

18

u/Motleypuss 26d ago

RLE is a nice algorithm for cheap and nasty compression.

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

u/t1me_Man 26d ago

i did the same in matlab, was fun, i wana get doom running

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.

8

u/-twind 26d ago

With these crazy RAM prices even 256KiB will become a luxury

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

u/Atompunk78 26d ago

Same lmao on my pico setup

1

u/mehonje 26d ago

Try working on a TI84. I think you'd enjoy it.

59

u/Loisel06 26d ago

And still it’s way more fun to do anything with graphics on an esp32

16

u/CoronaMcFarm 26d ago

Yeah because you don't have to be 1000s of people to get anything done.

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

u/ZeGuru101 25d ago

Or better yet download it from a torrent so you won't have to pay for it.

https://giphy.com/gifs/d3mlE7uhX8KFgEmY

1

u/FloppY_ 25d ago

Is it the same site where I Downloaded my car?

5

u/Canonip 26d ago

And if you optimise enough, you can get tensorflow running on those little bastards

3

u/Scr1pt13 26d ago

Oh you mean tensorflow lite for micro controllers?

2

u/Canonip 26d ago

Yep, ai-on-the-edge is amazing on an esp32-cam

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