Hacking [HELP WANTED] Desmume PSP

TheMrIron2

Well-Known Member
OP
Member
Joined
Aug 5, 2017
Messages
218
Trophies
0
XP
978
Country
Ireland
Hey everyone, a friend of mine who goes by the name hcfcoder (or just hcf) recently made a rudimentary port of Desmume's last stable release (from 2015) to PSP. It runs and boots games, but as everything is running on layered code using SDL and everything is completely unoptimised (interpreter used, all code running on CPU, no GPU at all...) so right now, it purely exists as a proof of concept. It runs about as well as Mupen64 on Vita for the very same reasons.

That's where I want some help! Using DSonPSP (another proof of concept, but with hardware acceleration and some improvements) by Yoshihiro as a reference, I'd like to:
- Use Exophase's gpSP ARM7-to-MIPS dynarec instead of the slow ARM7 interpreter
- Move ARM7 code (the DS secondary CPU) to the PSP's secondary CPU, the Media Engine
- Make everything native, removing the abstraction layers (eg. SDL)
- Hardware accelerate the graphics

Eventually, down the line, a dynarec for the main ARM9 CPU would be a goal and so would a bit of assembly to speed up important parts of the code base, but right now that's for the distant future. If anyone is interested, please let me know. One or two DaedalusX64 programmers have some interest in working on this as well, but we will need more people than that.

I am optimistic about this project but we'll need people onboard. Yoshihiro's code is based on Desmume code that is over 10 years old, yet using only interpreters and some hardware acceleration it attains 30-40% speed in games such as Ace Attorney and Yoshi's Island. That's incredible - DaedalusX64 in interpreter mode only reaches those speeds on a select few titles as well, and that's a well optimized emulator! It will require work and time to get it to a good state, but it is definitely doable.

The GitHub repository can be found here, with an invite to our PSP discord if you have questions: https://github.com/TheMrIron2/DeSmuME-PSP/ and it compiles under Minimal PSP SDK. (Update: as of 17/6/19 it compiles on the latest toolchain!)
And here is a video of the code booting Zoo Keeper:

If you can't contribute to the programming yourself, please let people know who might be able to - thanks!
 
Last edited by TheMrIron2,

TheMrIron2

Well-Known Member
OP
Member
Joined
Aug 5, 2017
Messages
218
Trophies
0
XP
978
Country
Ireland
but is that possible? to get a nds emulator work with full speed on psp?
Absolutely, I believe so. Yoshihiro's unfinished DSonPSP runs some games between 30-40% speed, which is dreadfully optimised by emulating both CPUs and all sound on the main CPU, and it uses an interpreter which is very slow.. and yet it runs the same as DaedalusX64, an optimised emulator, in interpreter mode!

Even if it isn't possible without serious assembly, it would be a great proof of concept.
 
  • Like
Reactions: Malckyor and Manana

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • Xdqwerty @ Xdqwerty:
    updated ship of harkinian, gonna install some hd texture pack
  • Xdqwerty @ Xdqwerty:
    I might download rayman revolution for my ps3
  • BigOnYa @ BigOnYa:
    I may try the new ram site, and download more RAM to my Switch. Not sure if ddr3 is the right ram
    for it tho. Edit- no it uses floppy Ram, just like @AncientBoi
    +1
  • Xdqwerty @ Xdqwerty:
    aeiou
  • BigOnYa @ BigOnYa:
    And sometimes Z
  • SylverReZ @ SylverReZ:
    @K3Nv2, MAGA supporters be wearing tin foil hats lol.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, whats maga?
  • BigOnYa @ BigOnYa:
    It stands for Maniacs Against General Acceptance
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, people rejecting general consensus about stuff?
    +1
  • BigOnYa @ BigOnYa:
    Yup, nuh its really just Trump followers
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, im not american so i dont care about trump
    +1
  • Xdqwerty @ Xdqwerty:
    or us elections
  • BigOnYa @ BigOnYa:
    Me niether, us north Koreans don't care
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    i don't care either, even if i'm american
  • BakerMan @ BakerMan:
    truth be told, i agree with psi, i dislike both candidates, but i'd probably vote trump simply because the economy was better during his presidency
    +1
  • AngryCinnabon @ AngryCinnabon:
    Just be careful, if trump ends up winning and using project 2025 America might really change...for the worse.
  • AngryCinnabon @ AngryCinnabon:
    I'm not american and even that sends shivers down my spine.
  • AngryCinnabon @ AngryCinnabon:
    anything that offers trump an opportunity to become an actual dictator
    is bad in my book, i could care less if it wasn't for that...
  • K3Nv2 @ K3Nv2:
    Canada: America's Russia
  • NinStar @ NinStar:
    people are so dramatic that I can't even tell if they are being serious
  • Psionic Roshambo @ Psionic Roshambo:
    Why so serious!
  • Psionic Roshambo @ Psionic Roshambo:
    @BakerMan, yeah that's about the only reason I would vote for Trump over Biden.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    In my opinion on all other factors they are pretty much the same.
    +1
    Psionic Roshambo @ Psionic Roshambo: In my opinion on all other factors they are pretty much the same. +1