Author Topic: SDL-VICE 2.4.6 for Dingoo A-380/A-320e/A320(OpenDingux)  (Read 8252 times)

Alien Grey (OP)

  • ***
  • Posts: 1317
SDL-VICE 2.4.6 for Dingoo A-380/A-320e/A320(OpenDingux)
« on: July 28, 2013, 04:49:10 pm »
Here's an updated SDL-VICE version for the Dingoo A-380, A-320e and A320 (OpenDingux).




Quote
What is VICE?
VICE is a program that runs on a Unix, MS-DOS, Win32, OS/2, Acorn RISC OS, BeOS, QNX 4.x, QNX 6.x, Amiga, GP2X, Dingoo, Syllable, SkyOS or Mac OS X machine and executes programs intended for the old 8-bit computers. The current version emulates the C64, the C64DTV, the C128, the VIC20, almost all PET models, the PLUS4 and the CBM-II (aka C610)
http://www.viceteam.org/#vice



Download: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,72,722

Source code: http://sourceforge.net/projects/vice-emu/files/development-releases/vice-2.4.6.tar.gz/download


Note: Compiled with the OpenDingux toolchain. Remember to change the resolution from 320 pixels to 400 pixels on a Dingoo A-380 (with factory kernel) and a Dingoo A-320e. Tweaked for maximum performance with sound fix. Runs almost every game full speed with good sound. There's a sound bug in VICE or SDL that makes the sound terrible with VICE.

To work around this issue start a game. When the game is loaded and starts to run press the SELECT button on your Dingoo to enter the Configuration Menu. Go to the sound settings and disable the sound. Press the left twice to go back to the game. Repeat these steps to enable the sound again and enjoy your game with good sound like you expect it to be.  ;)

Enjoy.


SDL-VICE running on a Dingoo A-380

<a href="http://www.youtube.com/watch?v=ArEkUkIvpWs" target="_blank">http://www.youtube.com/watch?v=ArEkUkIvpWs</a>
Video by retrodd
« Last Edit: May 12, 2014, 07:42:33 pm by Alien Grey »
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Rosenkranz

  • *
  • Posts: 114
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #1 on: July 28, 2013, 05:14:18 pm »
I miss my Vice for Open Dingux...  :'(

Alien Grey (OP)

  • ***
  • Posts: 1317
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #2 on: July 28, 2013, 06:10:34 pm »
I miss my Vice for Open Dingux...  :'(

Give it a try. Maybe it does work on a Dingoo A320 with OpenDingux.

Replace the files from the Dingoo A-380/A-320e version with the files from this archive: http://www.putlocker.com/file/35729F534C97235A
« Last Edit: July 28, 2013, 08:53:06 pm by Alien Grey »
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Rosenkranz

  • *
  • Posts: 114
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #3 on: July 29, 2013, 02:20:02 am »
Interestingly it works with sound! :D

Sadly, sound has jitter all the time and it is slow. :(
Still it is better than having no sound at all. Thank you for an idea Alien Gray :)

EDIT: (THIS IS ONLY FOR OPENDINGUX ON DINGOO A320)

O.k. Fiddling with settings I managed to make it work faster and without cracking sound.

1. If you put in speed settings refresh rate at 1/2 it will make it work at 25fps (or 30fps depending of the PAL or NTSC settings)
2.Then you should go at sound settings and set Fragment size at large or very large
That will make cracking and jitter go away.
It would help if you set Synchronization method at Flexible or Adjusting, not at Exact!

That makes intro of Lasersqoud game fluid as I remember it :)

Once again, thank you Alien Gray! This is the last emulator for my OD Dingoo that I needed and now, after all of this time, from my point of view, it is complete! :D
« Last Edit: July 29, 2013, 02:48:00 am by Rosenkranz »

Alien Grey (OP)

  • ***
  • Posts: 1317
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #4 on: July 29, 2013, 07:57:38 am »
Interestingly it works with sound! :D

Sadly, sound has jitter all the time and it is slow. :(
Still it is better than having no sound at all. Thank you for an idea Alien Gray :)

EDIT: (THIS IS ONLY FOR OPENDINGUX ON DINGOO A320)

O.k. Fiddling with settings I managed to make it work faster and without cracking sound.

1. If you put in speed settings refresh rate at 1/2 it will make it work at 25fps (or 30fps depending of the PAL or NTSC settings)
2.Then you should go at sound settings and set Fragment size at large or very large
That will make cracking and jitter go away.
It would help if you set Synchronization method at Flexible or Adjusting, not at Exact!

That makes intro of Lasersqoud game fluid as I remember it :)

Once again, thank you Alien Gray! This is the last emulator for my OD Dingoo that I needed and now, after all of this time, from my point of view, it is complete! :D

I'm also still trying to find the best settings for this emulator. It runs great with factory kernel but has some issues with the Exmortis kernel with loading the menu.

