Flash slow in Windows or Linux? There maybe a fix.

No Gravatar

There is no perfect solution to this problem.  Therefore, I will like to list the things one can try to speed up Flash in both Windows or Linux.

FlashFaster

  • Change the display settings in Windows or Linux to a lower resolution.  Such as 1024×768 to 800×600.
  • Change the display settings in Windows or Linux to use less colours.  Change the colours from 32-bit to 16 bit.
  • Replace the hard disk drive with a Solid State Drive.  Windows uses a page file while Linux uses a swap partition that are used as additional RAM when needed.  Therefore, a SSD will make the accessing of the data in either the page file or swap partition faster.
  • http://forums.adobe.com/message/4602906#4602906 post #12 has some helpful tips.

For Linux users, http://www.linuxscrew.com/2010/03/24/fastest-way-to-create-ramdisk-in-ubuntulinux/ helped me.  Although, I had a problem with keeping it working after every reboot.  Therefore, I looked for a better solution.

The first thing I did is create a directory not in temp but in my david directory.  So, I created a directory called ramdisk in /home/david/Documents.  From there I created a file in the Documents folder called flashDisk.sh. Within that file is a line that reads mount -t tmpfs -o size=60M tmpfs /home/david/Documents/ramdisk/.  In some cases, you will have to become root to mount.  Therefore, gnome-terminal -e “sudo mount -t tmpfs -o size=60M tmpfs /home/david/Documents/ramdisk/” may have to be used instead if you have to be a super user to run the mount command.  Unfortunately, you will have to enter the password every time you login.  Before I can do anything else, I have to right-click on flashDisk.sh and change the permissions under properties to can read and write for all.  I also have to put a checkmark in the Is executable box.  Unfortunately, I only have 70MB of free RAM left.  Therefore, 60MB is what I set the size.  The next thing I did is create a link to the flashDisk.sh in Linux’s startup script.  Finally, I created a string in Firefox’s about:config setting called browser.cache.disk.parent_directory which points to /home/david/Documents/ramdisk.  Http://ubuntuforums.org/showthread.php?t=991205 will help in this regard.  Upon rebooting the computer, I can see Firefox using ramdisk.  Furthermore, flash is working much faster.

flashDisk

 

  • Removing and/or using a different sound system may also improve flash games.  Linux uses one or more of three sound systems by default. OSS (deprecated), ALSA, and PulseAudio.  There maybe more, but those are the three that I know.  By removing all traces of the sound system(s) installed, Flash games should improve in speed and quality.  Unfortunately, a computer without sound is no fun.  Therefore, one can change the sound system from PulseAudio to ALSA or from ALSA to PulseAudio.  I currently uninstalled PulseAudio and installed ALSA since PulseAudio was conflicting with Flash.

There will be more once I figure out what else can be done.

I have installed Chrome and a SSD.  Flash is much faster in Linux.  Unfortunately, it is still slower than Windows Vista, but it is faster than having a regular HDD.  It is quite possible that the Flash version that is built into Chrome is faster since it is integrated.  Therefore, downloading and installing Google Chrome is an option that should be considered.  If Google Chrome does not work, the last option is to install and use a SSD since Linux uses a swap partition on the harddrive as RAM when needed.

Leave a Reply