No i dont think so i just typed the command Lordashram stated and then zipped up the log file, didnt edit or delete anything
So I tried that and here are my results: On my desktop (Haswell i7 oc 4.3gz ram latency 7-7-7-7) I tested both capsnk.zip & starsldr.zip with both seh & sjlj versions having the exact frame rate, no difference.
On my htpc (Phenom x4 ram latency 11-11-11-11) I tested the 32x version of Afterburner: sjlj: some crackling in the sound due to ram latency issues seh: no crackling in sound, the same as my desktop
Awesome!
@OpenElec users, I updated the 2014-11-14 version with the missing dependencies from BlockABoots log file.
Hi LordAshram,
You willingness to work with this is amazing, karma your way.
OpenElec Stable Version: 4.2.1 // Generic x86_64 testing your version from 2 hrs ago:
Three NEW missing dependencies snuck in. libXcursor.so.1 => not found libXi.so.6 => not found libXss.so.1 => not found
http://pastebin.com/c8abRunW (full log)
I also did a little testing/hacking and found that there is also a missing depenency on “libpng12.so.0” down the line so might as well try and include that now.
I hope this all helps and again, thank you!
So I tried that and here are my results: On my desktop (Haswell i7 oc 4.3gz ram latency 7-7-7-7) I tested both capsnk.zip & starsldr.zip with both seh & sjlj versions having the exact frame rate, no difference.
On my htpc (Phenom x4 ram latency 11-11-11-11) I tested the 32x version of Afterburner: sjlj: some crackling in the sound due to ram latency issues seh: no crackling in sound, the same as my desktop [/quote] Nice ,i wasn’t thinking it would be the case ( fibers/SEH faster than SJLJ/ASM coop threading) . maybe we can add some makfile tweak to use fibers if some defines are set .
RetroArch-2014-11-15
OpenElec-x86_64: Updated: RetroArch[249f2b9], Common-Shaders[cd31752], bSNES-Mercury[b5ecf95],
NOTE: UME 2014 based on MAME-SVN r33370
I also added some more dependencies, I went through my log of dependencies and added all the ones not showing up in BlockABoots log of what OpenElec does contain.
@r-type, I didn’t know what to expect but I was really hoping that the SEH version would run the 32x version of Afterburner with more accurate timings and it did.
Lordashram,
I can confirm that it is now running on OpenElec, so far it seems to work flawless - but I haven’t tested anything but ppsspp.
Thank you so much
Thanks lordashram,we will wait…I found there are alreay some issue on github about this bug.
https://github.com/libretro/RetroArch/issues/1057
this issue reported autodetection not working after your 0810 build
and https://github.com/libretro/RetroArch/issues/984
r-type found autodetection not working but can defined manually
I think it should be a RGUI bug, not your build’s bug…
thanks ill give it a try and report back
Yes that nice to ear, i knew that seh was faster sjlj for exception handling . but didnt expect SEH+fibers give better result than SJLJ+ASM libco. So we have to let it be default choice for win64 if we can’t find why it crash with ASM+SEH. (that remind me that we could also add more mem for heapsize in emuThread = co_create(65536sizeof(void), retro_wrap_emulator); but don’t know what a good value for here , mupen64plus-libretro use 65536sizeof(void)*16 )
Also if you have time could you build for hatari win64 to see if it works well without tos.img (should bring you to gui at least if not found hatari.cfg in sys folder or tos.img in current exxec dir). i have build an test on linux +android (works but gui still unusable in android as mouse emulation is to faster) but don’t have a win to test. https://github.com/r-type/hatari
Damn look like we missed a few…
http://pastebin.com/raw.php?i=FsnkUPma
only 3 though…
libXau.so.6 => not found libXdmcp.so.6 => not found libFLAC.so.8 => not found
How come these didnt show up before??
Hopefully we’ll have it beat now =D
EDIT: I have tried zaggash build of retroarch that used to work on an older build of OpenElec, but now his version doesnt work either and is missing dependencies as well, i guess because Openelec has is now on version 5 this may be the reason?
Yes that nice to ear, i knew that seh was faster sjlj for exception handling . but didnt expect SEH+fibers give better result than SJLJ+ASM libco. So we have to let it be default choice for win64 if we can’t find why it crash with ASM+SEH. (that remind me that we could also add more mem for heapsize in emuThread = co_create(65536sizeof(void), retro_wrap_emulator); but don’t know what a good value for here , mupen64plus-libretro use 65536sizeof(void)*16 )
[/quote]
I guess I could do it for the nightlies, it’s just matter of adding a define, something like
ifdef(FIBERS) #include “fiber.c”
in https://github.com/libretro/mame/blob/m … co/libco.c and add the definition to the makefile (optional) should be enough.
Still I guess I’ll offer both builds on the buildbot so we can test for regressions and other problems.
RetroArch-2014-11-15v2 OpenElec-x86_64: Updated: RetroArch[d0bf0f6], Mupen64plus[114ddec], ppsspp[b5388b6], ScummVM[228def6]
NOTE: UME 2014 based on MAME-SVN r33370
Latest commit of MAME failed to build for Linux, haven’t checked Win64 nor Android ports yet.
@r-type, with no tos.img Hatari popped up about it missing then went into the Hatari Menu, log show it tried to check the system folder next. Put tos.img in system folder Hatari popped up about it missing then loaded game, log showed it loaded the tos.img from system folder. In game ejected discs, saved hatari.cfg in to itss default location, quit Hatari, reran game, this time no pop up and just loaded game.
I noticed that Hatari wants to save to C:\Users$USERNAME$.hatari for savestates & default config locations instead of using the RetroArch variables.
@Radius & r-type, I compiled two test versions of SEH UME: From:
#elif defined(__GNUC__)
#include "sjlj.c"
#elif defined(_MSC_VER)
#include "fiber.c"
to
#elif defined(__GNUC__)
#include "fiber.c"
#elif defined(_MSC_VER)
#include "fiber.c"
Compiled but hung at initializing screen Then I tried from
emuThread = co_create(65536*sizeof(void*), retro_wrap_emulator);
to
emuThread = co_create(65536*sizeof(void*)*16, retro_wrap_emulator);
Compiled but hung at initializing screen
@BlockABoots, added them to the V2.
Thanks, I’ll give it a go and report back…3rd time lucky hopefully =D
yes sound good idea.
when you do :
#elif defined(__GNUC__)
#include "fiber.c"
#elif defined(_MSC_VER)
#include "fiber.c"
i think you never get here , because i assume win64 is handle by the second line : #elif defined(GNUC) && defined(amd64) || (defined(_MSC_VER) && defined(_M_AMD64)) but have no windows here to confirm.
#if defined(__GNUC__) && defined(__i386__) || (defined(_MSC_VER) && defined(_M_IX86))
#include "x86.c"
#elif defined(__GNUC__) && defined(__amd64__) || (defined(_MSC_VER) && defined(_M_AMD64))
#include "amd64.c"
i will try something like :
#if defined(__GNUC__) && defined(__i386__) || (defined(_MSC_VER) && defined(_M_IX86))
#include "x86.c"
#elif defined(__GNUC__) && defined(__amd64__) || (defined(_MSC_VER) && defined(_M_AMD64))
#ifdef(__FIBERS__)
#include "fiber.c"
#else
#include "amd64.c"
#endif
...
for hatari , thks for testing, ok i ll try to change default location for cfg & savestate to sysdir . for mame i ll try a compile to see the pb.
Ok, some good news, RetroArch now loads in OpenElec =D , but there are some issues.
Upon starting retroarch in terminal (PuTTY) with the command, ’ /storage/.xbmc/addons/emulator.retroarch/bin/retroarch --menu’
Terminal reports…
error: XDG_RUNTIME_DIR not set in the environment.
RetroArch [ERROR] :: gfx_ctx_wl_init :: Failed to connect to Wayland server.
sh: xdg-screensaver: not found
RetroArch [WARN] :: x11_suspend_screensaver :: Could not suspend screen saver.
ALSA lib /home/stephan/projects/openelec-5.0/build.OpenELEC-Generic.x86_64-4.95.2/alsa-lib-1.0.28/src/pcm/pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
RetroArch [ERROR] :: alsa_init :: ALSA: Failed to initialize...
RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
After setting up the default setting (setting directory paths, video settings etc) and saving config and exiting Retroarch, i get this message…
error: XDG_RUNTIME_DIR not set in the environment.
RetroArch [ERROR] :: gfx_ctx_wl_init :: Failed to connect to Wayland server.
sh: xdg-screensaver: not found
RetroArch [WARN] :: x11_suspend_screensaver :: Could not suspend screen saver.
ALSA lib /home/stephan/projects/openelec-5.0/build.OpenELEC-Generic.x86_64-4.95.2/alsa-lib-1.0.28/src/pcm/pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
RetroArch [ERROR] :: alsa_init :: ALSA: Failed to initialize...
RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
RetroArch [WARN] :: save_core_config :: Cannot infer new config path. Use current time.
When i select the Genesis Plus core and load a game (Alien 3) terminal reports…
RetroArch: rarch_log_libretro: [libretro INFO] :: Frontend supports RGB565 - will use that instead of XRGB1555.
RetroArch: rarch_log_libretro: [libretro INFO] :: Game Genie ROM should be located at: /storage/.xbmc/addons/emulator.retroarch/system/ggenie.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Action Replay (Pro) ROM should be located at: /storage/.xbmc/addons/emulator.retroarch/system/areplay.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Sonic & Knuckles (2 MB) ROM should be located at: /storage/.xbmc/addons/emulator.retroarch/system/sk.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Sonic & Knuckles UPMEM (256 KB) ROM should be located at: /storage/.xbmc/addons/emulator.retroarch/system/s2k.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD PAL BIOS should be located at: /storage/.xbmc/addons/emulator.retroarch/system/bios_CD_E.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Sega CD NTSC-U BIOS should be located at: /storage/.xbmc/addons/emulator.retroarch/system/bios_CD_U.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD NTSC-J BIOS should be located at: /storage/.xbmc/addons/emulator.retroarch/system/bios_CD_J.bin
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD PAL BRAM is located at: /storage/.xbmc/addons/emulator.retroarch/system/scd_E.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: Sega CD NTSC-U BRAM is located at: /storage/.xbmc/addons/emulator.retroarch/system/scd_U.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD NTSC-J BRAM is located at: /storage/.xbmc/addons/emulator.retroarch/system/scd_J.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: Mega CD RAM CART is located at: /storage/.xbmc/addons/emulator.retroarch/system/cart.brm
RetroArch: rarch_log_libretro: [libretro INFO] :: INFORMATION - Loading 524288 bytes ...
error: XDG_RUNTIME_DIR not set in the environment.
RetroArch [ERROR] :: gfx_ctx_wl_init :: Failed to connect to Wayland server.
sh: xdg-screensaver: not found
RetroArch [WARN] :: x11_suspend_screensaver :: Could not suspend screen saver.
ALSA lib /home/stephan/projects/openelec-5.0/build.OpenELEC-Generic.x86_64-4.95.2/alsa-lib-1.0.28/src/pcm/pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
RetroArch [ERROR] :: alsa_init :: ALSA: Failed to initialize...
RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
I am getting audio ‘clicks’ in the menu when navigation but when a game is loaded there is no audio at all.
Also if i load any shaders and select ‘apply’ then RetroArch closes and puts me back to OpenElec main menu.
Not sure if any of the info i have provided helps at all Lordashram!?. Thanks for all your hard work so far its really appreciate and hopefully we can get this beat so compiling updates in the future will be straight forward enough going forward from now on
Hi Lordashram,
Now I’m also running latest Openelec 5.0 Beta and I can confirm the latest version of Retroarch you posted works with sound. I suspect your audio settings could be wrong Blockaboots - try following some of the steps in this guide: http://goo.gl/jKDg4O
Applying shaders does indeed crash Retroarch, however applying video filters or audio filters doesn’t. I went back and tested your earlier version and that also crashed when applying shaders.
I have a verbose log below but I cannot seem to figure otr why retroarch crashes once a shader is applied: http://pastebin.com/6D3PvyY5
Yeah thats the guide i used in the past.
My hardware has always been device 7: HDMI 1 in the past so added “hw:7,1” for the Audio Device but no audio in games, strange that i can hear the menu audio in retroarch when select settings etc but nothing in a game.
And the terminal program i use to launch retroarch reports…
RetroArch [ERROR] :: alsa_init :: ALSA: Failed to initialize… RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
after i have launched retroarch
EDIT: Audio now working!. For some reason had to completely delete the emulator.retroarch folder and reinstall.
Also a heads up because ‘XBMC’ is no longer the name and its now called ‘KODI’ the “.xbmc” folder is now more and instaed its “.kodi” . Not sure if this effects the compiling of retroarch or not for OpenElec
EDIT2: Have noticed that the Playstation (Mednafen) core doesnt appear to be detecting the BIOS files. I have SCPH5500, SCPH5501 and SCPH5502 all placed in the Systems folder yet the core is saying they are missing when you look at the Core Information tab
So I’ve been working trying to use OpenElec’s toolchain to compile RetroArch to see if it would make any difference. I got RetroArch to compile and run after recompiling several of the libs for OE’s toolchain, but when I run RA I get the following:
RetroArch [ERROR] :: open_devices :: [udev] Failed to open device: /dev/input/event1 (Permission denied).
RetroArch [ERROR] :: open_devices :: [udev] Failed to open device: /dev/input/event3 (Permission denied).
RetroArch [ERROR] :: open_devices :: [udev] Failed to open device: /dev/input/mouse1 (Permission denied).
RetroArch [ERROR] :: open_devices :: [udev] Failed to open device: /dev/input/event2 (Permission denied).
RetroArch [ERROR] :: open_devices :: [udev] Failed to open device: /dev/input/mouse0 (Permission denied).
RetroArch [WARN] :: udev_input_init :: [udev]: Couldn't open any keyboard, mouse or touchpad. Are permissions set correctly for /dev/input/event*?
open: No such file or directory
RetroArch [ERROR] :: init_audio :: Failed to initialize audio driver. Will continue without audio.
If anyone wants to play around with it then it’s in the dropbox as retroarch.zip, it’s just the executable zipped up so you would need to rename your existing execualte before copying this.