Try with disabling the sound filter it's going to speed up emulation and make it possible to use refresh rate 1/1. I've uploaded a new version with these settings and also changed those settings for the Dingoo A320.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Rosenkranz

  • *
  • Posts: 114
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #5 on: July 29, 2013, 11:45:34 am »
I'm also still trying to find the best settings for this emulator. It runs great with factory kernel but has some issues with the Exmortis kernel with loading the menu.

Yes, I did notice that its loading time, when the emulator is first time started, really longer.

Try with disabling the sound filter it's going to speed up emulation and make it possible to use refresh rate 1/1. I've uploaded a new version with these settings and also changed those settings for the Dingoo A320.

I noticed too that many other games work at 1/1 full speed at 50fps with 22010hz, Fragment size very large and
Synhronization method set to exact.

Only slowdowns at 33- 40fps speed I see are in lasersquad intro with those settings, so I will use this intro for measuring the speed of emulation while changing the settings.

For now, because "You have exceeded the daily download limit for your country." I will have to wait to try newer version with disabled sound filters. (I can't seem to find how to disable them in the menu in my version ::) )

Alien Grey (OP)

  • ***
  • Posts: 1317
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #6 on: July 29, 2013, 10:22:52 pm »
Try these settings.

Machine settings -> Model settings -> SID settings

Disable Emulate filters.

Machine settings -> Model settings -> SID settings -> SID Model

Change it to 6581 (FastSID).

Sound settings -> Buffer size 45 msec

It's possible that it still needs a little longer. Default is 100 msec but that's too long and I noticed that if it's too long it slowsdown the sound emulation.

Fragment size -> Medium

That seems to be the best size for the Dingoo A-380 with Synchronization method Exact.


Also the issue with SDL-VICE 2.4.4 and the Exmortis kernel on the Dingoo A-380 can be fixed with changing the resolution back from 400 pixels to 320 pixels and let the kernel do the image centering.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Rosenkranz

  • *
  • Posts: 114
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #7 on: July 30, 2013, 09:11:54 pm »
Try these settings.

Machine settings -> Model settings -> SID settings

Disable Emulate filters.
Strangely it was already disabled

Machine settings -> Model settings -> SID settings -> SID Model

Change it to 6581 (FastSID).

This is the thing that speeded emulation the most! :D FastSID. I can hear sometimes glitches but they are really rare. This should be in A320 set up

Sound settings -> Buffer size 45 msec

It's possible that it still needs a little longer. Default is 100 msec but that's too long and I noticed that if it's too long it slowsdown the sound emulation.
I forgot to say in the previous post that I lowered it to 40msec from 100. At 45msc sound starts to glitch...

Fragment size -> Medium

That seems to be the best size for the Dingoo A-380 with Synchronization method Exact.
In A320 it has to be on very large. On medium it is catastrophic, on large it glitches sometimes, but on very large it even gains some more fps and sound is not distorted.

So, after few days this is the fastest set up that I made so I would have the most fps in Laser Squad intro but without music distortion:
A320 SETUP for highest fps
SID chip 6581 (FastSID)
Buffer size 40
Fragment size Very large
Frequency 22050Hz
Synchronization method Flexible
Speed settings ->Refresh rate -> Automatic

That gives the 46 - 50 fps in the intro.

Now, It is possible to make a setup that has less fps, but the sound would be much better. You don't see many dropped frames with this setup, but fps number is lower. You should have in mind that many games for C64 would still work at 50fps with it (I tried Bounces, Lazy Jones, Lasersquad in game, Boulder dash, Antiriad... etc and they worked at 50fps)

A320 SETUP for most games with quality sound
SID chip 6581 (FastSID) or 6581(ReSID) (slower than FastSID but better sound)
Buffer size 40
Fragment size Very large
Frequency 44100Hz
Synchronization method Exact
Speed settings ->Refresh rate -> Automatic

I hope that this will be helpful to anyone using it in OD.  ;D

The main difference is that A380 is faster than A320 and so A320 has to have different settings.
By the way, this should be posted in Dingux-releases part of the forum too. It is a releas for OD too, isn't it?
« Last Edit: July 30, 2013, 09:15:29 pm by Rosenkranz »

Alien Grey (OP)

  • ***
  • Posts: 1317
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e
« Reply #8 on: July 30, 2013, 11:15:37 pm »
By the way, this should be posted in Dingux-releases part of the forum too. It is a releas for OD too, isn't it?

You can make a thread in the Dingux releases if you want. I've removed the two emulators that don't work and uploaded it to openhandhelds. I also updated the OP with the new download link and some more information about SDL-VICE and how to get it to run.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

AtariHERO

  • *
  • Posts: 351
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e/A320(OpenDingux)
« Reply #9 on: July 30, 2013, 11:28:53 pm »
Here's an updated SDL-VICE version for the Dingoo A-380, A-320e and A320 (OpenDingux).




Quote
What is VICE?
VICE is a program that runs on a Unix, MS-DOS, Win32, OS/2, Acorn RISC OS, BeOS, QNX 4.x, QNX 6.x, Amiga, GP2X, Dingoo, Syllable, SkyOS or Mac OS X machine and executes programs intended for the old 8-bit computers. The current version emulates the C64, the C64DTV, the C128, the VIC20, almost all PET models, the PLUS4 and the CBM-II (aka C610)
http://www.viceteam.org/#vice



Download: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,1,704

Source code: http://sourceforge.net/projects/vice-emu/files/development-releases/vice-2.4.4.tar.gz/download

Missing petcolour.h file: http://www.ohloh.net/p/vice-emu/commits/258080779


Note: Compiled with the OpenDingux toolchain. Remember to change the resolution from 320 pixels to 400 pixels on a Dingoo A-380 (with factory kernel) and a Dingoo A-320e. The sound has been tweaked for the Dingoo A-380 and might need some changes for the Dingoo A-320e and Dingoo A320 (OpenDingux).


Runs full speed with good sound.  8)

