/    Sign up×
Community /Pin to ProfileBookmark

CPU resources and Javascript

Hey everyone. I wanted to see how CPU intensive javascript animation can be. So I went to this website [url]http://www.schillmania.com/projects/fireworks/[/url] 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.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorOct 18.2006 — 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.
×

Success!

Help @burnt1ce85 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...