• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Is Yabasanshiro emulator coming on retropie?

Scheduled Pinned Locked Moved Help and Support
sega saturnemulator
362 Posts 37 Posters 385.7k 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.
  • G
    grant2258 Banned @acidtech
    last edited by 18 Jun 2020, 21:47

    @acidtech said in Is Yabasanshiro emulator coming on retropie?:

    nt2258 Yes, SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);

    nice one I dont have a pi 4 to test with glad it opens up the retro arena port! the diff buzz posted for the shader patch is here. https://github.com/devmiyax/yabause/issues/737 This is the only viable option for this emulator without qt since retroarch support is withdrawn.

    A 1 Reply Last reply 19 Jun 2020, 19:19 Reply Quote 0
    • A
      acidtech @grant2258
      last edited by 19 Jun 2020, 19:19

      @grant2258 With the shader patch Sega Rally is running without errors. A few slow downs on the first track but full speed otherwise it appears(didnt have FPS showing). Not overclocked in nay way. So a good starting point I think.

      1 Reply Last reply Reply Quote 1
      • M
        myzar
        last edited by 20 Jun 2020, 10:35

        I confirm that the retro-arena build indeed works adding that ,no qt deps crap and no xserver needed and plus it gets the input from retropie and you can quit without a keyboard , i use the rpi4 in a cab

        Very good finding @acidtech and thx @grant2258 for the gles workaround

        P M 2 Replies Last reply 20 Jun 2020, 11:38 Reply Quote 1
        • P
          pjft @myzar
          last edited by 20 Jun 2020, 11:38

          Thanks for the update!

          @myzar would it be too much trouble to ask you for the binary and new runcommand string? :)

          1 Reply Last reply Reply Quote 0
          • M
            myzar
            last edited by 20 Jun 2020, 14:06

            @pjft no trouble

            https://mega.nz/file/qxkQmS4S#t0gGCquEGOQM9NqJWFCPkFqFJZO4UNROzjRKeorE7gQ

            for the command line

            yabasanshiro-sdl = "/opt/retropie/emulators/yabasanshiro/yabasanshiro-sdl %ROM%"

            for the options you can use look here

            https://github.com/devmiyax/yabause/tree/master/yabause/src/retro_arena

            1 Reply Last reply Reply Quote 1
            • P
              pjft
              last edited by pjft 20 Jun 2020, 14:35

              @myzar Thank you very much! I'll try it out during the weekend. Any noticeable performance changes?

              Actually, a question: I'm getting a few errors, even after installing the dependencies.

              File not found: 
              Cannot initialize ISO-File Virtual Drive
              Cannot initialize Game
              Preference: opening /home/pi/.yabasanshiro/.config
              Preference: fail to getInt Aspect rate
              message: [json.exception.type_error.305] cannot use operator[] with number
              exception id: 305
              

              so I must be missing something around here. The games don't boot, and the emulator just gets stuck in a black screen.

              I suspect it might be a file path thing somewhere - any clues, or did it just work straight off the bat for you?

              Thanks.

              M 1 Reply Last reply 20 Jun 2020, 16:17 Reply Quote 0
              • M
                myzar @pjft
                last edited by myzar 20 Jun 2020, 16:17

                @pjft my bad i have missed -i

                the right string is

                yabasanshiro-sdl = "/opt/retropie/emulators/yabasanshiro/yabasanshiro-sdl -i %ROM%"

                performace seems the same but this is a lot easier to build and does not need xserver and qt

                1 Reply Last reply Reply Quote 1
                • R
                  roslof
                  last edited by roslof 20 Jun 2020, 18:16

                  This is nice. Thank you for providing, @myzar

                  It looks like game-specific configurations are generated in /root/.yabasanshiro. Very nice, and unexpected.

                  Tips for Pi4B:
                  Tap "ESC" on keyboard to bring up Yaba Sanshiro Menu (instead of Ctrl-S from xserver build)
                  From Menu, set resolution to "Original" (defaults to Native, which is higher-res and too slow for Pi4B)
                  Controls are easy to change with this menu.

                  Not sure if saturn_bios.bin can be used. Tried the old command-line argument for this, but seems to always use RLE bios. Would help with compatibility for some games.

                  P 1 Reply Last reply 20 Jun 2020, 18:33 Reply Quote 1
                  • P
                    pjft @roslof
                    last edited by 20 Jun 2020, 18:33

                    @roslof there's a -b flag, worst case we can have two entries in runcommand, one for HLE and one for BIOS.

                    R 1 Reply Last reply 20 Jun 2020, 18:34 Reply Quote 0
                    • R
                      roslof @pjft
                      last edited by 20 Jun 2020, 18:34

                      @pjft right with you. Trying to setup two emulators for -sdl.

                      R 1 Reply Last reply 20 Jun 2020, 21:28 Reply Quote 1
                      • R
                        roslof @roslof
                        last edited by roslof 20 Jun 2020, 21:28

                        When running the RetroArena build, has anybody else noticed:

                        [message: json.exception.type_error.305] cannot use operator[] with number
                        exception id: 305
                        

                        When I launch via command-line, I can move beyond the error and play. But when I launch via runcommand, I exit. I've been spending the last few hours investigating the syntax of keymapv2.json and the configuration file I'm using to test Sega Rally Championship.

                        Currently look like:

                        https://pastebin.com/uknjfsnj (/root/.yabasanshiro/keymapv2.json)
                        https://pastebin.com/qrf8R2hU (/root/.yabasanshiro/Sega Rally Championship.chd.config)

                        When runcommand crashes, the error is different (weird)...

                        Added known joystick Sony Interactive Entertainment Wireless Controller (instance ID: 0, device index: 0)
                        Added known joystick Sony Interactive Entertainment Wireless Controller (instance ID: 1, device index: 1)
                        terminate called after throwing an instance of 'nlohmann::detail::invalid_iterator'
                          what():  [json.exception.invalid_iterator.212] cannot compare iterators of different containers
                        
                        1 Reply Last reply Reply Quote 0
                        • M
                          myzar
                          last edited by myzar 20 Jun 2020, 21:37

                          @roslof what happens if you delete both ? this port uses ~/.emulationstation/es_temporaryinput.cfg if keymapv2.json is not present

                          1 Reply Last reply Reply Quote 0
                          • R
                            roslof
                            last edited by 20 Jun 2020, 21:51

                            @myzar when I delete those files, then launch yabasanshiro-sh from /opt/retropie/emulators/yabasanshiro, it rebuilds the files, but not in a good way:

                            keymapv2.json (all non-axis lines look like this):

                            "id": -1
                            "type": "",
                            "value": "-999"

                            Sega Rally Championship.chd.config everything references "null":

                            "Aspect rate": null,
                            "Resolution": null,
                            "Rotate screen": null,
                            "Rotate screen resolution": null,
                            "Use compute shader": null

                            R 1 Reply Last reply 20 Jun 2020, 22:45 Reply Quote 0
                            • R
                              roslof @roslof
                              last edited by roslof 20 Jun 2020, 22:45

                              I think I figured this out.

                              I believe running from the command-line generates files at /root/.yabasanshiro/
                              ...and running from runcommand generates files at ~/.yabasanshiro

                              Was wrestling with two separate sets of configs...

                              keymapv2.json in ~/.yabasanshiro was properly generated from es_temporaryinput.cfg
                              keymapv2.json in root/.yabasanshiro is junk

                              For game configuration files, both directories generate "null" for each setting. I suppose this is fine. Can use command-line arguments to set parameters.

                              1 Reply Last reply Reply Quote 0
                              • R
                                roslof
                                last edited by 20 Jun 2020, 23:22

                                All set... Going to use these four (4) settings that consider RLE vs. real BIOS and original res vs. native res:

                                yabasanshiro-sdl = "/opt/retropie/emulators/yabasanshiro/yabasanshiro-sdl -r 3 -i %ROM%"
                                yabasanshiro-sdl-native-res = "/opt/retropie/emulators/yabasanshiro/yabasanshiro-sdl -r 0 -i %ROM%"
                                yabasanshiro-sdl-saturn_bios = "/opt/retropie/emulators/yabasanshiro/yabasanshiro-sdl -b /home/pi/RetroPie/BIOS/saturn_bios.bin -r 3 -i %ROM%"
                                yabasanshiro-sdl-saturn_bios-native-res = "/opt/retropie/emulators/yabasanshiro/yabasanshiro-sdl -b /home/pi/RetroPie/BIOS/saturn_bios.bin -r 0 -i %ROM%"
                                
                                1 Reply Last reply Reply Quote 0
                                • A
                                  acidtech
                                  last edited by acidtech 21 Jun 2020, 02:10

                                  Been playing around with the YabasueEmulate function. It's pretty much the core of the emulator. Anyone else here trying to improve performance?

                                  After moving some of the execution order around some it seems it doesn't matter if SH2Exec(MSH2 executes before or after the SSH2. If that is the case why aren't these threaded to run concurrently?

                                  I dug a little into them and I don't see any big hold ups. I suspect in some cases there may be a syncing issue but in those cases there is no work around anyway so who cares?

                                  I did some rough profiling and while running the intro of Sega Rally(used it for consistency) I saw about 10 to 20ms of processing time for the master and the slave(so 20 to 40ms total time per frame combined).

                                  I also checked the RPi cpu usage. Core 4 is pegged at 100% and cores 1 thru 3 average around 50% or less(using lowest graphics settings).

                                  Does anyone know any reason this absolutely cant be done? I'm planning on starting work on it unless I get a real good answer as to why it wont.

                                  D B 2 Replies Last reply 21 Jun 2020, 10:51 Reply Quote 0
                                  • D
                                    dankcushions Global Moderator @acidtech
                                    last edited by 21 Jun 2020, 10:51

                                    @acidtech i think you should raise an issue at the github - devyimax is the only active developer: https://github.com/devmiyax/yabause/

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      barbudreadmon @acidtech
                                      last edited by 21 Jun 2020, 13:06

                                      @acidtech said in Is Yabasanshiro emulator coming on retropie?:

                                      If that is the case why aren't these threaded to run concurrently?

                                      fwiw, we tried this in the kronos emulator not long ago, on desktop there was no performance benefits, it was actually slower because of all the syncing.

                                      FBNeo developer - github - forum

                                      1 Reply Last reply Reply Quote 1
                                      • M
                                        mechafatnick @myzar
                                        last edited by 22 Jun 2020, 06:22

                                        @myzar Sorry for being dim, but how do you quit the Retro-Arena build without a keyboard?

                                        R 1 Reply Last reply 22 Jun 2020, 06:59 Reply Quote 0
                                        • R
                                          roslof @mechafatnick
                                          last edited by 22 Jun 2020, 06:59

                                          @mechafatnick I'm awake, so jumping in.
                                          The select button on the gamepad should be auto-mapped to the Yabasanshiro menu. Then you can select Quit.

                                          M 1 Reply Last reply 22 Jun 2020, 07:13 Reply Quote 1
                                          288 out of 362
                                          • First post
                                            288/362
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received