I loaded it in Firefox 3.6.13 (on a 64 bit quad core desktop with 6G RAM running Windows 7 Ultimate) and my CPU usage went from 1% to 25%. Closed it and usage dropped to 1% again. Loaded it in Chrome and there was no appreciable increase in usage. WTF?
I don't know what could cause that but i'm suspecting that hardware acceleration has a lot to do with it. It seems that javascript is one of the things that is fully output with software only. If there was hardware acceleration then it would be blazing fast.
It's like trying to render out a 3d game with software (ie. CPU only). It doesn't matter what computer you use, it's going to get crushed trying to spit out those polygons. But on hardware acceleration it's all offloaded onto the GPU which is specially designed to handle just such things, which is how we enjoy things like that these days.
I was forced to register because of this thread and some comments in it. The Chrome fanboys here are quite ridiculous.
Chrome does not have hardware-accelerated javascript. Hardware-accelerated javascript does not exist. You are mistaking it with WebGL which is present in Safari, Firefox (3 and 4) and Chrome. WebGL has nothing to do with javascript, it is a hardware accelerated <canvas> element (HTML5). Chrome has barely any more hardware acceleration than Microsoft Powerpoint.
Furthermore, the Christmas tree is not rendered with polygons, it is rendered with sprites. It says so right on the front page.
Just to clear up, I didn't mean that the browser renders polys, just an example of cpu vs. gpu usage. And I was only wondering if it were the case. I'm not even using chrome, fyi so i'm by no means a fan boy. Matter of fact I have yet to install and try it.
But anyway, thank you for the further info. I know about open GL but not WebGL. I'm going to check that out.
It is probably impossible to hardware accelerate JS, at least not without severely cutting its usefulness. However, it's not really that bad. All the fast javascript engines use JIT (which attempts to make it run as fast as natively compiled code if you don't know), and JS by its nature as a general purpose scripting language is more suited to a general purpose processor anyway.
21
u/rickmatt Dec 20 '10
I loaded it in Firefox 3.6.13 (on a 64 bit quad core desktop with 6G RAM running Windows 7 Ultimate) and my CPU usage went from 1% to 25%. Closed it and usage dropped to 1% again. Loaded it in Chrome and there was no appreciable increase in usage. WTF?