Results 1 to 2 of 2

Thread: CPU resources and Javascript

  1. #1
    Join Date
    Feb 2006

    CPU resources and Javascript

    Hey everyone. I wanted to see how CPU intensive javascript animation can be. So I went to this website http://www.schillmania.com/projects/fireworks/ to test how well my CPU can handle it. It turns out when displaying more than 3 fireworks at the sametime [there's a button you can press on the website and if you click fast enough, you can get 3 fireworks displayed], my CPU Usage jumps from 3% to 100%.

    Though on another computer, its CPU Usage jumped to only 50% and it pretty much stayed there but that's because the OS is capping my browser's CPU resources.

    Is there a way to increase a browser's CPU usage in javascript so I can pump out more javascript animation within the browser using only javascript? Maybe im being a little optimistic.. Sorry if i wrote too much.

  2. #2
    Join Date
    Dec 2003
    Bucharest, ROMANIA
    there is a long story about the memory ussage & leaks. There are a lot of coding small tricks which will help (avoinding eval() method, using local variables instead of global, using carefully the closures.... a.s.o) Google for, and u will find a lot of these... As a general rule, the standard/correct coding will bring less memory leaks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles