Author Topic: Gemei A330 MAME4ALL on its way!  (Read 5091 times)

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Gemei A330 MAME4ALL on its way!
« on: November 13, 2016, 02:52:15 am »
I have an initial version of Mame4all running on my Gemei A330.
Here are some photos.






yoshi41

  • *
  • Posts: 461
Re: Gemei A330 MAME4ALL on its way!
« Reply #1 on: November 13, 2016, 08:33:26 am »
Good news. :) And thanks for your hard work.

The GA330 is a nice piece of hardware. Can't wait to try it out.

Emulator packs and fact sheets for Wiz, Caanoo, Dingoo and Pandora.

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Re: Gemei A330 MAME4ALL on its way!
« Reply #2 on: November 13, 2016, 09:09:05 am »
Good news. :) And thanks for your hard work.

The GA330 is a nice piece of hardware. Can't wait to try it out.

Actually it is a nice handheld, pretty decent hardware. Similar to it's predecessor the Dingoo A320 in many ways (of course).

My only complaint would be the LCD screen, which is like the Ben Nanonote: the pixels aren't aligned so everything looks slightly "dithered".

It should be pretty quick for M68000/Z80 games as unlike the Dingoo A320, I will be able to use Cyclone and DrZ80 :)
AND... another nice feature is the easy to use hardware scaling... looking forward to getting this going too.

Also thanks go to cex and dcervi for pointing me in the right direction with some A330 toolchain/SDK questions.
« Last Edit: November 13, 2016, 09:39:34 am by slaanesh »

chevette

  • *
  • Posts: 149
Re: Gemei A330 MAME4ALL on its way!
« Reply #3 on: November 13, 2016, 06:36:15 pm »
Wow slaanesh that's a beautiful sight to see Mame4All on the Gemei A330 (never thought I'd see it!). Thanks for all your efforts on this wonderful handheld

dingooforever

Re: Gemei A330 MAME4ALL on its way!
« Reply #4 on: November 14, 2016, 10:30:50 am »
Well done slaanesh!

It's really great to see Mame4All run on so many different opensource devices.

dcervi

Re: Gemei A330 MAME4ALL on its way!
« Reply #5 on: November 15, 2016, 02:19:54 pm »
Also thanks go to cex and dcervi for pointing me in the right direction with some A330 toolchain/SDK questions.

Glad to be able to help. My A330  patiently waits with a fresh new battery...


Enviat des del meu D5803 usant Tapatalk
« Last Edit: November 15, 2016, 02:22:14 pm by dcervi »

Igor Raz

Re: Gemei A330 MAME4ALL on its way!
« Reply #6 on: November 15, 2016, 03:51:20 pm »
Awesome news, thanks a lot for keeping faith in Gemei )

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Re: Gemei A330 MAME4ALL on its way!
« Reply #7 on: November 16, 2016, 11:16:04 pm »
A couple things so far about the Gemei MAME4ALL port:

1). Sound is laggy. This issue has been touched on before. At lower sound sample rates, the sound seems to lag - badly. This seems to decrease at higher rates. I'm going to go with the following approach:

There are two sample rates to consider: The emulated rate and the Gemei's playing rate. For most emulators and systems, these are the same. ie. For my versions of MAME4ALL this is always the case.

To help solve the laggy issue, my workaround will be to set the Gemei's sample rate to the maximum  48Khz stereo but still allow MAME4ALL to emulate at lower sample rates (for speed reasons). The emulated sound generated by MAME4ALL will then be resized to fit the number of samples the Gemei is expecting to play (which is a pretty quick step). Obviously if MAME4ALL is set to 48Khz stereo then there won't be any need for "resizing". Complex sound chips like the ym2151, would take a lot of processing at this maximum rate which is why I prefer to emulate it at a lower rate and then re-sample it at the last output step to the Gemei.

2). The Gemei is making use of Cyclone and DrZ80 CPU cores. Great! I've tried some games that really torture MAME4ALL, Outrun is a good candidate having 2x M68000s and 1xZ80. It runs pretty well - though not stellar. I guess the issue is that the Gemei's CPU is an ARM-926 - same as the GP2X Wiz. Whilst on paper the specs seems to indicate it should be super fast, I've found it isn't. And this seems to hold true with the Gemei A330 too.

3). Extra RAM. This is probably the best advantage of the Gemei A330. Glorious extra RAM! We have much more user RAM to play with - 30MB of Heap and 8MB of program space. This was a main issue with the Dingoo A320. Lack of RAM - it only has 16MB Heap and 6MB program.
The extra RAM is good but unfortunately will still mean the Gemei version will need a number of executables to cover all the games - I'm thinking 4 or so module. The Dingoo A320 has 8 modules.

4). Hardware screen scaling! I love hardware screen scaling! In the process of getting this working. Using Rampage as the test subject as it's game resolution is 512x480. And I also like Rampage ;-)

« Last Edit: November 17, 2016, 10:57:20 pm by slaanesh »

chevette

  • *
  • Posts: 149
Re: Gemei A330 MAME4ALL on its way!
« Reply #8 on: November 17, 2016, 10:23:14 pm »
Thanks for the update slaanesh.

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Gemei A330 MAME4ALL on its way!
« Reply #9 on: November 17, 2016, 11:26:05 pm »


Rampage hardware scaling not quite right for shrinking though stretching is fine
« Last Edit: November 17, 2016, 11:27:39 pm by slaanesh »

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Re: Gemei A330 MAME4ALL on its way!
« Reply #10 on: November 21, 2016, 01:39:11 am »
So I was looking at the previous post's issue on the weekend and I haven't found a solution.

It's a pity as the Gemei port is in a pretty good shape otherwise.

I could use software blitters that do the re-scaling but the hardware one would be faster and do a higher quality job so it would be nice to get this issue sorted out.

The problem looks to be that the hardware blitter is only setup to do a maximum of 320x240 when using the LCD screen - TV out will probably work (though I haven't tested that).

There must be someway of setting the blitter "window" (presumably set to 320x240) to the correct size.

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Re: Gemei A330 MAME4ALL on its way!
« Reply #11 on: November 23, 2016, 03:39:18 am »
I've sent some code to dcervi who is going to assist with the hardware scaling to see if there is any way to fix the above issue.

slaanesh (OP)

  • *
  • Posts: 417
    • Slaanesh Dev
Re: Gemei A330 MAME4ALL on its way!
« Reply #12 on: November 28, 2016, 11:30:47 pm »
Great news!

dcervri found the problem with hardware scaling.

High resolution games, like Rampage, are now being nicely scaled by the hardware to the Gemei's screen.

Big thanks to dcervri.

A couple more things to look at and I think an initial release should be in order fairly soon.


chevette

  • *
  • Posts: 149
Re: Gemei A330 MAME4ALL on its way!
« Reply #13 on: November 28, 2016, 11:32:22 pm »
This is exciting!!!!!!! Thanks guys!!

dcervi

Re: Gemei A330 MAME4ALL on its way!
« Reply #14 on: November 29, 2016, 10:04:50 pm »
As I said before, I'm very happy to be able to help you getting hardware scaling working. Some reverse engineering was needed to find the bug affecting bigger resolutions, but now that it's been solved, we can port other programs that may need bigger resolutions (Temper, I'm looking at you).

But first things first, I'm eagerly awaiting your first release of Mame4all. I hope we can get better Neo Geo and CPS 1-2 emulation than what it's currently available, and I'm anxious to be able to play Out Run and GNG on the Gemei.

Enviat des del meu D5803 usant Tapatalk


 

Post a new topic