1969912 0 #1 September 4, 2010 Google.com has an animation of a rotating buckyball today. I noticed that when that page is open my CPU usage goes to 100% per task manager. If I hover rhe pointer over it, the rotation stops and my CPU usage goes down to a few %. I sthat because I have a crappy computer or is it due to the type of animation? It's not a .gif. The stuff below might be the code for the animation: google.doodle)google.doodle={};var aa=-1/14,ba=Math.PI/180,d=(1+Math.sqrt(5))/2,e=1/3,k=2/3,l=d/3,n=2*l,o=[[-k,-e-n,-l],[-e,-k-l,-n],[e,-k-l,-n],[k,-e-n,-l],[e,-d,0],[-e,-d,0],[-l,-k,-e-n],[-n,-e,-k-l],[-e-n,-l,-k],[-k-l,-n,-e],[-k,-e-n,l],[-e,-k-l,n],[e,-k-l,n],[k,-e-n,l],[-l,-k,e+n],[-n,-e,k+l],[-e-n,-l,k],[-k-l,-n,e],[-d,0,-e],[-d,0,e],[-k,e+n,-l],[-e,k+l,-n],[e,k+l,-n],[k,e+n,-l],[e,d,0],[-e,d,0],[-l,k,-e-n],[-n,e,-k-l],[-e-n,l,-k],[-k-l,n,-e],[-k,e+n,l],[-e,k+l,n],[e,k+l,n],[k,e+n,l], [-l,k,e+n],[-n,e,k+l],[-e-n,l,k],[-k-l,n,e],[0,-e,-d],[0,e,-d],[l,k,-e-n],[n,e,-k-l],[n,-e,-k-l],[l,-k,-e-n],[k+l,-n,-e],[e+n,-l,-k],[0,-e,d],[0,e,d],[l,k,e+n],[n,e,k+l],[n,-e,k+l],[l,-k,e+n],[k+l,-n,e],[e+n,-l,k],[k+l,n,-e],[e+n,l,-k],[k+l,n,e],[e+n,l,k],[d,0,-e],[d,0,e]],q=[[0,1],[0,5],[0,9],[1,2],[1,6],[2,3],[2,43],[3,4],[3,44],[4,5],[4,13],[5,10],[6,7],[6,38],[7,8],[7,27],[8,9],[8,18],[9,17],[10,11],[10,17],[11,12],[11,14],[12,13],[12,51],[13,52],[14,15],[14,46],[15,16],[15,35],[16,17],[16,19], [18,19],[18,28],[19,36],[20,21],[20,25],[20,29],[21,22],[21,26],[22,23],[22,40],[23,24],[23,54],[24,25],[24,33],[25,30],[26,27],[26,39],[27,28],[28,29],[29,37],[30,31],[30,37],[31,32],[31,34],[32,33],[32,48],[33,56],[34,35],[34,47],[35,36],[36,37],[38,39],[38,43],[39,40],[40,41],[41,42],[41,55],[42,43],[42,45],[44,45],[44,52],[45,58],[46,47],[46,51],[47,48],[48,49],[49,50],[49,57],[50,51],[50,53],[52,53],[53,59],[54,55],[54,56],[55,58],[56,57],[57,59],[58,59]],r,s,t,u,v,z,A,B,da=0,C=0,D=[],E=[],F= [],G=0,H=0,I,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R,S=c,T=c,U=a,V,W,ea,fa,ha=function(){if(S){var b=C-20;if(Math.abs(b)>0.01){H+=-0.5*b;H*=0.6;C+=H;if(C< 0)C=0}else C=20;var f=J-L,g=K-M;if(b=I&&Math.sqrt(J*J+K*K)< 35){N+=f;O+=g}else{if(R){Q=Math.min(20,Math.sqrt(f*f+g*g));P=Math.atan2(g,f)}N+=Math.cos(P)*Q;O+=Math.sin(P)*Q;Q=Math.max(1,Q*0.97)}var h=N*0.4;................................. "Once we got to the point where twenty/something's needed a place on the corner that changed the oil in their cars we were doomed . . ." -NickDG Quote Share this post Link to post Share on other sites
ryoder 1,590 #2 September 4, 2010 Google's fault. A dumb Javascript. This is where it is handy having multiple CPU's. It buries my 2.4GHz single-core x86 box, but only uses 50% of my SPARC 1.2Ghz dual-CPU box."There are only three things of value: younger women, faster airplanes, and bigger crocodiles" - Arthur Jones. Quote Share this post Link to post Share on other sites
1969912 0 #3 September 4, 2010 Thanks. I feel better about my crappy computer. Why didn't they just use an animated gif? "Once we got to the point where twenty/something's needed a place on the corner that changed the oil in their cars we were doomed . . ." -NickDG Quote Share this post Link to post Share on other sites
shropshire 0 #4 September 4, 2010 Cuz they wanted it to be interactive... You can get it to spin really quickly ..... whhiiiiiizzzzzzzz (.)Y(.) Chivalry is not dead; it only sleeps for want of work to do. - Jerome K Jerome Quote Share this post Link to post Share on other sites