Homebrew RetroArch - A new multi-system emulator

Status
Not open for further replies.

LibretroRetroArc

Well-Known Member
Member
Joined
Aug 24, 2012
Messages
748
Trophies
0
XP
1,258
Country
Netherlands
But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.

Whoops, that issue again. I'm going to run this through OV2 and come up with a fix for Wii.

Also - allow me, even the leader code of this project, to be pleasantly surprised by the performance we've managed with SNES9x Next on Wii. The last time I tried running Yoshi's Island on Wii with SNES9x Next/REtroArch, it was a 50-55fps fest - so I put it down to it never being able to reach fullspeed on Wii.

Well - just replayed Yoshi's Island again on RetroArch Wii and it's running at 60fps fullspeed now - even at the world map. (Xbox 1 by comparison is much slower at this game)This is all with no frameskipping and using a core based on SNES9x 1.52. Guess those optimizations I rammed through really made a difference after all.
 

deshayzilla

Well-Known Member
Member
Joined
Sep 29, 2011
Messages
291
Trophies
1
XP
265
Country
United States
Well - just replayed Yoshi's Island again on RetroArch Wii and it's running at 60fps fullspeed now - even at the world map. (Xbox 1 by comparison is much slower at this game)This is all with no frameskipping and using a core based on SNES9x 1.52. Guess those optimizations I rammed through really made a difference after all.

First thing I did was check to see how that game ran on RetroArch Wii. I was so impressed with the performance. I remember this one being one of the problem games of SNES9x GX. Plus it seemed as though there was very little to no controller input lag. Personally I don't care what this program looks like (I actually really like the style) It gets the job done, and Isn't that the point?
I can't wait to test out how it plays street fighter alpha 3 (cps2 of course, the gba version is good but i like having more buttons) and mother 3.

Awesome work!
 
  • Like
Reactions: 1 person

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.

Whoops, that issue again. I'm going to run this through OV2 and come up with a fix for Wii.

Also - allow me, even the leader code of this project, to be pleasantly surprised by the performance we've managed with SNES9x Next on Wii. The last time I tried running Yoshi's Island on Wii with SNES9x Next/REtroArch, it was a 50-55fps fest - so I put it down to it never being able to reach fullspeed on Wii.

Well - just replayed Yoshi's Island again on RetroArch Wii and it's running at 60fps fullspeed now - even at the world map. (Xbox 1 by comparison is much slower at this game)This is all with no frameskipping and using a core based on SNES9x 1.52. Guess those optimizations I rammed through really made a difference after all.

Thanks. Say, what GX libraries did you use ?? I know the GPU the Wii has can do A LOT if properly documented.
 

Toad King

Well-Known Member
OP
Member
Joined
Aug 19, 2009
Messages
374
Trophies
0
XP
546
Country
United States
But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.

Whoops, that issue again. I'm going to run this through OV2 and come up with a fix for Wii.

Also - allow me, even the leader code of this project, to be pleasantly surprised by the performance we've managed with SNES9x Next on Wii. The last time I tried running Yoshi's Island on Wii with SNES9x Next/REtroArch, it was a 50-55fps fest - so I put it down to it never being able to reach fullspeed on Wii.

Well - just replayed Yoshi's Island again on RetroArch Wii and it's running at 60fps fullspeed now - even at the world map. (Xbox 1 by comparison is much slower at this game)This is all with no frameskipping and using a core based on SNES9x 1.52. Guess those optimizations I rammed through really made a difference after all.

Thanks. Say, what GX libraries did you use ?? I know the GPU the Wii has can do A LOT if properly documented.
The video code doesn't use anything more than the GX calls provided by libogc. Nothing fancy like TEV stages, although those might be usable to make shader-like effects, but I don't know much about them. I know the WiiMC guys use them for color conversion, but I don't really know their full capabilities.
 

LibretroRetroArc

Well-Known Member
Member
Joined
Aug 24, 2012
Messages
748
Trophies
0
XP
1,258
Country
Netherlands
But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.

Whoops, that issue again. I'm going to run this through OV2 and come up with a fix for Wii.

Also - allow me, even the leader code of this project, to be pleasantly surprised by the performance we've managed with SNES9x Next on Wii. The last time I tried running Yoshi's Island on Wii with SNES9x Next/REtroArch, it was a 50-55fps fest - so I put it down to it never being able to reach fullspeed on Wii.

