GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment: Emulators Speed Up Hack - GP32X.com - GP32 GP2X Pandora The Wiz - open source entertainment

Jump to content

  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Emulators Speed Up Hack Report back with results please :)

#1 User is offline   craigix

  • Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 6,177
  • Joined: 03-February 03
  • Gender:Male
  • Location:England

Posted 30 September 2006 - 09:19 PM

Following on from the mmu hack, this might speed things up even more...

We want to hear if these settings speed up emulators on your unit, or crash it, or slow it down etc.

Launch the cpu changer with (change for your path/file name obviously):

/mnt/sd/cpu_speed --upll --timing 1 --cpuclk 266 --trc 6 --tras 4 --twr 1 --tmrd 1 --trfc 1 --trp 2 --trcd 2

and report back if the emulator speed is faster/slower than just launching with 266mhz 'normal'.

Thanks,

Craig

#2 User is offline   woogal

  • Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 1,822
  • Joined: 15-May 03
  • Location:Newark, UK

Posted 30 September 2006 - 10:57 PM

Don't care about emulators, but on quake a standard 266mhz benchmarks at 16.7. These settings benchmark at 17.8 :) .

#3 User is offline   xnopasaranx

  • Superbad!
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,223
  • Joined: 31-January 06

Posted 30 September 2006 - 11:10 PM

what do the settings mean? what are all those parameters? just out of interest...

#4 User is offline   Epicenter

  • Mega GP Mania
  • PipPipPipPipPipPip
  • Group: Banned
  • Posts: 2,068
  • Joined: 09-October 05
  • Location:USA
  • Interests:Computer hardware and software, vintage game consoles and games, first-person shooters, action movies, techno music, insane top-scrolling shooters (STGs), Ecco the Dolphin games and research, ridiculous Japanese Tokusatsu shows from the 90's, 68K and ARM hardware..... the list goes on and on.

Posted 30 September 2006 - 11:37 PM

It just tightens the RAM timings so the CPU and RAM can communicate with less idle cycles in between. I tried it a while ago, with no noticable effect. RAM timings do extremely little when adjusted on PCs, too-- and often cause major stability problems. But it's still worth giving them a little tweaking if all stays stable.

One big thing to try, though, is changing your RAM divisor to 3 instead of 2 if you go past 266 MHz. Your RAM then will not be overclocked as well when you exceed 266. The rating for the SDRAM is 133 MHz, so at 200 Mhz, it is underclocked (200/2 = 100 Mhz.) At 266 Mhz it runs at full speed. At, say, 280 MHz, it's at 140 MHz. Go to 300 MHz with a Ram Divisor of 3 and you get just 100 Mhz RAM clock and possibly higher stability. Give it a shot.

This post has been edited by Epicenter: 30 September 2006 - 11:39 PM


#5 User is offline   Vimacs

  • Don't be evil!
  • Icon
  • Group: X-treme Team
  • Posts: 5,208
  • Joined: 22-October 03
  • Location:Germany

Posted 30 September 2006 - 11:41 PM

wow, does noone read readme's/news? ...

#6 User is offline   craigix

  • Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 6,177
  • Joined: 03-February 03
  • Gender:Male
  • Location:England

Posted 30 September 2006 - 11:42 PM

View Postwoogal, on Sep 30 2006, 11:57 PM, said:

Don't care about emulators, but on quake a standard 266mhz benchmarks at 16.7. These settings benchmark at 17.8 :) .


Nice :)

Now... emulators?

#7 User is offline   woogal

  • Mega GP Mania
  • Icon
  • Group: GP Guru
  • Posts: 1,822
  • Joined: 15-May 03
  • Location:Newark, UK

Posted 01 October 2006 - 12:02 AM

View PostEpicenter, on Oct 1 2006, 12:37 AM, said:

One big thing to try, though, is changing your RAM divisor to 3 instead of 2 if you go past 266 MHz. Your RAM then will not be overclocked as well when you exceed 266. The rating for the SDRAM is 133 MHz, so at 200 Mhz, it is underclocked (200/2 = 100 Mhz.) At 266 Mhz it runs at full speed. At, say, 280 MHz, it's at 140 MHz. Go to 300 MHz with a Ram Divisor of 3 and you get just 100 Mhz RAM clock and possibly higher stability. Give it a shot.

Ram already runs at half the cpu and according to the readme ramdiv just divides that even further. Using cpu_speed, 300mhz cpu with a ramdiv of 3 will be 50mhz ram not 100mhz.

#8 User is offline   Epicenter

  • Mega GP Mania
  • PipPipPipPipPipPip
  • Group: Banned
  • Posts: 2,068
  • Joined: 09-October 05
  • Location:USA
  • Interests:Computer hardware and software, vintage game consoles and games, first-person shooters, action movies, techno music, insane top-scrolling shooters (STGs), Ecco the Dolphin games and research, ridiculous Japanese Tokusatsu shows from the 90's, 68K and ARM hardware..... the list goes on and on.

Posted 01 October 2006 - 12:17 AM

