Homebrew [WIP] 3DeSmume (DS emulator for 3DS)

shutterbug2000

Cubic NINJHAX!
OP
Member
Joined
Oct 11, 2014
Messages
1,088
Trophies
0
Age
29
XP
4,878
Country
United States
Yeah, you read that right.
I have been working quite a bit on porting Desmume to the 3DS. As it stands, it:
Runs at a decent fps on N3DS and doesn't run on O3DS
Uses the SVN DeSmuME emulation core, ported to 3ds by @MasterFeizz

Here is a video thanks to @Sasori :


Old videos:








BTW, please no spamming. Lets actually try to keep the discussion on topic, shall we? Thanks :P.

GitHub Repositories: https://github.com/shutterbug2000/DeSmume (my fork)
https://github.com/masterfeizz/DeSmuME (MasterFeizz's repo)
https://github.com/Robz8/DeSmuME (Robz8's fork)
 
Last edited by shutterbug2000,

KaduPSE

Revolution and cake
Member
Joined
Dec 26, 2015
Messages
260
Trophies
0
XP
408
Country
Brazil
Amazing. Really, I said multiple times that the 3DS couldn't emulate the DS, apparently I was wrong. Could you please share a PoC video? Even with graphical corruption, it would be nice.
 

Davidosky99

Eevee :3
Banned
Joined
Jun 7, 2015
Messages
2,581
Trophies
0
Age
24
Location
Porto
Website
www.davidosky99.xyz
XP
1,159
Country

Wolfvak

nyaa~
Member
Joined
Oct 25, 2015
Messages
918
Trophies
1
XP
3,486
Country
Uruguay
Code:
     for(i=0; i < 256*192; i++)
     {
     dstA[i] = src[i]; //Screen buffer to top screen buffer
     dstB[i] = src[(256*192)+i]; //Screen buffer to bottom screen buffer
     }

    sf2d_texture *texture = sf2d_create_texture(256, 192, TEXFMT_RGB5A1, SF2D_PLACE_RAM);
    void* texturedata = texture->data;
    u16* texturedata16 = (u16*)texturedata;
     for(x=0; x < (256*192); x++){
        texturedata16[x] = dstA[x];
  
    }
According to http://hitmen.c02.at/files/yagcd/yagcd/chap17.html you should copy (256*192*2), due to each pixel using a short to define its color data.

I'm not an expert on these funky fb formats, so I could be completely wrong.

Also, you shouldn't be using sf2dlib for these operations, writing directly to fb will be much faster. Hell, I think doing bitwise pixel format conversions to RGBA8 might be faster than using sf2dlib too.
 
Last edited by Wolfvak,
  • Like
Reactions: ClintEastwood

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    +1
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
  • BakerMan @ BakerMan:
    Also, no, that was his first time having a seizure, and hopefully the last
    +1
  • K3Nv2 @ K3Nv2:
    Ea play raised priced to $6 a month lol
  • BigOnYa @ BigOnYa:
    Same with uremum, she's now $2 a month
    +1
  • K3Nv2 @ K3Nv2:
    Also seizures come and and go they don't have an off switch like that it all depends
  • BakerMan @ BakerMan:
    alright guys, who would win, sonic or goku?
  • BigOnYa @ BigOnYa:
    Knuckles
  • BakerMan @ BakerMan:
    knuckles vs broly could also be a good one tbh
    +1
  • BigOnYa @ BigOnYa:
    Bakerman vs. Wario
  • BigOnYa @ BigOnYa:
    Announcer - "Ok folks we have a good fight today, Bakerman takes on Wario. This should be a good fight. Wait...why is bakerman undressing?"
  • BakerMan @ BakerMan:
    Oh sorry, this is Wario? I thought it was your wife
    +1
  • E @ eenterx:
    hello guys how do i type on forums?
  • E @ eenterx:
    i am the new user
  • BigOnYa @ BigOnYa:
    I am the Eggman... I am the Walrus...
  • E @ eenterx:
    oh ok
    E @ eenterx: oh ok