Well - just replayed Yoshi's Island again on RetroArch Wii and it's running at 60fps fullspeed now - even at the world map. (Xbox 1 by comparison is much slower at this game)This is all with no frameskipping and using a core based on SNES9x 1.52. Guess those optimizations I rammed through really made a difference after all.

Thanks. Say, what GX libraries did you use ?? I know the GPU the Wii has can do A LOT if properly documented.

Nothing out of the ordinary other than what is presupplied with libogc. Only our syncing model can be considered unique and unconventional.

https://github.com/e...comment-6901187

Syncing on both video and audio is a paradox, but we have an experimental "rate control" method to approach the ideal case. Audio sampling rate (pitch) is slightly adjusted (inaudible) dynamically so that video and audio clocks can appear to be in perfect sync. It doesn't always work right though, and sampling rate / FPS values must still be reported correctly. If you are familiar with asynchronous USB, it's a very similar approach.

You can find our code here -

https://github.com/T...ister/RetroArch

Any input/additional help and insight related to the GPU and undocumented features is certainly welcome.

Re: SNES9x Next - even Star Fox 1 runs at 59/60fps. Damn - seems like I need to update that README to reflect the fact that in fact, most SuperFX games do run at fullspeed.
 

Coto

-
Member
Joined
Jun 4, 2010
Messages
2,979
Trophies
2
XP
2,565
Country
Chile
Thanks guys, I begun with ASM some months ago, and debugging some stuff using a on-board ATI I have. Looking to run those "blobs" on GX...

Good job..

edit: however i'm using a C compiler for now... not doing any black magic in ASM ... until I get how to fetch per SIMD instructions..
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
0
Website
Visit site
XP
999
Country
EDIT: Just wanted to say the Snes9x Next is awesome! But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.
Libogc's AUDIO_InitDMA() function expects samples to use right,left,right,left,... interleaving which is not documented anywhere afaik. A lot of programs have the channels backwards, especially anything using SDL-Wii.

It also looks like you're using a RGB555 texture for the video - if the source is 8-bit indexed, you could get a lot more speed by using a proper hardware palette and if the palette entries contain full 8-bits for each channel you can use two TEV stages to get the full 24-bits of output rather than reducing it to 15-bits.
 

Toad King

Well-Known Member
OP
Member
Joined
Aug 19, 2009
Messages
374
Trophies
0
XP
546
Country
United States
I know a couple people wanted some media of the emulator in action, so I took a quick screenshot of the menu interface.

46g5s.png


EDIT: Just wanted to say the Snes9x Next is awesome! But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.
Libogc's AUDIO_InitDMA() function expects samples to use right,left,right,left,... interleaving which is not documented anywhere afaik. A lot of programs have the channels backwards, especially anything using SDL-Wii.

It also looks like you're using a RGB555 texture for the video - if the source is 8-bit indexed, you could get a lot more speed by using a proper hardware palette and if the palette entries contain full 8-bits for each channel you can use two TEV stages to get the full 24-bits of output rather than reducing it to 15-bits.
Thanks for those audio tips.

While we could use hardware palettes, libretro was designed to be system-agnostic, so to support systems without paletted video, we have emulator cores all return RGB555 video. We may lose some speed in the conversion, but it makes supporting all the emulator cores we use easier. Adding paletted video might be an addition to libretro in the future, but full RGBA8 will come before that.
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
0
Website
Visit site
XP
999
Country
That seems like you're sacrificing speed, quality and memory on the systems that do support it rather than a little bit of speed (and memory reduction) on the systems that don't.
 

littlecubba

Well-Known Member
Newcomer
Joined
Jan 12, 2009
Messages
67
Trophies
0
XP
156
Country
i'm more than IMPRESSED with all the work and thought that has gone into this emulator
ok so i've only tested and loved the CPS1+CPS2 and it works a treat
been reading what might be intrudced into the next version...

loved *Mame by "KING" Toad *wink,wink!
 

Toad King

Well-Known Member
OP
Member
Joined
Aug 19, 2009
Messages
374
Trophies
0
XP
546
Country
United States
That seems like you're sacrificing speed, quality and memory on the systems that do support it rather than a little bit of speed (and memory reduction) on the systems that don't.
The truth is most of the cores we use already render their screens to a 16-bit or 32-bit RGB screen and only use palettes internally. Modifying them to expose that palette could give us a speed boost and save memory, but we are already full speed in nearly everything and the places where we're low on memory (large arcade games) the memory we save would not be enough to make a significant difference.

