You are here

Improve performance

12 posts / 0 new
Last post
rbouchard
Offline
Last seen: 15 years 7 months ago
Joined: 2009-04-06 20:21
Improve performance

Hi, I found a way to make firefox portable virtually lagless. I'm not sure if this has been already suggested, but you can just make a batch file to copy it to a temporary directory, and then run it on the hard drive. Then, when you're done, you can copy to back to your USB drive.

Here is one I made:
@ECHO OFF
ECHO Creating temporary directory for firefox potable
PAUSE
MKDIR %temp%\FFXP
ECHO Copying firefox to temp directory
PAUSE
XCOPY /E /Q FirefoxPortable %temp%\FFXP
ECHO Starting firefox
PAUSE
%temp%\FFXP\FirefoxPortable.exe
ECHO Saving changes to USB device
PAUSE
XCOPY /E /Q %temp%\FFXP FirefoxPortable
ECHO Removing temporary data
PAUSE
RMDIR /Q /S %temp%\FFXP
ECHO Done
PAUSE

gluxon
gluxon's picture
Offline
Last seen: 4 years 2 months ago
Developer
Joined: 2008-06-21 19:26
Already built into

Already built into launcher...

This feature is already built into the FirefoxPortable.exe launcher.

rbouchard
Offline
Last seen: 15 years 7 months ago
Joined: 2009-04-06 20:21
Weird

That's weird because I get much better performance using my batch file.

Jimbo
Offline
Last seen: 4 years 10 months ago
Joined: 2007-12-17 05:43
No it isn't

that is definitely NOT built into the launcher, because it basically goes completely against portability as defined on this site.

In the event of the computer crashing, you can guarantee that 100% of your personal data will be left behind on the computer's temp directory - that is all your bookmarks, all your passwords, everything.

If you don't have a problem with that, then yes, the batch file will make FFP much more responsive.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Yes

it is, it is called RunLocally and is available from the INI file as far as I remember Smile

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 32 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Correct

And it's for Live CDs. And there's a note about it copying stuff locally. It just doesn't have an option to copy Data back as we don't want to encourage people to do the above as you'd be leaving your data behind in ways that others could find it on every PC unless you incorporate eraser into the mix.

Sometimes, the impossible can become possible, if you're awesome!

NathanJ79
NathanJ79's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2007-07-31 15:07
Nice

That's pretty much what I need to make Deus Ex (an Unreal-based RPG with a FPS engine) run better portably from a flash drive, because quicksave and quickload take forever.

What do the commandline switches do (/E and /Q for xcopy and /Q and /S for rmdir)?

I might have to adapt this batch file to effectively copy the save folder from the flash drive to the temp folder, run the game, and then copy the folder back when it's done.

Another solution is to get a faster flash drive or a USB hard drive. Because that's all we're really talking about is flash drives that are slower than hard drives. My Portable Firefox doesn't need anything like this, but the game's another story.

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2007-01-12 19:22
.

His batch file is very primitive.
Take a look at xcopy /? and rd /? and you'll see a list of command line switches.
-
But how will you make the game look at save on PC instead of its folder?

rbouchard
Offline
Last seen: 15 years 7 months ago
Joined: 2009-04-06 20:21
?

How is my batch file primitive?

Also, if the computer you're on DOES crash, you can just go back into %temp% and delete FFXP. And, if you are concerned about your security, you can get rid of "RMDIR /Q /S %temp%\FFXP" and use the erase command. For the switches, do "erase /?".

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2007-01-12 19:22
.

a lot of unnecessary pause
doesn't make use of >nul (to hide ugly msgs on the screen)
doesn't make use of double quotes "" with %temp% (remember that it may contain spaces)
doesn't attrib a destination path to XCOPY (it means that the files from %temp% will be copied to current directory and not to the directory that .cmd is)
etc...

i didn't mean that you don't know what you are doing or something like this.
i meant that your script is a bit "simple".

[]'s

rbouchard
Offline
Last seen: 15 years 7 months ago
Joined: 2009-04-06 20:21
oh

I just added the pauses because I like them. I don't write batch files much, so it was a little weird Blum

Ph4n70m
Ph4n70m's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2007-01-12 19:22
.

Smile
tip: if you want a little pause between commands, try to use
ping 127.0.0.1>nul

Log in or register to post comments