Overclocking


mainnine

Still Fresh
Joined
Feb 22, 2006
Messages
42
Age
37
Location
UK
Website
mainnine.deviantart.com
I have read tutorials on adding lines of code to start the emulators at a higher speed 266MHz, but being the complete amateur that I am, I still don't know how to get this to work/how or where to enter this code.

I have tried to use the CPU-LCD tweaker as well but I don't know if it is in fact compatible with 1.4 firmware? :huh:
 
mainnine posted on Mar 2 2006 at 11:09 PM said:
I have read tutorials on adding lines of code to start the emulators at a higher speed 266MHz, but being the complete amateur that I am, I still don't know how to get this to work/how or where to enter this code.

I have tried to use the CPU-LCD tweaker as well but I don't know if it is in fact compatible with 1.4 firmware? :huh:

Which program are you trying to run overclocked?

Is cpu_speed.gpe on the root of your SD card?
 
Last edited by a moderator:
mainnine posted on Mar 2 2006 at 06:09 PM said:
I have tried to use the CPU-LCD tweaker as well but I don't know if it is in fact compatible with 1.4 firmware? :huh:

It is ... kinda; the 1.4 FW resets the clock speed when it enters the main menu, so you need to write a launch script thusly:

Code:
#!/bin/sh

/mnt/sd/cpu_speed.gpe 1 2 266
cd /mnt/sd/squidgesnes/
./squidgesnes.gpe
sync

cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu

As I understand it (I'm still learning this stuff ... ), the line /mnt/sd/cpu_speed.gpe 1 2 266 runs the LCD Tweak program with UPLL, +2 LCD clock gen, with the CPU oc'd to 266mhz ...

The lines
cd /mnt/sd/squidgesnes/
./squidgesnes.gpe
then run Suidge's SNES emu ... just save this script using Programmer's Notepad with unix line endings, and save it as "whatever_you_want.gpe" and run the script under the Games menu ...

Hope this helps :)
 
Last edited by a moderator:
TelcoLou posted on Mar 2 2006 at 11:50 PM said:
As I understand it (I'm still learning this stuff ... ), the line /mnt/sd/cpu_speed.gpe 1 2 266 runs the LCD Tweak program with UPLL, +2 LCD clock gen, with the CPU oc'd to 266mhz ...

That's right on the money Lou :)

To give a comparison I use this script to launch squidgesnes.

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 266
cd /mnt/sd/games/squidgesnes
./squidgesnes
sync
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu 
#!/bin/sh

There are some differences.

Firstly I have removed the .gpe form the cpu_speed executable. The .gpe part is there so it shows up in the games menu, likewise if it ended .gpu it would show up in the utilities menu.

The executable will still work without either of these extensions if you point to it using the launch script, it keeps things tidy by hiding it this way.

Second thing that is different is that I have nearly all my emulators/games in a directory called games. The reason for doing this is that folders aren't hidden and you have to scroll past them in order to get to launch scripts putting them in a subdirectory means there are less to scroll past. There are few emulators/games left that won't let you do this.

The third difference is that I have removed the .gpe extension from the emulator/games executable again this just keeps it hidden, and we won't be going into the folder to look for it anyway.

Edit:quotes
 
Last edited by a moderator:
Thanks! that was a big help, it didn't really make any of the roms that much faster, but it did help me understand the code involved in the gp2x a lot more :D
 
mainnine posted on Mar 2 2006 at 08:01 PM said:
Thanks! that was a big help, it didn't really make any of the roms that much faster, but it did help me understand the code involved in the gp2x a lot more :D

just in case it interests you to know this, the "code" in question is not actually specific to the gp2x but basic bash scripting (sort of like writing a *.bat file for dos, maybe a tad more powerful though). so if you're ever on a unix/linux box and you drop to the console you'll be doing something similar.

also, overclocking is only going to be noticeable on programs that really need it. i doubt if the new gnuboy needs it and drmdx only needs a little bit, depending on whether battery life or saving some dropped frames is most important to you. of course there's lots of other great emus & ports, but i'll keep it short and just say "experiment". there's really no danger in overclocking too high...you'll just crash and have to restart.
 
Last edited by a moderator:
NeoStuey posted on Mar 2 2006 at 05:09 PM said:
To give a comparison I use this script to launch squidgesnes.

Code:
#!/bin/sh

/mnt/sd/cpu_speed 1 2 266
cd /mnt/sd/games/squidgesnes
./squidgesnes
sync
cd /usr/gp2x/
exec /usr/gp2x/gp2xmenu 
#!/bin/sh

I really hate to necropost (but I couldn't bring myself to starting a new thread). But, did you really have that script working - or were you stating that it would theoretically work.


Because, I cannot get any scripts running for my Squidge.34... or anything for that matter. -_-. I've tried about 15 variants today, none have worked (hangs up at black screen.) I am currently running on Open2X.

Please do not think I haven't been looking - I have spent the past 7 hours searching the forums.


I will have a script like the ones featured above, replacing the folder names (there are no spaces in the file directory tree, when there is, I put quotes. [I usually just rename]) I put this script into Programmer's Notepad, save as a GPE... and attempt to execute it on the gp2x (it is located in the same directory as the GPE I am attempting to overclock.). CPU_speed.gpe is in the root directory, and my scripts reflect the file extension.



I've tried everything - and now I see that these won't work for ANY program. The Minigame Project scripts really didn't help me due to the fact that they used different commands to change CPU speed.
 
Last edited by a moderator:
Nevermind - I figured out my problem. It was that I was not saving it with the Unix Format - LF.


Stupid me! :)
 
Back
Top