Post subject: CPU-eating Mario on front page
Joined: 12/3/2008
Posts: 15
Location: Dublin
Hi guys, I've been downloading and watching TAS videos for a couple of years here and very much enjoying it (and tried out a couple of short Super Mario Allstars runs, but I'm too lazy to get more than a few minutes entirely suboptimally and without the clever, scientific measurements you guys do). I had left a tab in Opera open on the front page for the last year or so which I'd refresh to check for updates... in the last few days I noticed that Opera's CPU usage was up at 50-90% most of the time, which is bad. After a lot of trial and error, closing some of my many tabs, I opened the tasvideos new videos page in Firefox and saw its CPU usage shoot up as soon as the animated mini-Mario appeared. Is there any way to turn this off, since it means I have to close the tab and remember (!!!) to open a new one and check every now and then, since the convenience isn't worth my laptop melting.
Joined: 10/15/2007
Posts: 685
Grab the Adblock add-on, if you haven't already, and simply tell it to block that specific element. Make sure it's configured to remove the element, not just hide it.
Kirby said so, so it must be true. ( >'.')>
Joined: 12/3/2008
Posts: 15
Location: Dublin
superjupi wrote:
Grab the Adblock add-on, if you haven't already, and simply tell it to block that specific element. Make sure it's configured to remove the element, not just hide it.
Heya, Opera has a built-in content blocker, if this is what you mean... it just works on a url pattern match. 'spose I could manually block the path to the guilty .js... or try some user-javascript to work around it. Thanks :)
Editor, Player (68)
Joined: 1/18/2008
Posts: 663
Should we really need that, though? I mean, I already browse and block content, but I haven't had to here... yet. Why now? Why no option to turn it off (it'd be mere lines of code and a couple links to do it with a cookie)? Or better, why not just get rid of it?
true on twitch - lsnes windows builds 20230425 - the date this site is buried
Sir_VG
He/Him
Player (39)
Joined: 10/9/2004
Posts: 1911
Location: Floating Tower
Because Opera sucks? Also, better not go to the submissions forum, because the polls have Mario in there too.
Taking over the world, one game at a time. Currently TASing: Nothing
Joined: 6/9/2006
Posts: 614
Location: Mettmann
i love the little mario its so nice... cant understand how this eats CPU :( get IE or Firefox :D
Former player
Joined: 9/1/2005
Posts: 803
I absolutely must make the distinction that it's Luigi running about on the front page, not Mario. Also, this problem is seemingly limited to opera out of the browsers that I use. it goes up to 25% (a single core) when Luigi is running about or doing something, but doesn't really do anything at all out of the ordinary when using say, firefox. Personal opinion: the only thing that opera ever had over firefox (better tab related stuff) it lost in newer versions anyway, as they removed certain functionality from it.
Player (208)
Joined: 7/7/2006
Posts: 798
Location: US
I think it should stay, it gives the site some nice character. I think if it really does take up that much CPU usage, it should be modified to allow a disabling option (perhaps in user profile options?). Or perhaps the script should be modified to only run for a set amount of time (maybe the first 30-60 seconds a page has been open?). I'm just trying to provide possible solutions, I don't know anything about coding. I would hate to see the Mario/Luigi get scrapped, it's so cool.
Joined: 7/2/2007
Posts: 3960
Couldn't the same effect be achieved with an absolutely-positioned GIF with a high z-index?
Pyrel - an open-source rewrite of the Angband roguelike game in Python.
Joined: 6/9/2006
Posts: 614
Location: Mettmann
but when will the gif know when to run away if the mouse comes near ;D!?
Active player (308)
Joined: 2/28/2006
Posts: 2275
Location: Milky Way -> Earth -> Brazil
Actually I find it boring... there shoud be other secondary NES heros jumping there... like Protoman or Grant Danasty ... or the Blob
"Genuine self-esteem, however, consists not of causeless feelings, but of certain knowledge about yourself. It rests on the conviction that you — by your choices, effort and actions — have made yourself into the kind of person able to deal with reality. It is the conviction — based on the evidence of your own volitional functioning — that you are fundamentally able to succeed in life and, therefore, are deserving of that success." - Onkar Ghate
Bisqwit wrote:
Drama, too long, didn't read, lol.
arflech
He/Him
Joined: 5/3/2008
Posts: 1120
Sir VG wrote:
Because Opera sucks?
1. Opera only sucks on Mac and Linux. 2. I use Opera on Windows and have no problems when Luigi runs around on the screen. 3. The root of the problem, whatever browser you use, is in the scripting engine; for all I know the scripts may cause a memory leak or an infinite loop in some engines (like maybe old versions of Opera?)...
i imgur com/QiCaaH8 png
Joined: 2/1/2008
Posts: 347
Derakon wrote:
Couldn't the same effect be achieved with an absolutely-positioned GIF with a high z-index?
Animated GIFs are good for short animations, but if you go beyond some number of frames, say 100, then the CPU usage starts to climb... Unless you are using FireFox or Netscape (and perhaps Opera, since I've never used it), since for some reason those browsers have better animated GIF engines. So instead of improving the problem, you end up making it even worse for the most popular browsers. Oh, and to throw another browser out there, Chrome has absolutely no problem with Luigi. If it causes any increase in CPU power, it just looks like the random background CPU usage (10%-30%) I get on average while running this old computer. Yay for the V8 Javascript engine!
<ccfreak2k> There is no 'ctrl' button on DeHackEd's computer. DeHackEd is always in control.
Editor, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Chrome and Windows-Firefox have had no problem with it. X11-Firefox has had lots of CPU-usage problems with Luigi, therefore I have disabled in on user-agents professing X11. Haven't tested Opera. If Windows-Opera is also inflicted, I'll just disable it alltogether.
Joined: 12/3/2008
Posts: 15
Location: Dublin
[super-edit] Ack, just tested it again and Firefox doesn't seem affected at all now (nor does Safari); so it is indeed just Opera-specific. My bad! Don't remove it just because Opera is struggling with the JS or something; it's a nice little feature IMO.
Atma wrote:
Personal opinion: the only thing that opera ever had over firefox (better tab related stuff) it lost in newer versions anyway, as they removed certain functionality from it.
Certainly Opera's advantage over Firefox has been hugely eroded with recent releases of Firefox; I'm impressed how little memory v3 uses and how quickly it responds, especially its JS engine. But the main reasons I still use Opera are: * Single key shortcuts for back (z)/forward (x)/move left in tabs (1)/move right in tabs (2) * User-managed search engines in the address bar (e.g. I added "http://www.dict.cn/%s" for 'd', and can look up the Chinese word for "mushroom" in the dictionary by entering "d mushroom" in the address bar) * Built-in bittorrent downloading (maybe Firefox does this as well now, not sure) * Built-in content blocker which works nice for annoying Flash-ad-using sites. That said, on the old box (half a gig of RAM and a Pentium III, for god's sake) I was using at work, I was developing in Eclipse which is one of the worst memory hogs ever to have existed; Opera used up to twice as much RAM as Firefox did and caused the machine to enter swap-death sometimes, so I took to using Firefox on it (until I bought a new Windows Vista box with 2 gigs and other niceties).
Joined: 10/15/2007
Posts: 685
Firefox also has single key navigation (in fact, it frequently annoys me when I hit the shortcuts accidentally...), though I don't think any torrent add-on available is worth picking over, say, micro/utorrent.
Kirby said so, so it must be true. ( >'.')>
Joined: 12/3/2008
Posts: 15
Location: Dublin
superjupi wrote:
Firefox also has single key navigation (in fact, it frequently annoys me when I hit the shortcuts accidentally...), though I don't think any torrent add-on available is worth picking over, say, micro/utorrent.
I don't think there's a build for the Mac; most of the programs I've tried kind of suck except for Azureus (which incidentally fails to download .torrent files from tasvideos some of the time... almost all of the time until I upgraded to the latest release a few days ago). Good to know about the 1-key shortcuts in Firefox though!
Joined: 7/2/2007
Posts: 3960
Firefox can also do the keyword search things like you describe. Right-click on a search box and select "Add a keyword for this search", give it a keyword, and then type the keyword and your search query into the URL bar. Some of mine: en: http://en.wikipedia.org/wiki/%s (Wikipedia page) ens: http://en.wikipedia.org/wiki/Special:Search?search=%s (Wikipedia search) maps: http://maps.google.com/maps?q=%s (Google Maps search) And so on. It's insanely handy.
Pyrel - an open-source rewrite of the Angband roguelike game in Python.
Joined: 2/26/2007
Posts: 1360
Location: Minnesota
Desty wrote:
superjupi wrote:
Firefox also has single key navigation (in fact, it frequently annoys me when I hit the shortcuts accidentally...), though I don't think any torrent add-on available is worth picking over, say, micro/utorrent.
I don't think there's a build for the Mac; most of the programs I've tried kind of suck except for Azureus (which incidentally fails to download .torrent files from tasvideos some of the time... almost all of the time until I upgraded to the latest release a few days ago). Good to know about the 1-key shortcuts in Firefox though!
OT: I use transmission Desty, just switched to it over azureus actually. I have to say, I would NEVER go back to that resource hog ^_^ I highly suggest testing out transmission, it has a few less features but just as much punch as that blue frog. [/OT]
adelikat wrote:
I very much agree with this post.
Bobmario511 wrote:
Forget party hats, Christmas tree hats all the way man.
Editor, Player (68)
Joined: 1/18/2008
Posts: 663
Bisqwit wrote:
X11-Firefox has had lots of CPU-usage problems with Luigi, therefore I have disabled in on user-agents professing X11.
Thanks. X11-Flamedog on Gentoo appreciates it.
true on twitch - lsnes windows builds 20230425 - the date this site is buried
arflech
He/Him
Joined: 5/3/2008
Posts: 1120
Desty wrote:
superjupi wrote:
Firefox also has single key navigation (in fact, it frequently annoys me when I hit the shortcuts accidentally...), though I don't think any torrent add-on available is worth picking over, say, micro/utorrent.
I don't think there's a build for the Mac
I think an OS X build of mu-torrent was just released.
i imgur com/QiCaaH8 png