Homebrew mGBA official standalone Wii port

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
Exactly, it's related to the audio buffer samples and I guess lowering the sample rate helps a little bit. Idle loops optimizations should work if configuring correctly but I dont know exactly what values are needed to change this. A funny thing I noticed (libretro core) with Final Fantasy IV Advance: if using a bios file (gba_bios.bin) the game becomes laggy in certain areas (intro after Square Enix and right after starting a new game), and here's the weird part, if using HLE bios (no gba_bios.bin file) the game simply runs faster, a little to none crackling and lagging. But for most games I tested running with a bios file they run almost perfect (98-100%). The sad part? 32 mb roms are not working in retroarch and I hope this gets fixed soon.

Edit: mGBA Wii standalone port now supports tilt sensor and in-progress gyroscope. This is getting better and better.

I know in Snes9x, changing the buffer size from 96 ms to 160 ms helps tremendously, esp when using the XAudio2 API on Windows 7, I don't know if the same applies to the standalone port to be honest. As for the the fact the RA port doesn't support large file sizes, I would hope the dev team is aware of the issue and will fix it soon. That being said, I find it weird the BIOS file makes the performance worse, I don't even think people really need to use it. For lowering the rates, I don't think 32 kHz would be bad, but keeping the buffer size to 160 ms maybe? Just a guess, I wish I could compile it in Windows and help test different values, sadly, there's no way to do so.

Edit; @zerofalcon will there be a new build to test? Mostly curious :P
 
Last edited by the_randomizer,

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,217
Country
Canada

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,217
Country
Canada

zerofalcon

Well-Known Member
OP
Member
Joined
Mar 14, 2009
Messages
814
Trophies
1
Location
Somewhere close to my NES
XP
2,929
Country
No improved audio on alpha 3, I made a new fork on github with latest changes decreasing the audio crackling. Note that the audio still has some quirks here and there, the problem was not completely solved, at least with the standalone version for Wii.

If someone wants to compile it from source:
https://github.com/retr0gam3r/mgba

Last build compiled for testing in the attached file.
 

Attachments

  • mGBA mod.zip
    393.1 KB · Views: 225

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
No improved audio on alpha 3, I made a new fork on github with latest changes decreasing the audio crackling. Note that the audio still has some quirks here and there, the problem was not completely solved, at least with the standalone version for Wii.

If someone wants to compile it from source:
https://github.com/retr0gam3r/mgba

Last build compiled for testing in the attached file.

Hey, it's all good, man, I'm happy to see this emulator getting better and better, proving once and for all the Wii is more capable than anyone guessed ^_^ Eventually, the sound issue will be resolved, I have hope :P
 

sindrik

Well-Known Member
Member
Joined
Jan 26, 2009
Messages
297
Trophies
1
XP
310
Country
United States
Tested the latest official Alpha 3. Definitely an improvement in files/folder navigation, no oversensitivity with buttons when selecting a rom or scrolling through the list. You can now return to rom selection, and resumes in the same spot you loaded a game before. Games really do run great.

No improved audio on alpha 3, I made a new fork on github with latest changes decreasing the audio crackling. Note that the audio still has some quirks here and there, the problem was not completely solved, at least with the standalone version for Wii.

If someone wants to compile it from source:
https://github.com/retr0gam3r/mgba

Last build compiled for testing in the attached file.

Thanks! I'll test it. Seems there was some fix applied to official one hour ago:

https://github.com/mgba-emu/mgba/commit/d16c5e3a74b9a30568f7299409f2949fd150fc42
 

VinsCool

Persona Secretiva Felineus
Global Moderator
Joined
Jan 7, 2014
Messages
14,600
Trophies
4
Location
Another World
Website
www.gbatemp.net
XP
25,217
Country
Canada
Tested the latest official Alpha 3. Definitely an improvement in files/folder navigation, no oversensitivity with buttons when selecting a rom or scrolling through the list. You can now return to rom selection, and resumes in the same spot you loaded a game before. Games really do run great.



Thanks! I'll test it. Seems there was some fix applied to official one hour ago:

https://github.com/mgba-emu/mgba/commit/d16c5e3a74b9a30568f7299409f2949fd150fc42
Definitely a fix! @the_randomizer
 

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
Last edited by the_randomizer,

zerofalcon

Well-Known Member
OP
Member
Joined
Mar 14, 2009
Messages
814
Trophies
1
Location
Somewhere close to my NES
XP
2,929
Country
This is great! I compiled an hour ago the binary with latest changes and the crackling audio it's almost gone. But! still remains in some games... you can tell by playing metroid zero mission. On the contrary for Mother 3 is perfect, very little crackling and the timing is perfect for rhythm combos. Btw the libretro core works even better but not with the official audio fix. Now we need a solution for large gba roms not loading in retroarch.
 

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
This is great! I compiled an hour ago the binary with latest changes and the crackling audio it's almost gone. But! still remains in some games... you can tell by playing metroid zero mission. On the contrary for Mother 3 is perfect, very little crackling and the timing is perfect for rhythm combos. Btw the libretro core works even better but not with the official audio fix. Now we need a solution for large gba roms not loading in retroarch.

Awesome, glad to see it much better for the Wii (BTW, will there be a compiled version soon? Just wondering so I can help test as well), I wonder what can be done to further reduce the audio crackling, as I wish to test games like Golden Sun 1 and 2, Final Fantasy IV, V and VI, and so on :P


Edit: Just saw him post that she has no intention to make a Wii U port of this emulator, she reasons that the Wii U already has GBA games and therefore its official GBA emulation. :unsure:
 
Last edited by the_randomizer,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
    BakerMan @ BakerMan: "I'm cheating on you with your hamster's cousin's owner's dog's favorite tree" +1