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
  • 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
  • Veho @ Veho:
    Economy was better under Trump, according to Fox News.
    +1
  • Veho @ Veho:
    I don't give a fuck about what happens to America but I would like it if your shit didn't spill out on the rest of the world, thank you.
    +3
  • AncientBoi @ AncientBoi:
    A Far Right news service company
  • AncientBoi @ AncientBoi:
    I give a fuck about what happens to America but I would like it if our shit didn't spill out on the rest of the world, thank you.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    @Veho, didn't need any news. Just going to the store and buying groceries is a constant reminder.
  • Veho @ Veho:
    A reminder that all corporations reported record profits these last few years?
  • Veho @ Veho:
    Reminded that every single price gouging law was blocked by republicans because "muh gubmint overreach"?
  • Veho @ Veho:
    Won't somebody please think of the corporations?!?!
    Veho @ Veho: Won't somebody please think of the corporations?!?!