RetroArch Switch

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by ShadowOne333, Dec 30, 2017.

  1. kevinbrew

    kevinbrew GBAtemp Fan

    Member
    4
    Nov 14, 2016
    Shame coz its a good feature to have. but it does work on some cores
     
    Last edited by kevinbrew, Jul 6, 2019
  2. notimp

    notimp GBAtemp Addict

    Member
    10
    Sep 18, 2007
    There are reports that pi4 runs dreamcast games fullspeed. I highly doubt that as well.

    Most likely cause currently - people who have no idea what they are talking about, talk about stuff.

    (Maybe the feature was disabled in a certain build, someone flipped a switch that did nothing and championed themselves for it. Just as one possibility.)

    The other possibility would be, that porting cores to the PI was done by people making sure all featuresets work - but I dont really believe that the Pi 4 would run run ahead for gba titles at a reasonable speed. I could be wrong. How sure are you, that it actually does. ;)
     
  3. SeongGino

    SeongGino The Average One

    Member
    6
    May 20, 2015
    United States
    Jersey, Jersey
    I realize this is getting off-topic so bear with me, and I can't speak for Dreamcast on the platform, but the Pi 4's CPU is at least in the ballpark of the Tegra X1's cores at base (2ghz) clocks. And GBA cores are super light on resources (the most accurate of which is made to run on a N3DS and PS Vita for frick's sake). Also consider that the RPi family has full official support from a dedicated team(s, when considering other devs like in the case of RetroPie) to maintain otherwise-upstream-compliant Linux cores for whatever the Pi is able to run. Therefore, it's far from unreasonable to say that it's capable of runahead on something like mGBA.

    A reminder that even the Xbox is capable of runahead.

    Compared to Switch anyways, where we don't even have the benefits of a stable filesystem in some cases (coughExFATcough) let alone fleshed out SDKs to make RetroArch work to its fullest potential - all you need to look at is Mupen and PPSSPP to see what I'm talking about (which work, but not without Switch-exclusive hitches where other platforms don't have these issues).

    In my personal and completely unprofessional opinion though, runahead ruins the authenticity of games so I'd rather not deal with the added overhead on a mobile device for the sake of chopping off single frames of perceived input latency.
     
    Last edited by SeongGino, Jul 6, 2019
  4. kevinbrew

    kevinbrew GBAtemp Fan

    Member
    4
    Nov 14, 2016
    i have just tried my pi 3 and run ahead works on gba. there is a setting that gets rid of the glitched up sound and its called "run ahead use second instance". and this is not an a available option on the switch. if it had this setting gba would work
     
  5. notimp

    notimp GBAtemp Addict

    Member
    10
    Sep 18, 2007
    Interesting. Thank you for testing.

    Runahead on other systems in RA usually was very performance heavy - as in not a thing for ARM based platforms at all. I wonder what changed...

    — Posts automatically merged - Please don't double post! —

    Thank you, I see that individual cores were specifically improved for use with runahead. Have to retest on a few arm based systems. :)
     
    Last edited by notimp, Jul 6, 2019
  6. kevinbrew

    kevinbrew GBAtemp Fan

    Member
    4
    Nov 14, 2016
    let me know how you get on
     
  7. notimp

    notimp GBAtemp Addict

    Member
    10
    Sep 18, 2007
    If you havent played with it - try Hard GPU sync and Frame delay first.
    see: https://forums.launchbox-app.com/topic/42744-how-do-i-fix-input-lag-on-controller/

    Just played with it on Retroarch on a PS Classic - and it worked wonders.

    (Less demanding PSX games -7(ms), more demanding PSX games -5(ms).)

    Just dont forget that you have it enabled. :)

    PS: You dont need vsync to be enabled for it to work (subjectively speaking). :)

    edit: Run ahead on PCSXRearmed on a PS Classic crashes as well. (Probably to be expected... ;) Have to try GBA and less demanding cores next (probably tomorrow)).

    edit2: Runahead still would be more beneficial.

    Math:
    60 fps -> 1 frame = 16 ms
    30 fps -> 1 frame = 33 ms
    -

    Lag testing on PCSXRearmed on a PS Classic shows 2 frames of lag (on Final Fantasy 8. :) )
    Lag testing according to the folks at libretro. Use a keyboard. Press P (which pauses the game), press and hold a direction button (f.e. in a menu), advance frame by frame with the k key. Stop on the first frame the direction input takes.

    Times k key pressed minus 1 = lag in frames. :)
    -

    edit: See also:

    (read video description, video not made by me)
     
    Last edited by notimp, Jul 6, 2019
  8. kevinbrew

    kevinbrew GBAtemp Fan

    Member
    4
    Nov 14, 2016
    Thanks for the follow up. am playing with the hard GPU Sync but i cant get rid of the two frames of lag no matter what the frame delay number is. Tested on switch
     
    Last edited by kevinbrew, Jul 6, 2019
  9. Josshy0125

    Josshy0125 GBAtemp Regular

    Member
    2
    Jun 16, 2019
    United Kingdom
    Can someone help me find this option? I've looked for days and cant find it.

    Or does anyone else have any ideas on how to make the snow area on Majoras mask not stutter and slow down?
     
  10. stick267

    stick267 GBAtemp Advanced Fan

    Member
    4
    Dec 17, 2018
    United States
    It’ll be full speed if you turn framebuffer emulation off. But the Lens of Truth won’t work.
     
  11. Josshy0125

    Josshy0125 GBAtemp Regular

    Member
    2
    Jun 16, 2019
    United Kingdom
    Thanks! I actually just found rhe settings other guy was talking about and not only does it run full speed now, but the lens of truth works also. Thank you though!
     
    ShadowOne333 and stick267 like this.
  12. notimp

    notimp GBAtemp Addict

    Member
    10
    Sep 18, 2007
    Yes me too (on a different system) if you look above, one frame is more than 15ms (the most you get out of the frame delay setting (theoretically)), so runahead would still be more beneficial.

    Nevertheless, the setting reduces lag.
    --

    Doing the pause, and k thing to look at frame delay - removes the display lag from the occasion. In reality its still there though and might be the biggest source of latency, So if you are playing docked - use game mode, stuff like that. :)

    On 5ms lag reduction through frame delay I dont feel any difference, on 7ms I subjectively do.

    That said, my OLED adds 22ms even in game mode (96ms in a non game mode), and 2 frames on a 60fps game is still 33ms. So minimal lag in that instance would still be 55ms. (88ms in case the game tested lagging 2 frames would be a 30fps game.)

    Now - some of this comes from your controller. If you are using a wireless one - see: https://old.reddit.com/r/NintendoSw..._did_a_simple_input_lag_test_with_the_8bitdo/

    so another 10-30 ms of the figure above might be uncombatable 'in emulation'. :) Same withe the display lag your TV adds.

    Just to give you a frame of reference. Where the 5-15ms delay reduction of frame delay stands in comparison to the entire chain.

    Turning off vsync helps as well. Theoretically and in subjective testing yesterday.
     
    Last edited by notimp, Jul 7, 2019
  13. kevinbrew

    kevinbrew GBAtemp Fan

    Member
    4
    Nov 14, 2016
    wow you really have gone deep into the matter, thankyou much apreciated:).
    ive taken what you said into consideration.
    The runahead feature is not working as well as i thought on pi 3 but on pi 4 someone done a test https://www.libretro.com/index.php/retroarch-runahead-and-raspberry-pi-4-the-results-are-in/
    so the run ahead is not that cpu heavy. but these are the less demanding cores.
    note that the 2 instances is not an option on the switch as its not been implemented
     
    Last edited by kevinbrew, Jul 7, 2019
    notimp likes this.
  14. Dabman

    Dabman Member

    Newcomer
    1
    Dec 11, 2016
    Poland
    Hei. I can not run any Mame game.
    I have zip archive (inside alot .bin files) after loading game RA kicked me to "gallery".

    I try all Mame cores, same result.
    My game library
    [​IMG]
     
  15. ShadowOne333
    OP

    ShadowOne333 GBAtemp Guru

    Member
    18
    Jan 17, 2013
    Mexico
    Glad it's working great now :)
     
    sorabora likes this.
  16. Dichotomy754

    Dichotomy754 GBAtemp Regular

    Member
    3
    Nov 11, 2018
    United States
    All this talk about the run ahead setting made me realize that was what's been making my n64 games run like garbage. Disabled and now I'm finally running full speed, I am a happy camper.
     
    Mouser X and Josshy0125 like this.
  17. Josshy0125

    Josshy0125 GBAtemp Regular

    Member
    2
    Jun 16, 2019
    United Kingdom
    Thank you! You da man! :)
     
    ShadowOne333 likes this.
  18. ploggy

    ploggy WAKA! WAKA!

    Member
    13
    Aug 29, 2007
    United Kingdom
    Ok I was wrong it DOES work :P
    You have set "User 2 Device index" in User 2 Binds to "Switch Controller (#1)" and make sure left/right on p2's left analog stick is set to left/right on p1's right analog stick.
     
    lordelan and ShadowOne333 like this.
  19. EmulateLife

    EmulateLife GBAtemp Addict

    Member
    4
    May 30, 2016
    United States
    Tekken Tag Tournament works on Switch?

    Edit: No, it's doesn't. This is why you're having problems you need MAME 2003 (MAME 0.78) roms. You can't just use any roms you need them to match the version of MAME.
     
    Last edited by EmulateLife, Jul 7, 2019
  20. Dichotomy754

    Dichotomy754 GBAtemp Regular

    Member
    3
    Nov 11, 2018
    United States
    Yup, working here too. It's pretty cool. Don't forget to unmap the C keys and map C- to something else though (I went with X). That way it doesn't zoom when you tilt up or down and you can still zoom when you need to (flying cap etc.)
     
    Last edited by Dichotomy754, Jul 8, 2019
    lordelan and ploggy like this.
Loading...