My mistake; I used it a long time ago (it didn't get me any higher than 305 Mhz with stability but I wasn't expecting that) so I'm a bit fuzzy on the details. I don't see a problem with a setting of 2 for a RAM clock of 75 MHz instead of 150 MHz with a CPU clock of 300 MHz, for example. Slower RAM access, sure, but it might be more beneficial in CPU-bound apps.

#9 User is offline   GunPei2X

  • Coltrane Sundia
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,689
  • Joined: 07-August 04

Posted 01 October 2006 - 01:49 AM

Well, I'm getting at least 1-2 FPS increase in SquidgeSNES. Good stuff!

#10 User is offline   pepone

  • Pouet! Pouet! Do want!
  • Icon
  • Group: GP Guru
  • Posts: 431
  • Joined: 14-October 05

Posted 01 October 2006 - 08:22 AM

I've done some quick test with gngeo (@266 with sound, samplerate set to 11025)
I got approximativly a 9fps increase. :o

#11 User is offline   kardasan

  • GP32 Hardcore
  • PipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 283
  • Joined: 08-March 06
  • Location:Wroclaw, Poland

Posted 01 October 2006 - 09:10 AM

strange thing....I get like 10fps slowdown in Squidgesnes but I can actually overclock to 266 while without these extra options I can only go to 255 (I have gp2x mk1 not FE)

This post has been edited by kardasan: 01 October 2006 - 09:18 AM


#12 User is offline   WarmFluffyUK

  • The Big Wad Bolf.
  • Icon
  • View blog
  • Group: X-treme Team
  • Posts: 3,179
  • Joined: 04-September 04
  • Gender:Female
  • Location:UK

Posted 01 October 2006 - 09:17 AM

Okay, at the risk of sounding stoopid, how do I setup a batch file on the GP2X to launch this? Do I just create something like start.gpe with the following in it:
/mnt/sd/Util/cpu/cpu_speed --upll --timing 1 --cpuclk 266 --trc 6 --tras 4 --twr 1 --tmrd 1 --trfc 1 --trp 2 --trcd 2

If so I have done that and all I get is a blank screen :(

#13 User is offline   nik166

  • :3 :3 :3
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 516
  • Joined: 03-March 03
  • Gender:Male
  • Location:french S/W
  • Interests:Stuff. lots of it.

Posted 01 October 2006 - 09:21 AM

View PostEpicenter, on Oct 1 2006, 12:17 AM, said:

My mistake; I used it a long time ago (it didn't get me any higher than 305 Mhz with stability but I wasn't expecting that) so I'm a bit fuzzy on the details. I don't see a problem with a setting of 2 for a RAM clock of 75 MHz instead of 150 MHz with a CPU clock of 300 MHz, for example. Slower RAM access, sure, but it might be more beneficial in CPU-bound apps.

well it would be wise to to the same as i do for pc :
1/ checking the CPU's limit (let's say 300mhz for example)
2/ checking the RAM limit (something like 140? )

then applying the settings that are slose but not over those limits
but is the "cpu divider" the same setting as the "ram divider" ? they both say "the cpu clock will be divided by this value" ?

View PostWarmFluffyUK, on Oct 1 2006, 09:17 AM, said:

Okay, at the risk of sounding stoopid, how do I setup a batch file on the GP2X to launch this? Do I just create something like start.gpe with the following in it:
/mnt/sd/Util/cpu/cpu_speed --upll --timing 1 --cpuclk 266 --trc 6 --tras 4 --twr 1 --tmrd 1 --trfc 1 --trp 2 --trcd 2

If so I have done that and all I get is a blank screen :(


make a GPU file containing this:

#!/bin/sh

/mnt/sd/cpu_speed.gpe put your settings here
cd /mnt/sd/yourappfolder/
./yourapp.gpe
sync

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


so the GPU launches your app directly with the tuned settings (or the gp2x menu resets your frequencies :P )

#14 User is offline   WarmFluffyUK

  • The Big Wad Bolf.
  • Icon
  • View blog
  • Group: X-treme Team
  • Posts: 3,179
  • Joined: 04-September 04
  • Gender:Female
  • Location:UK

Posted 01 October 2006 - 10:15 AM

Thanks nik166, that worked perfectly.

Craig I just tried Quake and uae4all. Both definately appeared smoother with those settings.

Addition:
I just tried Squidge SNES, playing Bubsy it was averaging around 10 to 20 FPS. After applying your speed up hack, I got an average of 40 to 50 FPS. The game was very smooth indeed :)

#15 User is offline   GunPei2X

  • Coltrane Sundia
  • PipPipPipPipPipPip
  • Group: GP32 Hardcore
  • Posts: 2,689
  • Joined: 07-August 04

Posted 01 October 2006 - 10:43 AM

View PostWarmFluffyUK, on Oct 1 2006, 10:15 AM, said:

I just tried Squidge SNES, playing Bubsy it was averaging around 10 to 20 FPS. After applying your speed up hack, I got an average of 40 to 50 FPS. The game was very smooth indeed :)


Most of that increase will be purely due to overclocking -- default for SquidgeSNES is 200mhz, and using that script will run at 266mhz. Try it at 266mhz with and without just the RAM tweaks (everything after cpuclk 266) to observe the diff.

  • (7 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic