Acorn emulators for OpenPandora ?

want to talk about MESS/model b/beebem/b-em/electrem/elkulator? do it here!
Post Reply
garfield
Posts: 393
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Acorn emulators for OpenPandora ?

Post by garfield » Tue Sep 29, 2009 1:40 pm

Which acorn emulator(s) is/are most likely to appear on OpenPandora, do you think?

http://openpandora.org/
gaming subnotebook computer

MurrayCakaMuzer
Posts: 293
Joined: Sat Sep 05, 2009 9:20 pm
Location: Hampshire
Contact:

Re: Acorn emulators for OpenPandora ?

Post by MurrayCakaMuzer » Fri Oct 02, 2009 9:50 pm

Beebem exists for Linux (I can't remember what it uses, SDL, OpenGL or just pure X11), so that is most likely the one that will be ported, if any are.

User avatar
Samwise
Site Admin
Posts: 1823
Joined: Mon Mar 14, 2005 9:13 pm
Contact:

Re: Acorn emulators for OpenPandora ?

Post by Samwise » Mon Oct 05, 2009 9:13 am

It's already been ported to the GP2x (from the SDL unix version):

http://wiki.gp2x.org/wiki/BeebEm

I'm not sure what modifications will be required for Pandora, but hopefully not too many.

Sam.

User avatar
frutbunn
Posts: 43
Joined: Sun Aug 27, 2006 7:09 pm
Contact:

Re: Acorn emulators for OpenPandora ?

Post by frutbunn » Tue Oct 06, 2009 3:38 pm

I'll probably be porting (at the very least) GP2X Beebem to Pandora, when you can buy one that is! [-o<

In fact, I've already committed myself to it over here! :D

trevj
Posts: 155
Joined: Fri Apr 17, 2009 11:09 pm
Location: Bristol, UK
Contact:

Re: Acorn emulators for OpenPandora ?

Post by trevj » Thu Jan 20, 2011 9:32 am

frutbunn wrote:I'll probably be porting (at the very least) GP2X Beebem to Pandora, when you can buy one that is! [-o<

In fact, I've already committed myself to it over here! :D
A cross-compilation version has now been tried.

Stainy
Posts: 22
Joined: Sun Apr 15, 2012 9:07 pm
Contact:

Re: Acorn emulators for OpenPandora ?

Post by Stainy » Sun Apr 15, 2012 9:38 pm

Hi..

Are there anymore developments on a beeb em for the Pandora?
I`ve read here and followed the links and such.. can`t see anything concrete!

sswam
Posts: 6
Joined: Thu May 10, 2012 11:44 am
Contact:

Re: Acorn emulators for OpenPandora ?

Post by sswam » Fri May 11, 2012 9:44 am

I packaged up two BeebEm builds in a PND, see here:

http://boards.openpandora.org/index.php ... ntry146562

http://pandoria.org/pnd/beebem.pnd

Both builds run, but both have serious issues. I'll try to improve them soon, hopefully will get some help as I'm new to the code!

I've been told the PND might not work correctly on some Pandoras, please bear with me while I fix that up.

User avatar
PitfallJones
Posts: 432
Joined: Fri Feb 22, 2008 3:44 pm
Contact:

Re: Acorn emulators for OpenPandora ?

Post by PitfallJones » Fri May 11, 2012 10:01 am

I think the Pandora has been superseded:
jxd-s7100.JPG
jxd-s7100.JPG (92.91 KiB) Viewed 1532 times
http://jxd.hk/products.asp?id=604&selectclassid=009006
This is half the price and available now.

Incidentally anyone got a Raspberry Pie yet and got the BBC Micro running on it?

User avatar
nOmArch
Posts: 1330
Joined: Fri May 21, 2010 7:27 pm
Location: Gloucestershire
Contact:

Re: Acorn emulators for OpenPandora ?

Post by nOmArch » Fri May 11, 2012 10:15 am

Delivery date is 14th May for me.
Alex

Back up to 1 Beeb again. \o/

sswam
Posts: 6
Joined: Thu May 10, 2012 11:44 am
Contact:

Re: Acorn emulators for OpenPandora ?

Post by sswam » Fri May 11, 2012 11:52 am

By the way, the Pandora now has a working RISC PC emulator, and a native RISC OS 5 port (needs some more device drivers, but is usable with USB devices). It can run classic DOS and Windows games with qemu. It overclocks happily to 1GHz. The N64, PSX, SNES and Amiga emulators work well. BeebEm will catch up soon!

trevj
Posts: 155
Joined: Fri Apr 17, 2009 11:09 pm
Location: Bristol, UK
Contact:

Re: Acorn emulators for OpenPandora ?

Post by trevj » Fri May 11, 2012 8:01 pm

PitfallJones wrote:I think the Pandora has been superseded
Nice spec, shame it's Android, and 2.2 at that.

User avatar
richardtoohey
Posts: 3563
Joined: Thu Dec 29, 2011 5:13 am
Location: Tauranga, New Zealand
Contact:

Re: Acorn emulators for OpenPandora ?

Post by richardtoohey » Fri May 11, 2012 10:18 pm

sswam wrote:Both builds run, but both have serious issues. I'll try to improve them soon, hopefully will get some help as I'm new to the code!
If you are using Beebem Unix and the SDL code, I have some major improvements to offer there ... gets the framerate up from 12-14 fps to 40+ ...

If you are working off the Windows code-base, I've got nothing to offer ... :D

sswam
Posts: 6
Joined: Thu May 10, 2012 11:44 am
Contact:

Re: Acorn emulators for OpenPandora ?

Post by sswam » Sat May 12, 2012 4:22 am

richardtoohey wrote: If you are using Beebem Unix and the SDL code, I have some major improvements to offer there ... gets the framerate up from 12-14 fps to 40+ ...
Yes I'm working with the Unix version and also the GP2X port. Please send me the code or patch and I'll try to build it. I forgot to use the right CFLAGS for a fast Pandora build, that might help with the speed too. <sam@nipl.net>

The PND I had uploaded before was truncated and didn't work. It should be fixed now.

http://pandoria.org/pnd/beebem.pnd

There is a thread here: http://boards.openpandora.org/index.php ... ed-thread/

User avatar
richardtoohey
Posts: 3563
Joined: Thu Dec 29, 2011 5:13 am
Location: Tauranga, New Zealand
Contact:

Re: Acorn emulators for OpenPandora ?

Post by richardtoohey » Sat May 12, 2012 6:25 am

sswam wrote:Yes I'm working with the Unix version and also the GP2X port.
The author (of both) was helpful when I contacted him, and the GP2X port sounded like the version he'd put most recent effort into. He might be interested to hear of your Pandora work, so might be worth flicking him an email.

I'll dig out my changes (to make it go faster) in the next day or three (bit mixed up with other experimental stuff, so needs a bit of effort from me to pull out the pertinent bits.)

In the meantime (and off the top of my head - I looked at this at Christmas when I had WAY more time!) ... the main issue I found (and fudged rather than fixed) is that the entire screen is redrawn far too often - it only needs to redraw each changed rectangle (BUT the fudge part is that to address this I ditched the code I didn't understand - to do with interlacing. So it was WAY faster, but at the cost of correct emulation - what I was losing I wasn't sure, the games I tried still seemed to work! :lol: ) This is purely to do with the SDL code in the Unix version, so irrelevant for the GP2X or the Windows version.

Another UNIX issue was that older versions of the SDL libraries made Caps Lock useless as a control key (Death Star, Space Pilot etc. pretty unplayable.)

If you are not using SDL, none of the above will make one iota of difference - so do tell me if you are not using SDL - I'll still dig out the code but not in such a rush!

sswam
Posts: 6
Joined: Thu May 10, 2012 11:44 am
Contact:

Re: Acorn emulators for OpenPandora ?

Post by sswam » Sat May 12, 2012 10:07 am

richardtoohey wrote:The author (of both) was helpful when I contacted him, and the GP2X port sounded like the version he'd put most recent effort into.
...
do tell me if you are not using SDL - I'll still dig out the code but not in such a rush!
Ok I'll contact the author/s directly. I did post in several threads, but they might not be watching them and longer.

Yes, both versions I built are using SDL, all of the UNIX/Linux ports are using SDL as far as I know.

I'm also trying to build B-Em (a different emulator) but this has some more difficult dependecies such as OpenAL, will take a bit longer to build it, and I suspect that OpenAL might be a bit slow.

Stainy
Posts: 22
Joined: Sun Apr 15, 2012 9:07 pm
Contact:

Re: Acorn emulators for OpenPandora ?

Post by Stainy » Sat May 12, 2012 7:12 pm

Ah you beat me to it :)

