News for hackers. Stuff that matters.
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.