RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Retroarch 1.7.5 causing FPS drops for CPS 3 games

    Scheduled Pinned Locked Moved Help and Support
    cps3retroarch 1.7.5
    37 Posts 8 Posters 9.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DarksaviorD
      Darksavior
      last edited by Darksavior

      My pi3b+ underclocked to 1200 (for this test with SF3) was getting dips as low as 57fps for a fully updated retropie 4.4 with binaries of lr-fbalpha and Retroarch 1.7.5. No change when using 1.7.3.

      I dug out my original pi3 to re-test. Official Retropie 4.4 stock image. No updates. Stock speeds with crtpi shader at 1080p output res.SF3 Third Strike.

      Included binaries of lr-fbalpha 2.97.42 with Retroarch 1.7.1:
      60fps some of the time with dips as low as 59.5-59.7fps some of the time.

      lr-fbalpha 2.97.42 with Retroarch 1.7.5:
      60fps most of the time with dips as low as 59.7 maybe once or twice per round. Performs better.

      Updated binary of lr-fbalpha 2.97.43 with Retroarch 1.7.5:
      Bingo. 55-58fps. Scratchy audio. It's the emulator. Maybe @barbudreadmon can shed a light at the situation.

      RedBatmanR 1 Reply Last reply Reply Quote 0
      • RedBatmanR
        RedBatman @Darksavior
        last edited by

        @Darksavior said in Retroarch 1.7.5 causing FPS drops for CPS 3 games:

        My pi3b+ underclocked to 1200 (for this test with SF3) was getting dips as low as 57fps for a fully updated retropie 4.4 with binaries of lr-fbalpha and Retroarch 1.7.5. No change when using 1.7.3.

        I dug out my original pi3 to re-test. Official Retropie 4.4 stock image. No updates. Stock speeds with crtpi shader at 1080p output res.SF3 Third Strike.

        Included binaries of lr-fbalpha 2.97.42 with Retroarch 1.7.1:
        60fps some of the time with dips as low as 59.5-59.7fps some of the time.

        lr-fbalpha 2.97.42 with Retroarch 1.7.5:
        60fps most of the time with dips as low as 59.7 maybe once or twice per round. Performs better.

        Updated binary of lr-fbalpha 2.97.43 with Retroarch 1.7.5:
        Bingo. 55-58fps. Scratchy audio. It's the emulator. Maybe @barbudreadmon can shed a light at the situation.

        Pretty much my situation, don't know why the audio gets so bad.

        DarksaviorD 1 Reply Last reply Reply Quote 0
        • DarksaviorD
          Darksavior @RedBatman
          last edited by Darksavior

          @RedBatman If fps drops below 60 in any game then expect scratchy audio. The situation is the performance of fba, with at least the cps3 driver, got a huge slowdown with the latest version.

          1 Reply Last reply Reply Quote 0
          • RedBatmanR
            RedBatman
            last edited by

            Hmm so is there any way to roll back the update or is there going to be a fix eventually? CPS3 are some of my favorite arcade games.

            DarksaviorD UDb23U 2 Replies Last reply Reply Quote 0
            • DarksaviorD
              Darksavior @RedBatman
              last edited by Darksavior

              @RedBatman No idea if it'll be fixed. Post the issue on fba's github. You can extract .42 from the official premade image.

              1 Reply Last reply Reply Quote 0
              • G
                grant2258 Banned
                last edited by

                When an emulator improves sometimes it comes with a cost of speed. Other times its speed up hacks accidentally removed. Retropie runs on more than a pi.

                If this problems exists on more powerful machines it would be a problem at that point.

                DarksaviorD 1 Reply Last reply Reply Quote 0
                • RedBatmanR
                  RedBatman
                  last edited by

                  Hi I just wanted to say I found a fix. I downloaded Ir-fba-alpha2012. Once I used this my CPS3 games were back to 60fps with no audio stutters or anything. So just to let this be known that if FBA 2.97.43 ever gets fixed again or its still causing issues then FBA 2012 is now needed for CPS3 games now for raspberry pi users.

                  1 Reply Last reply Reply Quote 0
                  • DarksaviorD
                    Darksavior @grant2258
                    last edited by

                    @grant2258 Yes, that's what I experienced with the 4player Konami games. I need to use fba2012 for my pi2 (when I was using it). Still, I'd like a definitive answer if the cps3 problem is a mistake, or just emulation accuracy making it slower.

                    1 Reply Last reply Reply Quote 0
                    • G
                      grant2258 Banned
                      last edited by

                      I only use that core havent looked at the code base to be honest just check the history in the cps3 driver in github to see the recent changes here.

                      https://github.com/libretro/fbalpha/commits/master/src/burn/drv/cps3/cps3run.cpp

                      1 Reply Last reply Reply Quote 0
                      • G
                        grant2258 Banned
                        last edited by

                        you could try revert d313472bf07332ee429a80f906252dca348975e5 commit compile and see how it runs

                        https://github.com/libretro/fbalpha/commit/d313472bf07332ee429a80f906252dca348975e5#diff-d51bfb6a692321f4224209e955b76d48

                        DarksaviorD RedBatmanR 2 Replies Last reply Reply Quote 0
                        • DarksaviorD
                          Darksavior @grant2258
                          last edited by

                          @grant2258 No idea how to do that.

                          1 Reply Last reply Reply Quote 0
                          • RedBatmanR
                            RedBatman @grant2258
                            last edited by

                            @grant2258 said in Retroarch 1.7.5 causing FPS drops for CPS 3 games:

                            you could try revert d313472bf07332ee429a80f906252dca348975e5 commit compile and see how it runs

                            https://github.com/libretro/fbalpha/commit/d313472bf07332ee429a80f906252dca348975e5#diff-d51bfb6a692321f4224209e955b76d48

                            I don't know how to do that either. But if FBA 2012 works good still then I'm fine with it, just as long as the current fba doesn't get any worse.

                            1 Reply Last reply Reply Quote 0
                            • D
                              DarishZone Banned
                              last edited by

                              There's a way to revert to an older version of Retroarch?

                              1 Reply Last reply Reply Quote 0
                              • UDb23U
                                UDb23 @RedBatman
                                last edited by

                                @RedBatman A new version is available. Is the issue still there ?

                                1 Reply Last reply Reply Quote 0
                                • DarksaviorD
                                  Darksavior
                                  last edited by Darksavior

                                  I retested using lr-fbalpha 2.97.44 from source. No change. To compare the differences to .42, using my pi3b+ overclocked to 1450, it runs as fast as a stock pi3 non + used to run at which is 60fps most of the time with dips of ~59.5-.7.

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    barbudreadmon
                                    last edited by

                                    Ok, i didn't know about the speed regression. There was indeed a huge CPS3 patch a few weeks ago to fix some bugs (it was mostly for jojoba actually, until very recently the combo meter in this game wasn't working properly in any emulator, see https://mamedev.emulab.it/haze/2018/10/02/little-changes-part-2/ for the news). I'll look if something can be done about it, however i won't revert a fixed code to a buggy code, as far as i understand this bug is not even happening if you own a rpi3b+ or if you overclock your rpi3...

                                    FBNeo developer - github - forum

                                    DarksaviorD 1 Reply Last reply Reply Quote 1
                                    • DarksaviorD
                                      Darksavior @barbudreadmon
                                      last edited by Darksavior

                                      Pi3b nonplus at 1300 with SF3:
                                      .44 from source using default compile: Supers drop to ~58.x fps.
                                      .44 from source using altered compile settings: Supers drop to ~59.xfps.

                                      I believe this is the part that helps but I'll post the patches link for system.sh. I basically added all the green text and removed the red text. I replaced -O2 with -O3. YMMV. Supposedly -O3 " there's known issues in GCC 6.3.0 with some of the optimizations it enables."
                                      + __default_cflags="-O3 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations -funroll-loops -funswitch-loops"

                                      https://gist.github.com/GrieverV/b3d1a8e2c23c295b802f9e33286437c6

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        barbudreadmon @Darksavior
                                        last edited by barbudreadmon

                                        @Darksavior except if retropie build script is totally ignoring my fbalpha makefile, i think the relevant part in what you wrote is -funroll-loops -funswitch-loops :

                                        • -ftree-vectorize is included in -O3, which is the fbalpha default
                                        • afaik -funsafe-math-optimizations should only have an impact on games using a lot of arythmetic function, it shouldn't be the case for cps3 (on a sidenote, raiden2 uses them a lot)

                                        Thanks for the information, i'll do some tests and if those flags are interesting speed-wise, i'll add them to default fbalpha cflags.

                                        Edit : actually -funswitch-loops is also part of -O3, meaning only -funroll-loops is relevant.
                                        Edit2 : i've been thinking for some time that this change is the culprit, so having a speedup with -funroll-loops makes a lot of sense actually.

                                        FBNeo developer - github - forum

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          barbudreadmon
                                          last edited by

                                          Do you guys have rewind disabled for cps3 ? While it was kinda ok to let it enabled previously, recent updates won't allow it anymore speedwise.

                                          FBNeo developer - github - forum

                                          DarksaviorD 1 Reply Last reply Reply Quote 0
                                          • DarksaviorD
                                            Darksavior @barbudreadmon
                                            last edited by Darksavior

                                            @barbudreadmon It's disabled by default so it's not enabled for me.

                                            B 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.