Discussion Play! PS2 Emulator is running on the Nintendo Switch!

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by uyjulian, May 15, 2019.

  1. TheMrIron2

    TheMrIron2 GBAtemp Regular

    Member
    5
    Aug 5, 2017
    Ireland
    I would say it's quite feasible to get PS2 games running faster than this on the Switch. A friend of mine got an early PCSX2 build running on the original Xbox at a little over 10FPS, using a special profile-optimised dynarec (for any developers: -fprofile-generate) and hardware acceleration just like on a PC. If - and this is a big "if" - Play! or a similar PS2 emulator gets GPU acceleration on Switch and, in the case of Play! or a less mature emulator, the program becomes faster/cleaner/more optimised, it would not be inconceivable to imagine some games reaching playable speeds on Switch.

    As for walking proof of this -- while the PS3's PS2 software emulator is hardly perfect, it runs a lot of games very well, and while you can get into circular discussions about whether the PS3 or Switch is ultimately more "powerful" (the Switch is.. sort of, but that's a completely different discussion) you can't deny they are not out of each other's leagues and if it's possible on one machine, it should be possible on the other.
     
    Natehaxx likes this.
  2. Natehaxx

    Natehaxx GBAtemp Maniac

    Member
    9
    Jul 26, 2017
    Eritrea
    I was trying to build play last year but failed good that you done it, somebody need to try pcsx2 with qemu

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

    Many people called me an idiot when I told them the switch will emulate the ps2 and now it's happening
     
    burt111 likes this.
  3. TheMrIron2

    TheMrIron2 GBAtemp Regular

    Member
    5
    Aug 5, 2017
    Ireland
    Honestly, I think it was almost inevitable that someone was going to do it eventually, what with Play! being so portable that one of the developers straight up told people on discord that he could get it working within a weekend. It compiles all the dependencies for the target platform if they don't already exist and is completely modular; the "porting" process would mostly be a series of tweaks to suit the Switch's audio, input etc.
     
    Natehaxx likes this.
  4. Memoir

    Memoir Just a Memory

    Member
    19
    Jun 24, 2007
    United States
    Somewhere, over there!
    PS2 emulator running on Linux on the Switch. Big difference.
     
  5. Natehaxx

    Natehaxx GBAtemp Maniac

    Member
    9
    Jul 26, 2017
    Eritrea
    It's start if you can do any better so do it

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

    @Voxel
     
  6. Voxel

    Voxel Schleep

    Member
    14
    GBAtemp Patron
    Voxel is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Jun 27, 2015
    United Kingdom
    Why was I tagged?
     
    burt111 and Dionicio3 like this.
  7. Natehaxx

    Natehaxx GBAtemp Maniac

    Member
    9
    Jul 26, 2017
    Eritrea
    So you might confirm if pcsx2 runs inside qemu
     
  8. stick267

    stick267 GBAtemp Fan

    Member
    4
    Dec 17, 2018
    United States
    Playing the GTAs that released on PS2 handheld on the Switch would be awesome.
     
    kevin corms and Milenko like this.
  9. masagrator

    masagrator File digger

    Member
    5
    Oct 14, 2018
    Poland
    For GTA you should look into Android or support for anbot in L4T Ubuntu. This is more likely to happen than playing them on this emulator.
     
    Natehaxx and stick267 like this.
  10. smf

    smf GBAtemp Psycho!

    Member
    9
    Feb 23, 2009
    Switch is turing complete, so it can emulate anything given enough storage and time.

    It's that last part that is hard. The ps2 has a lot of chips that run in tight synchronization passing data between them as they go, this is hard to optimise for every game (which is why people always shows off specific games on the ps2 to show how fast their emulator is)

    If you upgrade a commodore 64 so it has enough random access storage to store the ps2 ram and frame buffer etc then you could emulate a ps2 on that as well. It doesn't have to be ram, you could use seekable magnetic tape. It wouldn't run full speed, but it could emulate it.

    I wrote an emulator back in the p4 days that I predicted would need an 8ghz p4 to run full speed, well that never happened but my laptop now runs it much faster than real time. The switch is pretty weak in the grand scheme of things, but that should never put you off. Gordon Moore usually helps out.
     
    Last edited by smf, May 16, 2019
    Natehaxx likes this.
  11. Natehaxx

    Natehaxx GBAtemp Maniac

    Member
    9
    Jul 26, 2017
    Eritrea
    still didnt give up the hope that they will someday port pcsx2 to aarch64 , but until then we have to wait for Android or something else
     
    Fadi5555 likes this.
  12. kevin corms

    kevin corms GBAtemp Advanced Fan

    Member
    5
    Feb 21, 2015
    Canada
    this is actually one of the harder games to run, and already 10 fps!

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

    of course it is, I kept telling people this months ago but they thought they were so much smarter than me (I even ended up blocking one fool that kept going on with stupid straw man arguments), and im a god damn developer. The switch is more powerful than a ps3, and its not a sort of its a simple fact. The switch cpu is actually probably better than other current consoles, its the gpu where it falls behind (other consoles use the gpu to make up for the cpu). Emulation is mostly cpu bound.
     
    Last edited by kevin corms, May 17, 2019
    Natehaxx likes this.
  13. Natehaxx

    Natehaxx GBAtemp Maniac

    Member
    9
    Jul 26, 2017
    Eritrea
    Time to gear up and help developing an ps2 emulator for the switch or an port of pcsx2 but ofc it will need an new recompiler
     
    Fadi5555 and kevin corms like this.
  14. kevin corms

    kevin corms GBAtemp Advanced Fan

    Member
    5
    Feb 21, 2015
    Canada
    If I could find the time and motivation, emulating ps2 is pretty damn tricky. It might take me years to get it up to speed given my limited time. If i did write an emulator it would be for saturn, I love all the panzer dragoon series, especially the rpg panzer dragoon saga.
     
    Last edited by kevin corms, May 17, 2019
  15. uyjulian
    OP

    uyjulian Homebrewer

    Member
    8
    Nov 26, 2012
    United States
    United States
    PCSX2 has a very ugly code base. DobieStation and Play! are relatively new emulators but they have cleaner code bases, so it might be easier to start from there.

    PS2 has quite a bit of hardware running at the same time, like the EE, GS, VU0/1, IOP, and its peripherals. Play! does most HLE of the IOP.

    These things can contribute to making Play! faster and/or have higher compatibility:

    Implementing more IOP module HLE (.IRX or IOPRP .IMG files; Most, if not all official developers used the same libraries provided by SCE)
    Implementing HLE of EE code (Most, if not all official developers used libraries such as libmpeg, libgcc, libpad, etc provided by SCE)
    Implementing AOT static recompilation (PS2 released games often have left debug symbols and debug (no) optimization)
    Implementing host-based timer and/or EE clock rate change
     
  16. Milenko

    Milenko GBAtemp Advanced Maniac

    Member
    9
    Oct 16, 2017
    Australia
    Can you do up a guide for exactly what tod for us non Linux people?
     
  17. uyjulian
    OP

    uyjulian Homebrewer

    Member
    8
    Nov 26, 2012
    United States
    United States
    Follow the Dolphin build instructions if you haven't done so already
    Run this in the terminal (once the PR I mentioned earlier has been merged)

    Code:
    git clone https://github.com/jpd002/Play-Build.git;cd Play-Build;git submodule update -q --init --recursive;git submodule foreach "git checkout -q master";cd Dependencies;git submodule update --init;cd ..;cd Play;mkdir build;cd build;cmake ..;cmake --build .;Source/ui_qt/Play
     
    lordelan and ModderFokker619 like this.
  18. EmulateLife

    EmulateLife GBAtemp Regular

    Member
    2
    May 13, 2019
    United States
    There's Yabasanshiro for Lakka. Are you talking about a saturn emulator for Horizon? That would be my dream. I love PS2 but I have a PS3 and a PS2 for those games (I know not portable, but still) I'd rather have a saturn emulator on my main switch screen.
     
    Last edited by EmulateLife, May 17, 2019
    kevin corms likes this.
  19. Captain_N

    Captain_N GBAtemp Advanced Maniac

    Member
    7
    Mar 29, 2010
    United States
    A ps2 emulator is gonna have to be written 100% from scratch to get any optimization on the switch. too much overhead ruing Linux then running an emulator.
     
    ModderFokker619 likes this.
  20. uyjulian
    OP

    uyjulian Homebrewer

    Member
    8
    Nov 26, 2012
    United States
    United States
    No, because Switch uses Nvidia GPU and ARM64 processor like the Jetson Nano and Shield TV.

    When more optimizations of ARM64 recompiler and GS are added, all platforms will benefit. We're 1/6th of the way there
     
    Last edited by uyjulian, May 17, 2019
    ModderFokker619 likes this.
Loading...