Homebrew blargSnes -- SNES emulator for the 3DS (WIP)

Status
Not open for further replies.

DiscostewSM

Well-Known Member
Member
Joined
Feb 10, 2009
Messages
5,484
Trophies
2
Location
Sacramento, California
Website
lazerlight.x10.mx
XP
5,512
Country
United States
The issue with that though, is that the software renderer can't just plot pixels wherever it wants, because it's scanline-based (basically, at regular intervals it's told to render 256 pixels on a given scanline).

I'd need to look up which tiles would be landing into the current scanline given their offset. Not exactly trivial.

And that's exactly what the method I provided does. It processes what pixel/tile gets placed at the current spot of the renderer, horizontally and vertically, so whether the renderer is working from left-to-right by pixel, and top-to-bottom by scanline (as the SNES renderer operates), or some other way (so long as all the information for each scanline like BG layer positioning is preserved), it should work.

Perhaps I should have pointed out that the variable Y is the scanline, and memory registers like BG3HOFS and whatnot are based on the information set for that particular scanline. That may clear some things up.
 
  • Like
Reactions: dronesplitter

alexenochs

Well-Known Member
Member
Joined
Aug 30, 2010
Messages
467
Trophies
1
XP
875
Country
United States
No you can't, right now there's only a choppy emulator. Not an emulator that runs off the system's VC.
Maybe your using a really old build because the latest pretty much plays every gbc game at full speed with sound in fact I don't recall the first build for the 3ds even having frame problems also if there were an emulator that ran from the vc system you wouldn't see it here if you want perfect emulation inject a game into a vc
 

y03usw6e

Well-Known Member
Member
Joined
Mar 15, 2014
Messages
308
Trophies
0
Age
30
XP
270
Country
Belgium
StapleButter, I just want to say thank you for being so active and constantly keeping us in the loop. So far, blargSNES is the only homebrew emulator/game that's actually worth using (in my opinion).
 
  • Like
Reactions: Fpsrussia117

Arisotura

rise of melonism
OP
Member
Joined
Dec 5, 2009
Messages
839
Trophies
1
Age
30
Location
center of the Sun
Website
kuribo64.net
XP
2,498
Country
France
CIA version is planned, as well as 3DSX, 3DS, ELF, EXE, GTA, NDS and every other format possible.


Release is coming soon. However, while the hardware renderer is performant, it's not as fast as it could be, so there might be frameskip in some demanding games.

The speeds I measured aren't even close to half the advertised performance of the PICA200. Three theories could explain that:

* many of the graphics data is in main RAM, which is causing contention when both CPU and GPU try accessing the main RAM (and it is likely that the CPU has priority)
* the GPU is initialized in some low-power mode that causes it to be downclocked
* render config changes are expensive

If it's the third one, we're fucked.

I'll try putting the graphics data in VRAM for a further release and see if that helps.
 

st4rk

nah
Member
Joined
Feb 11, 2014
Messages
542
Trophies
0
Website
st4rk.net
XP
815
Country
Brazil
CIA version is planned, as well as 3DSX, 3DS, ELF, EXE, GTA, NDS and every other format possible.


Release is coming soon. However, while the hardware renderer is performant, it's not as fast as it could be, so there might be frameskip in some demanding games.

The speeds I measured aren't even close to half the advertised performance. Three theories could explain that:

* many of the graphics data is in main RAM, which is causing contention when both CPU and GPU try accessing the main RAM (and it is likely that the CPU has priority)
* the GPU is initialized in some low-power mode that causes it to be downclocked
* render config changes are expensive

If it's the third one, we're fucked.

I'll try putting the graphics data in VRAM for a further release and see if that helps.


I like GTA Format.
 
  • Like
Reactions: signz and loco365

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,234
Country
Brazil
Yeah, it doesn't look like games on the red cart have CSND access, I know at least homebrew doesn't. I never found any retail rom that uses it so I can't confirm it's entirely blocked.
 

Arisotura

rise of melonism
OP
Member
Joined
Dec 5, 2009
Messages
839
Trophies
1
Age
30
Location
center of the Sun
Website
kuribo64.net
XP
2,498
Country
France
Retail games always use the DSP.

CSND isn't meant to be used by games, as evidenced by its simplicity. I'm not even sure you can do things like stereo panning. This is an issue with current blargSNES in that the left and right channels come out on both speakers instead of being properly separated.
 

piratesephiroth

I wish I could read
Member
Joined
Sep 5, 2013
Messages
3,453
Trophies
2
Age
103
XP
3,234
Country
Brazil
If someone wants to try a CIA version with sound, here's one compiled by myself.

Note that it's not as stable as the .3DS version uploaded by StapleButter and it's been uploaded by me, not him.
So if any game runs fine, thank him. If any game looks broken don't complain because he didn't release this in the first place because he thinks it's not ready for release anyway.
I'm uploading it because there's no other CIA option available.

By the way, it seems they fixed the sound issue in ctrulib. I was getting a crash when loading the games when I built it with ctrulib 0.1.0 (only the screen was black instead of white like in GameYob)
I updated to the latest version today and games are running fine with sound.
 

Attachments

  • blargsnes_cia.rar
    175.7 KB · Views: 212
  • Like
Reactions: Seraphiel

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,228
Country
Canada
If someone wants to try a CIA version with sound, here's one compiled by myself.

Note that it's not as stable as the .3DS version uploaded by StapleButter and it's been uploaded by me, not him.
So if any game runs fine, thank him. If any game looks broken don't complain because he didn't release this in the first place because he thinks it's not ready for release anyway.
I'm uploading it because there's no other CIA option available.

By the way, it seems they fixed the sound issue in ctrulib. I was getting a crash when loading the games when I built it with ctrulib 0.1.0 (only the screen was black instead of white like in GameYob)
I updated to the latest version today and games are running fine with sound.

Hi, could you build a .3dsx too? I only get compile errors.
 

placebooooo

Well-Known Member
Member
Joined
Aug 9, 2013
Messages
817
Trophies
0
Age
29
Location
Philadelphia
XP
1,151
Country
United States
If someone wants to try a CIA version with sound, here's one compiled by myself.

Note that it's not as stable as the .3DS version uploaded by StapleButter and it's been uploaded by me, not him.
So if any game runs fine, thank him. If any game looks broken don't complain because he didn't release this in the first place because he thinks it's not ready for release anyway.
I'm uploading it because there's no other CIA option available.

By the way, it seems they fixed the sound issue in ctrulib. I was getting a crash when loading the games when I built it with ctrulib 0.1.0 (only the screen was black instead of white like in GameYob)
I updated to the latest version today and games are running fine with sound.
May I ask how you converted it? Every time I tried I kept getting errors.
 
Status
Not open for further replies.

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/wZgjSNb-o4c?si=ajt4Lgq_LTYcXxs2 +1