swift_potato
Posts: 5
Joined: Tue Sep 11, 2012 7:07 am

Re: C64 emulator

Tue Sep 11, 2012 7:12 am

I have Vice running at 50fps/100%, but when I enable sound in the emulator it drops to 10-20% and 1fps.

Not sure why as I have the sound driver on and enabled as per instructions previously.

any ideas?

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Tue Sep 11, 2012 6:03 pm

naaaa, thats to much of slowness, here are some examples

boulderdash -> 100% 50fps playing with joystick and resid sound emulation
crazy comets -> 100% 50fps playing with joystick and resid sound emulation
uridium -> 100% 50fps playing with joystick and resid sound emulation
ghosts'n goblins -> 100% 50fps playing with joystick and resid sound emulation
mega apocalypse -> 100% 50fps but when speech occurs 80% 7-22fps playing with joystick and resid sound emulation

tweaks i did on raspberry pi:

config.txt
arm_freq=850
core_freq=375
i use the raspbmc distribution as i thought this is more optimized for running an app from console instead of x-server
just exit xbmc and on the white screen hit esc button and you are on console
load the sound driver and start c64 emulation

tweaks you can do in emulator:

disable resid sound emulation by choosing fastsid as your sid chip model "machine settings->model settings->SID settings->SID model->6581 (FastSID)
this will give you a huge performance boost. Do not enable double size or enable a render filter for games that need a lot of CPU time ( but it is off default )

this is on firmware befor 5.sep, i did not test on newest but i hope nothing has changed

p.s.: i used ps3 sixaxis controller connected via usb cable on a self powered usb hub to the rpi

swift_potato
Posts: 5
Joined: Tue Sep 11, 2012 7:07 am

Re: C64 emulator

Tue Sep 11, 2012 9:03 pm

ok, will give it a go tomorrow with that distro. I am thinking now though that I might be better getting an Atom powered PC to run Vice and other emulators in my C64 case.

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Sun Sep 16, 2012 12:56 pm

is this your C64 case ?

http://preamp.org/mods/raspcherry-pi

if yes and even if it's not then probably this could help you:

https://github.com/raspberrypi/linux/co ... 90abfb90a7

there was an interupt storm in the older Kernel, which stop Network to work when e.g joystick was connected and results somtimes in strange behavior and could drastically slow down your system. Try update to testing kernel version 3.2.27

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Sun Sep 16, 2012 2:12 pm

Is there anybody who got Vice running on Wheezy? (2012-08-16-wheezy-raspbian)
I got it working on Squeeze, xcept the sound, but not on Wheezy.
With installation all goes ok with "sudo apt-get install vice", there are icons in X but when I select one nothing happens.
In a terminal when I press "x64" I get "segmentation fault", with "sudo x64" nothing happens (the cursor goes to a new line with the default prompt ([email protected] _))
Any ideas?
Greets
Tony

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Sun Sep 16, 2012 2:58 pm

Did you read the last post's ?

http://www.areascout.at/vice-emu-rpi-2.3.21.zip

Code: Select all

sudo apt-get install libsdl1.2-dev

Code: Select all

sudo apt-get -f install

Code: Select all

dpkg -i vice_2.3.21-1_armhf.deb

Code: Select all

