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,877
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,386
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
    K3Nv2 @ K3Nv2: Least they got head in the end