Was jumping on here to tell everyone about your port :)

User avatar
richardtoohey
Posts: 3563
Joined: Thu Dec 29, 2011 5:13 am
Location: Tauranga, New Zealand
Contact:

Re: Acorn emulators for OpenPandora ?

Post by richardtoohey » Wed May 16, 2012 9:09 am

Sigh ... $DAY_JOB_HOURS + $LIFE_HOURS > $BEEB_HOURS ... :cry:

Here's an initial thing to try to get the frame rate up - not as good as I remembered, but gets me another 10 FPS on my laptop.

I'm assuming that you've started with code from here:

http://beebem-unix.bbcmicro.com/downloa ... .13.tar.gz

... and that you've applied all the patches available (having said that, I wasn't having much joy with the Econet patch tonight, but don't think it affects the outcome here. Just mentioning in case what I say below doesn't match 100% what you see.)

beebwin.cpp c. line 1833 void BeebWin::updateLines(HDC hDC, int starty, int nlines)

Comment out lines 2048-2052 and add a call in for a new function ...

Code: Select all

2048 //      for(i = 0; i < nlines; i++){
2049 //              if (i+starty < 600)
2050 //                      RenderLine(i+starty, (int) TeletextEnabled, ScreenAdjust);
2051 //
2052 //      }
2053
2054  New_DrawScreen(starty,nlines,(int) TeletextEnabled,ScreenAdjust);
2055
sdl.h, add a line for the new function ...

Code: Select all

 93 extern void New_DrawScreen(int,int,int,int);
sdl.cpp holds the new function, I've zipped that up and attached it. There's some useless crud in there, test code, bogus comments, etc. Rather than let it rot I'm letting it out "as is" - really want to see if it helps anyone else a bit (I had plenty of free time around Christmas, but no time since!)

Final caveat - this will definitely break some things but was a step in the right direction (well in A direction) to make things faster ... I was going to come back to this and tidy it up "one day."

Hope it is useful - but DO let me know either way, please!

Thanks.
Attachments
sdl.cpp.zip
Beebem Unix sdl.cpp changes to up frame rate
(14.67 KiB) Downloaded 106 times

Stainy
Posts: 22
Joined: Sun Apr 15, 2012 9:07 pm
Contact:

Re: Acorn emulators for OpenPandora ?

Post by Stainy » Mon Jan 14, 2013 1:01 am

sswam has updated this emu for the Pandora..

Very very usable now.. just a few things to sort out and it will be perfect!!!

Post Reply