sudo modprobe snd-bcm2835
this is how to run vice in console mode with fullscreen ( but only do it if you're know what you are doing )

swift_potato
Posts: 5
Joined: Tue Sep 11, 2012 7:07 am

Re: C64 emulator

Sun Sep 16, 2012 3:52 pm

That isnt my case :D It is an actual Commdore 64 (Breadbin) with a Keyrah Interface :mrgreen:

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Mon Sep 17, 2012 4:24 pm

Ahh ok, very good :D ! so could you resolve the problem with less performance ?

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Wed Sep 19, 2012 9:35 pm

AreaScout wrote:Did you read the last post's ?

http://www.areascout.at/vice-emu-rpi-2.3.21.zip

Code: Select all

sudo apt-get install libsdl1.2-dev

Code: Select all

sudo apt-get -f install

Code: Select all

dpkg -i vice_2.3.21-1_armhf.deb

Code: Select all

sudo modprobe snd-bcm2835
this is how to run vice in console mode with fullscreen ( but only do it if you're know what you are doing )
Hi!
Just downloaded the new image 2012-09-18-wheezy-raspbian.zip. I'll try this instructions with the new distro and let you know how I succeeded.
Thanx
Tony

swift_potato
Posts: 5
Joined: Tue Sep 11, 2012 7:07 am

Re: C64 emulator

Thu Sep 20, 2012 6:10 am

I tried with the new image and had the same results as before with low fps when sound enabled. I did have a quick game of chuckie egg before I switched it off.

I will try the other distro tonight or tomorrow and report back.

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Thu Sep 20, 2012 10:08 am

Tried the 2012-09-18-wheezy-raspbian with the Vice suggested here (http://www.areascout.at/vice-emu-rpi-2.3.21.zip). When run got "* failed to open vchiq instance ... Exiting..."
Read a lot about that vchiq but not sure how to solve it yet...
I'll try..any suggestions?
(btw the "dpkg -i vice_2.3.21-1_armhf.deb" has to be "sudo dpkg -i vice_2.3.21-1_armhf.deb")

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Thu Sep 20, 2012 5:06 pm

Ahhhh ok, thanks for remind me on that, i will make a new build and package, for sure they changed the libraries

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Thu Sep 20, 2012 5:29 pm

Kewl! I'll wait for that. Got C64 running now..no sound and sloooooow..
I'll try and fix it..keep in touch ;)

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Thu Sep 20, 2012 6:18 pm

i did a clean install of 2012-09-18-wheezy-raspbian, nothing has changed that would require a rebuild, it works, maybe the problem was the memory split ( i use 192 ) ? i have to say that on raspbmc it runs a bit faster but it's not slow

@swift_potato

ok can't wait

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Thu Sep 20, 2012 6:53 pm

Ok..I overclocked my Pi to 1Ghz..now C64 runs like hell..if I disable sound..when I enable ALSA it slows down a lot. So I guess you're right about there's nothing to change :)
I haven't looked at memory-split. Give it a go, and see if it helps.

User avatar
billb
Posts: 177
Joined: Wed Sep 19, 2012 10:27 pm

Re: C64 emulator

Fri Sep 21, 2012 4:07 pm

@AreaScout thanks for sharing all your work. I'm new to the RPi but familiar with building from source, applying patches, and occasionally fixing minor issues or adding features.

Tried a build of the latest stable vice 2.3 release last night and got everything working but HW scaling so I can have fullscreen 1080p. Looking forward to checking out your changes for getting that working!

The only game I tried so far is this very nice conversion of Prince of Persia for the C64 in EasyFlash format: http://www.rgcd.co.uk/2011/10/prince-of-persia-c64.html :D Seems to run 100% speed but didn't have a chance to play with it much.

swift_potato
Posts: 5
Joined: Tue Sep 11, 2012 7:07 am

Re: C64 emulator

Fri Sep 21, 2012 8:43 pm

I have put the xbmc image on and WOW!!!

its running excellent, just loading Sanxion now with the music on and no problems.

What I want to do now is to have the image load into the console instead of the media centre and set the sound control.

I will upload some video tomorrow for you guys when I get the Pi into the case.

thanks for your help so far! :D

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Sat Sep 22, 2012 6:57 am

I would love to see a video with vice running on raspberry pi on a beamer or 70" Display :D

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Mon Sep 24, 2012 9:48 am

After struggling for more than a week I decided to give it a new approach (for me)..I installed RaspBmc.
There installed vice, had to do the sudo modprobe snd-bcm2835-thing and do 'sudo x64' (without sudo got a segmentation fault) but now it's running like a dream with sound. Without overclocking, just did the fastSID instead of reSID but now it's running at a steady 50fps :-)
Thanx for the help!
Greets
Tony

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Mon Sep 24, 2012 10:28 am

http://youtu.be/lkPhh54x314
A little vid showing Vice on my Pi :-)

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Mon Sep 24, 2012 5:05 pm

Thanks for the link, i was waiting for it nearly all over the weekend ;)

@billb
thx for the game link, i didn't know this game

@swift_potato
our C64 project is very nice

@all
thanks for reporting back

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Tue Sep 25, 2012 1:48 pm

@swift_potato
typo: your not our

toyamigo
Posts: 13
Joined: Tue Sep 11, 2012 8:50 am

Re: C64 emulator

Wed Sep 26, 2012 3:17 pm

Got Vice running on XBMC for a few days now.
The sound is still a nightmare. Sometimes it works, sometimes it works after tweaking (FastSID, ReSID, System/Stereo) but most of the time it just doesn't work at all.
I'm pretty sure the system settings are ok so I think it's the Alsa that sux.
Maybe wait for RC5? Or an update of Vice?
I have a feeling there's nothing more I can do.

AreaScout
Posts: 22
Joined: Mon Aug 13, 2012 1:35 pm

Re: C64 emulator

Wed Sep 26, 2012 7:47 pm

i did not had any sound problem at all, RC5 will bring a kernel update that solves a 'interrupt storm' that gives you up to 10% better CPU performance, befor i had problems when connecting the PS3 controller to rpi, the network was unreachable to do high interrupts.

hhhmmm, this was solving screen blanking for me, maybe it helps audio too

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

and try to force your tv to 1080p50 in config.txt with:

hdmi_mode=31

it's better to have the same fps like vice is using by default
what resolution does the rpi by default on your tv ?

hope this helps

edit: a class 10 sd card will also solve some issues

User avatar
startrek.steve
Posts: 383
Joined: Thu Aug 30, 2012 7:19 pm

Re: C64 emulator

Fri Sep 28, 2012 6:31 pm

I got this running fine with sound in a console, but I cant bring up ther menus? I have to load an image with the command line x64 batman.d64, I cant setup the joystick emulation?
Any help guys?
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

Return to “Other projects”