News for hackers. Stuff that matters.
Re:Show HN: Lofi.cafe by linuz90 on Wednesday April 14, 2021 @09:11AM (#26806574)
Ouch you're totally right. I want to add an option to have static JPGs instead of GIFs. Already added to the backlog.
Re:Show HN: Lofi.cafe by elithrar on Wednesday April 14, 2021 @09:19AM (#26806657)
Video may be cheap, too: h.264 or WebM are relatively low cost on even reasonably modern devices.
Re:Show HN: Lofi.cafe by dlivingston on Wednesday April 14, 2021 @11:03AM (#26808104)
To go in the opposite direction, if you wanted to add an option for people fine with large CPU/GPU expenditure (i.e., if this were playing on a dedicated TV in an actual café), it might be fun to add a WebGL canvas and make lofi/vaporwave-inspired effects [0].

[0]: http://hands.wtf/rad

Re:Show HN: Lofi.cafe by dylan604 on Wednesday April 14, 2021 @11:35AM (#26808541)
Why would you ever target wasting CPU/GPU when better alternatives are available?
Re:Show HN: Lofi.cafe by artful-hacker on Wednesday April 14, 2021 @11:49AM (#26808729)
I actually really like this feature when playing music for a whole room on my OLED TV. People like watching the fancy graphics and I get to dodge a tiny little bit of burn in.
Re:Show HN: Lofi.cafe by dylan604 on Wednesday April 14, 2021 @11:54AM (#26808826)
You missed the part of better alternatives. I didn't mean to turn off the anim, just switch it to a more efficient method of doing it.
Re:Show HN: Lofi.cafe by catlifeonmars on Wednesday April 14, 2021 @09:39PM (#26815272)
What are the better alternatives?
Re:Show HN: Lofi.cafe by codebolt on Thursday April 15, 2021 @08:01AM (#26819352)
I'm guessing pre-rendered animations. Better alternative if you're optimizing for performance, but maybe not if we're optimizing for other metrics.
Re:Show HN: Lofi.cafe by ajkjk on Wednesday April 14, 2021 @04:54PM (#26812932)
It might be cool.
Re:Show HN: Lofi.cafe by dylan604 on Wednesday April 14, 2021 @10:30PM (#26815570)
It might be cool to needlessly spin up a CPU/GPU for no reason other than not being familiar with a more effectient method of doing something? I don't know where you come from, but that's not my definition of cool at all
Re:Show HN: Lofi.cafe by moystard on Wednesday April 14, 2021 @10:18AM (#26807399)
I would go for videos + options to go with static assets. You could pause background video playback when the tab is not active.
Re:Show HN: Lofi.cafe by Siira on Friday April 16, 2021 @01:01PM (#26836408)
My tests show the tab does not consume much when it is not visible.
Re:Show HN: Lofi.cafe by jordache on Wednesday April 14, 2021 @11:35AM (#26808531)
Video cheaper than animated gif?
Re:Show HN: Lofi.cafe by entropicdrifter on Wednesday April 14, 2021 @11:50AM (#26808752)
Yeah, lower bandwidth requirements and most computers/all smartphones have dedicated video decoding hardware, especially for h264.
Re:Show HN: Lofi.cafe by prophesi on Wednesday April 14, 2021 @12:00PM (#26808920)
Hinted at with lower bandwidth requirements, but the biggest win with video is their stellar compression. GIFs store every single color value, which is why they get so huge so quick.
Re:Show HN: Lofi.cafe by adrusi on Wednesday April 14, 2021 @09:48PM (#26815333)
GIFs use run length encoding, which usually makes them quite good for pixelly art, but not when you apply a bunch of vfx.
Re:Show HN: Lofi.cafe by app4soft on Wednesday April 14, 2021 @04:07PM (#26812349)
Yep. For example, here is Fill's GIFs site[0], where comic animation on pages represented as video instead of GIF.[1]

    ...
    <video autoplay="" loop="" muted="">
      <source src="/video/aa3d713c20ba03cc3f87b36e9a947857.mp4" type="video/mp4">
    </video>
    ...

[0] https://fill.com.ua/

[1] https://fill.com.ua/gif/zagostrennya