FBA new core option
-
@voljega I was just mentioning the first ones from my list which have some kind of input problems. And as I said before, I'm not certain that all those were directly related to the input handling, but some for sure. I can't differentiate the root of the problem
-
@voljega not really different issues, most of them were missing inputs because the old input handling was hard to maintain, i rewrote it.
What we were doing before :
- Compare button's display name with a list of 305 display name we indexed
- Use the first one matching, adapt it through core option
- If no match, skip the button
What we are doing now :
- Use the button's normalized name, there is around twenty of them, and, unlike display names, they are programatically understandable.
- Get the number of "fire" button (= buttons used in gameplay) used in the game, if lesser than or equal to 4 "fire" button tell if it is a neogeo game or not, if greater than 4 "fire" button tell if it is a street fighter or not
- Use a different mapping for each of those 4 cases, adapt it through core option
NB : I didn't debug the analog inputs yet, but that's a different issue.
-
@barbudreadmon Cool ! I'll retest everything not working when it's released then
-
@voljega It is released, but not in recalbox's makefile yet, you can still build and use it the "normal" way :
git clone https://github.com/libretro/fbalpha.git
cd fbalpha/
make -f makefile.libretro platform=rpi2Then you would have to update your es_systems.cfg file with the path to the "fbalpha_libretro.so" you just built
Since recalbox is "readonly", i suppose you have to remount your filesystem in read/write mode first :
mount -o remount,rw /There are still a few games that segfault because of dipswitch, that's the next thing i want to solve.
-
@barbudreadmon I having the following errors with Ubuntu 16.04 32-bit::
paradadf@paradadf-pc:~/fbalpha$ make -f makefile.libretro platform=rpi2 cc -DARM -O2 -DNDEBUG -fPIC -Wno-write-strings -D__LIBRETRO__ -DLSB_FIRST -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math -DINLINE="static inline" -DSH2_INLINE="static inline" -D__LIBRETRO_OPTIMIZATIONS__ -DUSE_SPEEDHACKS -DFRONTEND_SUPPORTS_RGB565 -Isrc/burner/win32 -Isrc/burner/libretro -Isrc/burner/libretro/tchar -Isrc/burn -Isrc/cpu -Isrc/burn/snd -Isrc/burn/devices -Isrc/intf -Isrc/intf/input -Isrc/intf/cd -Isrc/intf/audio -Isrc/burner -Isrc/cpu -Isrc/cpu/i8039 -Isrc/cpu/i8051 -Isrc/dep/libs/zlib -Isrc/burn/drv/capcom -Isrc/burn/drv/konami -Isrc/burn/drv/dataeast -Isrc/burn/drv/cave -Isrc/burn/drv/neogeo -Isrc/burn/drv/psikyo -Isrc/burn/drv/sega -Isrc/burn/drv/toaplan -Isrc/burn/drv/taito -Isrc/dep/generated -Isrc/dep/libs -c src/burner/unzip.c -o src/burner/unzip.o cc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead cc: error: unrecognized command line option ‘-marm’ cc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’ cc: error: unrecognized command line option ‘-mfloat-abi=hard’ makefile.libretro:585: recipe for target 'src/burner/unzip.o' failed make: *** [src/burner/unzip.o] Error 1
I suppose, I would need to make some modifications in order to cross compile, but that's beyond my skills XD
-
@paradadf Because ubuntu 16.04 uses gcc-6.X by default and fba is not yet compatible with gcc-6.X , try this :
CC="gcc-5.4" CXX="g++-5.4" make -f makefile.libretro platform=rpi2If it complains about missing gcc/g++ 5.4, try this first :
sudo apt-get install gcc-5.4 g++-5.4 -
@barbudreadmon still nothing :S
paradadf@paradadf-pc:~/fbalpha$ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. paradadf@paradadf-pc:~/fbalpha$ g++ --version g++ (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. paradadf@paradadf-pc:~/fbalpha$ CC="gcc-5.4" CXX="g++-5.4" make -f makefile.libretro platform=rpi2 gcc-5.4 -DARM -O2 -DNDEBUG -fPIC -Wno-write-strings -D__LIBRETRO__ -DLSB_FIRST -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -ffast-math -DINLINE="static inline" -DSH2_INLINE="static inline" -D__LIBRETRO_OPTIMIZATIONS__ -DUSE_SPEEDHACKS -DFRONTEND_SUPPORTS_RGB565 -Isrc/burner/win32 -Isrc/burner/libretro -Isrc/burner/libretro/tchar -Isrc/burn -Isrc/cpu -Isrc/burn/snd -Isrc/burn/devices -Isrc/intf -Isrc/intf/input -Isrc/intf/cd -Isrc/intf/audio -Isrc/burner -Isrc/cpu -Isrc/cpu/i8039 -Isrc/cpu/i8051 -Isrc/dep/libs/zlib -Isrc/burn/drv/capcom -Isrc/burn/drv/konami -Isrc/burn/drv/dataeast -Isrc/burn/drv/cave -Isrc/burn/drv/neogeo -Isrc/burn/drv/psikyo -Isrc/burn/drv/sega -Isrc/burn/drv/toaplan -Isrc/burn/drv/taito -Isrc/dep/generated -Isrc/dep/libs -c src/burner/unzip.c -o src/burner/unzip.o /bin/sh: 1: gcc-5.4: not found makefile.libretro:585: recipe for target 'src/burner/unzip.o' failed make: *** [src/burner/unzip.o] Error 127
-
@paradadf Hmmm try with :
CC="gcc" CXX="g++" make -f makefile.libretro platform=rpi2 -
@barbudreadmon I get the first error again. But don't worry, I'll wait until recalbox gets updated to finish the list. Thank you!
-
@paradadf you can't compile the core without using buildroot. You'd just need to update the commit id of the .mk then
make libretro-fba-dirclean && make libretro-fba
from the root of the recalbox-buildroot repoAnd we still need to improve the handling of some specific platforms, as said on one of your PR
-
@barbudreadmon said in FBA new core option:
@gkralicek2 what about v0.2.97.36 ? "The killing blade Plus" performs around 57-60fps for me with v0.2.97.36, and my OC is lower. What's more, unlike porting v0.2.97.30/34 code to current fba, porting v0.2.97.36 code to current fba is something within my skills.
0.2.97.36 is indeed a tad better on "Killing Blade Plus" than 0.2.97.37 or 0.2.97.38 but still slower on "Spectral vs Generations" than 0.2.97.34 or .30 (the latter being the quickest of all).
Something has been changed to the FBA code after version 0.2.97.34 that has impacted the performances of PGM support in a negative way, but i don't know what exactly :=(
Could it be that early versions of FBA with PGM support were using some kind of "performance mode" vs "conservative mode" in the most recent releases (a bit like it is the case with SH2 support and the Fast vs Accurate mode) ? -
well ... i'll have to investigate much closer on the platform we specify to the makefile because ... ashamed ... for now ... we just specify amrvX and eventually cortexaN ... which means we never reach the rpi2 and even rpi3 platform ... which means no neon optimization ... sob
-
@subs the fba cores that I give to @acris for testing are already built with rpi3 platform. I reworked the package. I didn't see any significant boost.
-
@subs said in FBA new core option:
well ... i'll have to investigate much closer on the platform we specify to the makefile because ... ashamed ... for now ... we just specify amrvX and eventually cortexaN ... which means we never reach the rpi2 and even rpi3 platform ... which means no neon optimization ... sob
There is no neon optimization in fba, this is a windows program written for x86, adding neon optimization would probably help with performance, but is beyond my skill.
@gkralicek2 said in FBA new core option:
@barbudreadmon said in FBA new core option:
@gkralicek2 what about v0.2.97.36 ? "The killing blade Plus" performs around 57-60fps for me with v0.2.97.36, and my OC is lower. What's more, unlike porting v0.2.97.30/34 code to current fba, porting v0.2.97.36 code to current fba is something within my skills.
0.2.97.36 is indeed a tad better on "Killing Blade Plus" than 0.2.97.37 or 0.2.97.38 but still slower on "Spectral vs Generations" than 0.2.97.34 or .30 (the latter being the quickest of all).
Something has been changed to the FBA code after version 0.2.97.34 that has impacted the performances of PGM support in a negative way, but i don't know what exactly :=(
Could it be that early versions of FBA with PGM support were using some kind of "performance mode" vs "conservative mode" in the most recent releases (a bit like it is the case with SH2 support and the Fast vs Accurate mode) ?That's just the result of fixing issues and adding new games to the pgm driver every few releases, emulation become more accurate, so more resources is needed. I'll give a try to porting v0.2.97.30-34 code to current fba when i have some time, but don't expect too much
-
My latest commit seems to increase fps in m68k games, it's still not enough to run Killing Blade Plus and Spectral vs Generation at full speed for me, but i still gained around 10 fps.
-
@barbudreadmon compiled for pi3 :
- in SVG, can't quit the training mode with the START + A or B. Runs between 45 and 54 fps during combat
- Killing blande plus : even the PGM logo stutters, but the average ingame fps is higher than 50, say around 54
-
Also, there are still some games with bad/missing input (i'm not talking about analog issues), those have exotic input setup (seems to be mostly twin stick games). It would be nice to report any you find there : https://github.com/libretro/fbalpha/issues/102
-
@subs said in FBA new core option:
@barbudreadmon compiled for pi3 :
- in SVG, can't quit the training mode with the START + A or B.
Works fine with A as the right button, and B as the bottom button .
Sounds to me like you are using "start" as the hotkey for retroarch, you don't want to do that, it mess up with game controls.
NB : you don't "leave" training with those shortcut, you return to character select with start+a, and you restart match with start+b -
@barbudreadmon Do you think you might have time to implement a button mapping in FBA core in order to handle gun rotation in games like Midnight Resistance (in the real arcade game there was a rotative paddle to allow changing the angle of the gun while shooting which is not mapped on the current version of FBA Libretro).
Thanks very much for your time and effort to improve the FBA Core anyway ! -
@gkralicek2 you can press A + D-pad to rotate on Midnight Resistance (assuming you are using fba 0.2.97.39, which will be used in recalbox v4.1)