Re:Why FastDoom Is Fast
by ericmcer on Tuesday March 04, 2025 @05:04PM
(#43260286)
Why was the solution to optimize the animation instead of... using a static asset?
[ Parent
| on HN ]
Re:Why FastDoom Is Fast
by moffkalast on Tuesday March 04, 2025 @05:37PM
(#43260550)
We paid for the whole CSS spec and we're gonna use the whole CSS spec.
This, but for everything wevdev-related in the past ten years.
Because it provides an indication that the app is receiving your voice input?
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.
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...
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.
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.
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.
Re:Why FastDoom Is Fast
by teaearlgraycold on Tuesday March 04, 2025 @06:31PM
(#43260867)
That would be more optimized for sure. But it wouldn't be scalable and would take more work to create than what looks like a pretty simple change.