Author Topic: Uae Built And Working - Any Optimisation Hints?  (Read 6013 times)

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« on: February 01, 2006, 05:56:03 am »
I've built UAE from source - a mercifully simple job - and am wondering if there's any particular compiler optimisations that are recommended for the Zaurus platform?

Performance is pretty good, but at the moment it couldn't really be used for games.  It's not too far off though, particularly if frameskip is set to 3 and sound is turned off.

Advice on how to package up an ipk would be good, too?

I'm going to try the package with and without SDL graphics, and with and without SDL sound.  The SDL graphics version seems fine, but SDL sound seems slow.

Anyone else interested?

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #1 on: February 01, 2006, 06:11:58 am »
don't know for the optimization.

how to make an ipk:
http://mail.pdaxrom.org/contrib/docs/making_ipkg_howto.html

is this the same as
e-uae_0.8.28-RC2-1_armv5tel.ipk?
« Last Edit: February 01, 2006, 06:13:10 am by pgas »
SLC-860 cacko / senao wifi

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« Reply #2 on: February 01, 2006, 06:26:29 am »
That one is based on the 0.8.28 RC2 codebase; I've built using the formal release of 0.8.28.  The delta's not huge, but

There are many many many options for compilation too (provided by configure) so I guess I should contact whoever created that version to see if they found any optimisations and also what worked better for the sound/gfx output.

A weird bug: the program segfaults if the on screen keyboard is present when the app starts, however starting after UAE has started causes no problems.

Thanks for the link to the guide - how embarassing that I couldnt' find that for myself  

I'll carry on playing and see what gives me the best performance.  I'm assuming that SDL in the beta1 feed is pretty much optimised and that there's no benefit of playing around with that?

I'll also see if I can find what compiler opts might work.  Given that a configure/build takes around 20 minutes on the Z, this could be a long process

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #3 on: February 01, 2006, 06:34:09 am »
Quote
so I guess I should contact whoever created that version to see if they found any optimisations and also what worked better for the sound/gfx output.

It's compiled by sash with the pdaxrom-builder, you should find the info you need by looking into it (in something like rules-ipk/e-uae.make)
SLC-860 cacko / senao wifi

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Uae Built And Working - Any Optimisation Hints?
« Reply #4 on: February 01, 2006, 06:55:47 am »
pgas: What's  the bests CFLAGS for SL-Cxx00?
How to activate iwmmx support?
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« Reply #5 on: February 01, 2006, 07:00:32 am »
Thanks again pgas for your help with what must be a pretty n00b question

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #6 on: February 01, 2006, 07:07:16 am »
Quote
pgas: What's the bests CFLAGS for SL-Cxx00?
How to activate iwmmx support?

sorry I don't know, I don't have a CXX00 ....
SLC-860 cacko / senao wifi

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« Reply #7 on: February 02, 2006, 04:27:20 am »
Hmm, there's nothing in the ipk, so I'll drop sash a mail.  I know he's busy, but it's worth a try

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #8 on: February 02, 2006, 05:44:16 am »
Quote
Hmm, there's nothing in the ipk

yeah, the rules are in the builder:

http://mail.pdaxrom.org/1.1.0beta1/pdaXrom...7.12.05.tar.bz2

I had a look at rules-ipk/e-uae.make sash doesn't seem to use something special.
SLC-860 cacko / senao wifi

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« Reply #9 on: February 02, 2006, 09:14:19 am »
"D'oh!"

I'll get to a basic level of knowledge on the system soon

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #10 on: February 03, 2006, 04:16:29 am »
I'm presuming that both of these Zaurus UAE ports don't include the cyclone ARM ASM M68k emulator? If somebody gets that integrated into uae it should speed things up a lot.

I know there are lots of GP2X owners who want to run uae so I wouldn't be surprised to see some Gp2X devs teaming up with some Z devs, as we've seen with zpsx, to get this done. I hope so anyway!
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« Reply #11 on: February 03, 2006, 11:58:02 am »
I'll look into the Cyclone side of things - thanks for the tip.  Do you have any experience of how well cyclone compares with other (C/C++) implementations of a 68k?

I know e-uae supports JIT compilation on the x86 platform only, so there might be quite a bit more we can squeeze out of the arm side of things.

Civil

  • Full Member
  • ***
  • Posts: 103
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #12 on: February 03, 2006, 05:02:40 pm »
Quote
How to activate iwmmx support?
-march=iwmmxt -mcpu=iwmmxt -mtune=iwmmxt as I remember...
Zaurus C-3100 ( Gentoo 2007.0 eabi, kernel 2.6.21.6)
http://www.zavrik.info - Russian Zaurus Site.

danboid

  • Hero Member
  • *****
  • Posts: 881
    • View Profile
    • http://
Uae Built And Working - Any Optimisation Hints?
« Reply #13 on: February 04, 2006, 07:33:39 am »
An early version of UAE for the GP2X is out now but its quite slow at the mo apparently. It is a port of a UAE version for the Dreamcast called UAE4ALL

I was reading this thread

http://www.gp32x.com/board/index.php?showtopic=25056

and the bad news is that someone else who tried porting UAE to the GP2X says that cyclone doesn't seem to be compatible with it  

I'm sure there is still hope for getting UAE running well on ARM.
Zaurus SL-C3000 w/ MD swapped for a Kingston 32GB Ultimate 266X CF running ALARM
Banana Pi running ALARM on a WD Scorpio SATA II HD
System76 Gazelle Pro i7 laptop w/ SAMSUNG 840 EVO SSD running Arch x64

How to install Arch on your C3x00 Zaurus https://github.com/danboid/ZALARM-install

chiark

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://www.chiark.com
Uae Built And Working - Any Optimisation Hints?
« Reply #14 on: February 06, 2006, 03:00:38 pm »
Cheers for the updates everyone.  That's sad about cyclone...  I haven't yet looked into the cpu emulation of UAE, but it might be possible to nastily hack it in, surely?

It's a pure 68k emulator, not an 020/040 emulator, so it'd be definitely best for old games, etc...