this post was submitted on 25 Dec 2025
158 points (86.6% liked)

Programming

24072 readers
324 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] clay_pidgin@sh.itjust.works 20 points 2 days ago (7 children)

I don't understand why they bother with the "modern" method if the fallback works so well and is much simpler and cheaper.

[–] randomblock1@lemmy.world 1 points 1 day ago* (last edited 21 hours ago) (1 children)

The modern method is more efficient if your network is reliable.

Modern: I-frame (screenshot) then a bunch of P-frames (send only what changed). If a frame gets lost, the following frames aren't really usable, frozen until next I-frame Old: Send only full screenshots. Each frame has all the data, so losing one doesn't matter.

[–] clay_pidgin@sh.itjust.works 1 points 1 day ago (1 children)

I'm sorry, it seems to me that your first statement and supporting paragraph are taking the opposite position.

[–] randomblock1@lemmy.world 2 points 21 hours ago (1 children)

Oops. I meant the modern method is better if network is reliable. Not unreliable

[–] clay_pidgin@sh.itjust.works 1 points 21 hours ago

Gotcha. That probably is true.

[–] x00z@lemmy.world 5 points 1 day ago

It's what the LLM suggested.

[–] deegeese@sopuli.xyz 17 points 2 days ago (1 children)

JPEG method tops out at 5-10fps.

Modern method is better if network can keep up.

[–] thenextguy@lemmy.world 11 points 2 days ago* (last edited 2 days ago)

Don't need high fps to watch an ai type.

[–] zqwzzle@lemmy.ca 11 points 2 days ago

Have you ever told an engineer not to build something overdesigned and fun to do?

[–] eco_game@discuss.tchncs.de 9 points 2 days ago (1 children)

From what I read, the modern solution has smooth 60 fps, compared to 2-10 FPS with the JPEG method. Granted, that probably also factors in low network speeds, but I'd imagine you may hit a framerate cap lower than 60 when just spamming JPEGs.

[–] MadhuGururajan@programming.dev 5 points 2 days ago (1 children)

you don't need 60 fps to read text? All you need is to stream the text directly?

[–] Aatube@thriv.social 2 points 2 days ago

it seems like they sometimes need to stream the finished app coded, too

(still no need for 60 fps...)

[–] Blaster_M@lemmy.world 6 points 2 days ago

When the unga bunga solution works better than the modern one

They didn't explicitly say but it sounds like the JPEG solution can't put out a substantial FPS. If you start to do fancier stuff like sending partial screenshots or deltas only then you get the same issues as H264 (you miss a keyframe and things start to degrade). Also if you try and put out 30 JPEGs per second you could start to get TCP queuing (i.e. can't see screenshot 31 until screenshot 30 is complete). UDP might have made this into a full replacement but as they said sometimes it's blocked.