sound is terrible on A380 with latest kernel
tried HERO and Head over wheels,

could not try more games,but...

Rosenkranz

  • *
  • Posts: 114
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e/A320(OpenDingux)
« Reply #10 on: July 31, 2013, 12:45:22 am »
IK+ is horrible too, whatever I do :'(

But I don't remember how it worked on other Vice emulators (native and dingux legacy). Can anyone confirm how it worked on other emulators?

Alien Grey (OP)

  • ***
  • Posts: 1317
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e/A320(OpenDingux)
« Reply #11 on: July 31, 2013, 08:50:08 am »
sound is terrible on A380 with latest kernel
tried HERO and Head over wheels,

could not try more games,but...

Maybe try with 6581 (ReSID), enable Emulate filters and Refresh Rate 1/2. If it's still not good try to change the Fragment Size and/or change Exact to Adjusting.

I've tested it with the game 1942. This game has nice music at the title screen and also plays that music with the game sounds. I think that it sounds good enough and the sound was also acceptable for the other games that I've tested. It's better than SDL-VICE 2.3. I've tried SDL-VICE 2.4 (Final release) but it's the same.

I also believe that we don't've to expect perfect emulation because there's no SDL-VICE 2.4 Dingux release. There's a 2.4 release for Dingoo Native so you can try it out and look if the sound is better or the same.

SDL-VICE 2.4 Dingoo Native: http://sourceforge.net/projects/vice-emu/files/releases/binaries/dingoo/SDLVICE-dingoo-2.4.zip/download
« Last Edit: July 31, 2013, 08:53:18 am by Alien Grey »
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Alien Grey (OP)

  • ***
  • Posts: 1317
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e/A320(OpenDingux)
« Reply #12 on: July 31, 2013, 07:45:42 pm »
IK+ is horrible too, whatever I do :'(

But I don't remember how it worked on other Vice emulators (native and dingux legacy). Can anyone confirm how it worked on other emulators?

Are you still using Refresh Rate Auto?

That doesn't work on the Dingoo A-380. Games that run perfectly full speed start to drop frames randomly that the game isn't playable anymore. Maybe try with Refresh Rate 1/1 or Refresh Rate 1/2 when full speed isn't possible.
Dingoo A-380 CFW V2.11.09 "RetroDD" - 2 x SanDisk SDHC 32GB Class 10 MicroSD Inside - 2 x Dingoo F-16 Wireless Game Controller

Rosenkranz

  • *
  • Posts: 114
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e/A320(OpenDingux)
« Reply #13 on: July 31, 2013, 08:22:36 pm »
IK+ is horrible too, whatever I do :'(

But I don't remember how it worked on other Vice emulators (native and dingux legacy). Can anyone confirm how it worked on other emulators?

Are you still using Refresh Rate Auto?

That doesn't work on the Dingoo A-380. Games that run perfectly full speed start to drop frames randomly that the game isn't playable anymore. Maybe try with Refresh Rate 1/1 or Refresh Rate 1/2 when full speed isn't possible.

O.k. Just tried IK+ with Vice 2.4 from the Native and from the start it worked better around 30-40 fps (that is on 366Mhz) while on OD worked sometimes on 15fps
When I overclock it to 400 it works without any glitches on 50fps.

I looked the settings and they were like this:
8580 (fast sid)
22050hz flexible
Buffer size 100
Fragment size ->medium
Frame skipping 1/1
...

So this port sadly has problems.
But I don't mind that much. :D Until now we didn't have sound on OD and many games run flawlessly :). I mean, native version was better than on PSP or Canoo and certainly better than Android port, so it is just a goal to achieve :)

AtariHERO

  • *
  • Posts: 351
Re: SDL-VICE 2.4.4 for Dingoo A-380/A-320e/A320(OpenDingux)
« Reply #14 on: July 31, 2013, 09:01:11 pm »
better than psp.
still not playable

 

Post a new topic
Post a new topic