Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Tip: work around Flash taking over your entire CPU

Tip: work around Flash taking over your entire CPU
Thread Tools
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 4, 2008, 03:12 AM
 
I was growing tired of sites such as the MLB.com Gameday site basically just taking over my entire CPU whenever I watch a game, so I decided to try to see whether SSH X11 forwarding would perform well enough to keep up with the MLB Gameday app/site. Sure enough, it works just fine for this purpose!

If you need to access a Flash driven site or movie that does not require smooth animation (i.e. you can afford to drop some frames), read on...

While you can do SSH X11 forwarding to your local Mac, seeing that it would be using the same CPU, this is not going to help much. Therefore, these instructions are for viewing a Firefox window from another computer on your local Mac.

Requirements:

1) Another machine running Linux/BSD/Unix with SSH and X11 forwarding enabled (I believe most distros ship with this enabled by default in SSH), and Firefox installed on this machine

or

2) Another Mac with a copy of the X11 version of Firefox, SSH and X11 forwarding enabled (see instructions below for enabling this, it is not enabled by default)


and

3) The free Apple X11 app installed on your local Mac



Using another Unix based machine that is not a Mac:


ssh -X username@yourmachine firefox "http://yoursite.com"



Using another Mac:

1) enable X11 forwarding on both local Mac and remote Mac ("ForwardX11 yes" in /etc/ssh_config on your local Mac, "X11Forwarding yes" in /etc/sshd_config on the remote Mac), restart SSH on both Macs if necessary (you can do this via launchctl if you don't have physical access to the remote machine and don't want to reboot it). ssh -X username@yourmachine xterm will test that you have X11 forwarding setup and recognizing your X11 install

2) install the X11 version of Firefox. This builds cleanly using MacPorts (although for version 2). If you wish, I can provide a package installer of firefox-x11, just let me know

3) ssh -X username@yourmachine /opt/local/bin/firefox "http://yoursite.com"
     
besson3c  (op)
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 4, 2008, 03:31 AM
 
Crap, my instructions won't work properly with the Mac because I don't think the Flash plug-in works with the X11 version of Firefox for the Mac, and I'm too lazy to try this to confirm this.

These instructions work beautifully with a non-Mac/non-Windows machine though
     
Horsepoo!!!
Banned
Join Date: Jun 2003
Status: Offline
Reply With Quote
Jul 5, 2008, 11:41 AM
 
Here's another tip...download the Flash 10 beta.
     
TETENAL
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
Jul 5, 2008, 11:55 AM
 
     
besson3c  (op)
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 5, 2008, 01:07 PM
 
Is it stable?

My instructions are still cool if you don't want any rendering power being consumed by your local CPU
     
Art Vandelay
Professional Poster
Join Date: Sep 2002
Location: New York, NY
Status: Offline
Reply With Quote
Jul 5, 2008, 01:27 PM
 
I played with Flash 10 and it was stable. However, many sites are looking for v.9 to load their content. So, I reverted back.
Vandelay Industries
     
Horsepoo!!!
Banned
Join Date: Jun 2003
Status: Offline
Reply With Quote
Jul 5, 2008, 01:53 PM
 
Originally Posted by besson3c View Post
Is it stable?

My instructions are still cool if you don't want any rendering power being consumed by your local CPU
For sure they're still cool.

Like Art, I found it stable but the downside is, as Art said, that some sites look for specific versions of Flash.
     
awaspaas
Mac Elite
Join Date: Apr 2001
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Jul 6, 2008, 03:28 PM
 
Originally Posted by besson3c View Post
Crap, my instructions won't work properly with the Mac because I don't think the Flash plug-in works with the X11 version of Firefox for the Mac, and I'm too lazy to try this to confirm this.

These instructions work beautifully with a non-Mac/non-Windows machine though
You're right, it does work well from a Linux machine. There's no sound for me, although that could possibly be a good thing (a lot of times I don't want sound from webpages!) It plays youtube videos (no sound though) without dropping any frames for me (over gigabit ethernet).
     
besson3c  (op)
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 6, 2008, 03:36 PM
 
Oh yeah, I forgot about the sound... Oh well, sound shmoud!

I'm on a G4 Powerbook, and watching a ball game used to make my machine crawl... I used to use Synergy to bring up the game on my Linux machine (which is within visible range of my laptop desk), but since it is flash based you can't really increase the fonts to read much of anything. This solution is great for me
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jul 6, 2008, 03:39 PM
 
Originally Posted by TETENAL View Post
Seconded.

This is even more stupid since you would do this to spare your CPU from working hard, at the cost of dropping frames and/or resolution by using X11 ? So what do you do with those unused CPU cycles, while watching the game ?



-t
     
besson3c  (op)
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 6, 2008, 03:41 PM
 
Originally Posted by turtle777 View Post
Seconded.

This is even more stupid since you would do this to spare your CPU from working hard, at the cost of dropping frames and/or resolution by using X11 ? So what do you do with those unused CPU cycles, while watching the game ?



-t

No resolution lost, and I don't care about frames being dropped on the incoming pitches.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jul 6, 2008, 03:41 PM
 
Oh, and as an easier solution, may I suggest renice ?

-t
     
besson3c  (op)
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Jul 6, 2008, 03:54 PM
 
You could, but I've played with that and it doesn't seem to help much. I honestly think that Flash on OS X is just flat-out broken. It is a massive pig.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:24 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,