News for hackers. Stuff that matters.
Re:Why FastDoom Is Fast by teaearlgraycold on Tuesday March 04, 2025 @06:32PM (#43260872)
I think they're suggesting an animated PNG or GIF.
Re:Why FastDoom Is Fast by Joe_Cool on Tuesday March 04, 2025 @07:14PM (#43261130)
That's something I'd use a canvas or even a SVG for. SVG FFT Analyzer sound like a fun project.

Oh, looks like I'm way late: https://cprimozic.net/blog/building-a-signal-analyzer-with-m...

Re:Why FastDoom Is Fast by jonas21 on Tuesday March 04, 2025 @07:50PM (#43261368)
How would an animated PNG or GIF respond when the user is speaking?
Re:Why FastDoom Is Fast by teaearlgraycold on Tuesday March 04, 2025 @07:59PM (#43261413)
Switch between different PNGs depending on voice activity.
Re:Why FastDoom Is Fast by lightedman on Tuesday March 04, 2025 @11:50PM (#43262967)
that's how veadotube works for vtubers.
Re:Why FastDoom Is Fast by talldatethrow on Tuesday March 04, 2025 @08:40PM (#43261647)
I assume there's a way to pause a gif.
Re:Why FastDoom Is Fast by kccqzy on Tuesday March 04, 2025 @06:55PM (#43261041)
Or even better an animated SVG. Put it inside an <img> tag with a known width and height.
Re:Why FastDoom Is Fast by LegionMammal978 on Tuesday March 04, 2025 @11:01PM (#43262596)
I'd be very surprised if SVG animations don't use substantially the same rendering paths that CSS animations do. In fact, if anything, I'd expect CSS animations to receive more time and attention from browser devs than the old SMIL elements and attributes, to whatever extent that they aren't equivalent internally.
Re:Why FastDoom Is Fast by teaearlgraycold on Wednesday March 05, 2025 @12:24AM (#43263172)
SVGs are usually animated with CSS.
Re:Why FastDoom Is Fast by kccqzy on Wednesday March 05, 2025 @09:35AM (#43266961)
Yeah but the crux of the problem is when height is animated the browser needs to redo the layout. Here the animation is contained entirely within an <img> tag with known width and height.