That said, using palettes could definitely help in those isolated cases where we struggle a little bit, like hires mode in SNES. It'll be something I'll discuss with the other devs.
 
  • Like
Reactions: kineticUk

the_randomizer

The Temp's official fox whisperer
Member
Joined
Apr 29, 2011
Messages
31,284
Trophies
2
Age
38
Location
Dr. Wahwee's castle
XP
18,969
Country
United States
EDIT: Just wanted to say the Snes9x Next is awesome! But for some reason, the audio channels are reversed; left channel is on the right and the right channel is on the left. I know this because when you fire your charge beam on Mega Man X2, the *whoosh* sound comes from the wrong side when the channels pan.
Libogc's AUDIO_InitDMA() function expects samples to use right,left,right,left,... interleaving which is not documented anywhere afaik. A lot of programs have the channels backwards, especially anything using SDL-Wii.

It also looks like you're using a RGB555 texture for the video - if the source is 8-bit indexed, you could get a lot more speed by using a proper hardware palette and if the palette entries contain full 8-bits for each channel you can use two TEV stages to get the full 24-bits of output rather than reducing it to 15-bits.

Well, can't the channels be fixed so they output in the left/right positions at all or is it impossible? Oh, and if .srm/save state files can be hidden on the ROM selection list, that would be a boon. I'm not ungrateful in the least, don't get me wrong, just thought you'd like some feedback is all.
 

seam

Well-Known Member
Member
Joined
Jan 23, 2011
Messages
727
Trophies
1
Age
112
Location
austin texas
XP
855
Country
United States
awesome work :D !!!!! ive got 2 quick questions: does segacd work with full audio?(music and fx) and i saw someone mention that donpachi, dodonpachi, and esprade are working. do Espgaluda and Ketsui, and dai-ou-jou also work? i remember there being some legal issue with these cave games a few years back in mame and fba... never really got the story on that or if they are playable again in newer revs of fba... at any rate, thanks for the amazing work!! im also really stoked to finally be able to play doom1-2 with music on my wii!!! which im gonna go try out right now :D
 

LibretroRetroArc

Well-Known Member
Member
Joined
Aug 24, 2012
Messages
748
Trophies
0
XP
1,258
Country
Netherlands
...and i saw someone mention that donpachi, dodonpachi, and esprade are working. do Espgaluda and Ketsui, and dai-ou-jou also work?

i tried to load up ketsui and ddp dai-ou-jou but both crashed. didnt try espgaluda.

We'll most likely make a separate FBA core for those games - I think the ROMs might be too big in combination with mainline FBA - and the binary needs to be shrinked so that it all fits into memory.

FBA 0.2.97.27 was just released so we'll just upgrade to that and release it on all RetroArch systems as an installable upgrade core.

Also, ToadKing is going to be pushing a new version soon - I had another look at the CPS1/CPS2 and Neogeo FBA Cores and have finally fixed the sound clicking/skippiness that could be heard by anyone with headphones on. This was bugging me for the past few days and I'm glad I've got it sorted out now.
 
  • Like
Reactions: 2 people

Overseer

Well-Known Member
Newcomer
Joined
Aug 8, 2012
Messages
58
Trophies
0
XP
59
Country
I feel ever so stupid, I can't get any CPS2 ROMs to work. I've selected the CPS2 core, but whenever I select a ROM I get an error about ROM loading. They work fine on my PC.

Can someone point me in the right direction of what to do?
 

Toad King

Well-Known Member
OP
Member
Joined
Aug 19, 2009
Messages
374
Trophies
0
XP
546
Country
United States
I feel ever so stupid, I can't get any CPS2 ROMs to work. I've selected the CPS2 core, but whenever I select a ROM I get an error about ROM loading. They work fine on my PC.

Can someone point me in the right direction of what to do?
When you say they work on your PC, do you mean they work with FBA v0.2.97.26? Because sometimes ROM formats change between releases. Make sure the ROMs you get are for that version of Final Burn Alpha.
 
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:
    Slower speeds for gen4
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=1hp24nDVKvY