Re:Our solar system - A Webkit Animation using CSS3
by sirn on Friday May 21, 2010 @10:04AM
(#1367335)
Oddly, it use 100% of one of my i7 iMac core when running on Chrome (6.0.408.1). However, the animation play very smooth with only 1~2% CPU usage when running on Safari (4.0.5 6531.22.7).
So I assume you're using Chrome?
Edit: -webkit-animation in general seems to be very slow in Chrome.
Re:Our solar system - A Webkit Animation using CSS3
by jws on Friday May 21, 2010 @09:41AM
(#1367260)
Odd. Desktop iMac, older Core 2 version, it only takes me from my background 2% cpu use to 7% cpu use. Perhaps it is making heavy use of the GPU, which I wouldn't see in the cpu usage stats. (I add: using Safari.)
Re:Our solar system - A Webkit Animation using CSS3
by cpr on Friday May 21, 2010 @10:21AM
(#1367381)
It looks like only Apple has hooked up WebKit animation to an underlying Core Animation-equivalent layer in the OS which uses the GPU for most of the hard work.
Not sure if Google is really motivated to do this kind of system-specific work in Chrome beyond the basic port.
Re:Our solar system - A Webkit Animation using CSS3
by swannodette on Friday May 21, 2010 @10:25AM
(#1367395)
I would argue that they should be. CSS is well understood by designers/programmers and doing animations all in JS is error prone and off course a CPU hog. Hardware acceleration is particularly important when you're talking about devices with underpowered CPUs (Android). On my iPad/iPhone CSS animations outperform JS animations by a ridiculous margin.
Re:Our solar system - A Webkit Animation using CSS3
by cpr on Friday May 21, 2010 @11:31AM
(#1367634)
Just to clarify, they do have the CSS-based animations, since they're WebKit-based, but they're just not hooked up to an underlying hardware-based implementation.
Re:Our solar system - A Webkit Animation using CSS3
by BoppreH on Friday May 21, 2010 @03:40PM
(#1368505)
I wasn't referring to the implementations, but this new wave of CSS3/HTML5 demos doing nothing that could solve a real-world problem.
Sure, I'd like all browsers to have a correct implementation of this technologies, I'm just questioning this type of demo. In the end they are just a fancy ACID-like test and frankly, we already have more than enough for this use.
Re:Our solar system - A Webkit Animation using CSS3
by alabut on Friday May 21, 2010 @12:28PM
(#1367821)
This is a great demonstration of why to use CSS3 animations - Flash doesn't support the concept of graceful degradation. This page turns into a static image in Firefox/Mac instead of borking out with a blue lego piece.
Re:Our solar system - A Webkit Animation using CSS3
by Mgreen on Friday May 21, 2010 @01:00PM
(#1367947)
I really appreciate the effort that has gone into building the demo. But i disagree with you.It is extremely easy for developers to provide fallback content when Flash is not availble.
As a developer, here is why i(personally) wont choose CSS3 animations for building similar content anytime in the near future:
-Works only on webkit browsers
-Performance is really bad on Chrome. Compared to most of the heavy weight flash content out there, this is just a very basic animation.
Re:Our solar system - A Webkit Animation using CSS3
by alabut on Friday May 21, 2010 @03:06PM
(#1368402)
"It is extremely easy for developers to provide fallback content when Flash is not availble."
Really? How? I was an actionscripter for years before I dropped Flash from my arsenal and worked at a game company that would've loved to provide their games on systems without Flash.
Re:Our solar system - A Webkit Animation using CSS3
by Batsu on Friday May 21, 2010 @09:13AM
(#1367208)
I'm not sure I would call it smooth in Chrome on Windows 7, and this is on a gaming PC (more or less). The process was also using 25% CPU, which I believe Process Explorer would report as one full core.
http://ssd.jpl.nasa.gov/?orbits
e.g.,
http://ssd.jpl.nasa.gov/?ss_inner
http://ssd.jpl.nasa.gov/?ss_distant
So I assume you're using Chrome?
Edit: -webkit-animation in general seems to be very slow in Chrome.
Edit again: Oh right, -webkit-animation is hardware-accelerated in Safari. http://webkit.org/blog/324/css-animation-2/#comment-25071
However Google Chrome does not look like it hardware accelerates CSS animations so it's eating up 90% CPU on this.
Not sure if Google is really motivated to do this kind of system-specific work in Chrome beyond the basic port.
Seriously, what is the point of this demos? It's like that Star Wars movie in ASCII. Interesting, but not very useful.
Sure, I'd like all browsers to have a correct implementation of this technologies, I'm just questioning this type of demo. In the end they are just a fancy ACID-like test and frankly, we already have more than enough for this use.
As a developer, here is why i(personally) wont choose CSS3 animations for building similar content anytime in the near future:
-Works only on webkit browsers
-Performance is really bad on Chrome. Compared to most of the heavy weight flash content out there, this is just a very basic animation.
Really? How? I was an actionscripter for years before I dropped Flash from my arsenal and worked at a game company that would've loved to provide their games on systems without Flash.
It plays nicely on iPhone 2G but scrolling and zooming make it hang for a while, I even made the animation stop somehow.
I'm not sure this is the way to go...
Cool experiment.
http://www.css3.info/preview/rounded-border/