• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 20 21 22 23 24 ... 117 Next »

Just some questions on how Dolphin works.
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Just some questions on how Dolphin works.
11-14-2017, 03:19 AM
#1
shoesakaslick
Unregistered
 
So I'm making an informal video on Dolphin and a little bit of history of the emulator, since it's always been my favorite emulator. Now my question is, when they began development on the emulator, how did they rip the operating system out of the gamecube to use in the emulator?

As well as how does emulating the CPU and hardware of the gamecube work?

What kind of legal troubles did they run into when they released the emulator?

What was the biggest obstacle in the beginning?

and maybe a few other questions as I get to writing it more and more.

thanks.
Reply
11-14-2017, 06:53 AM
#2
AnyOldName3 Offline
First Random post over 9000
*******
Posts: 3,533
Threads: 1
Joined: Feb 2012
The basics of how the CPU emulation works is that we have a JIT (Just In Time) Recompiler, which keeps track of which bits of code we're about to run, and translates them into something the system Dolphin is running on can understand. This approach is taken as it means Dolphin knows the context in which the code is to be run when it's translating it which can help with optimisations, or sometimes even making the code work at all.

As for legal troubles, there basically aren't any. All of the work done on Dolphin is based on either publicly available information (such as officially published specifications and manuals for CPUs similar to the Wii's and GameCube's when the equivalent documentation for the exact chips is a trade secret between IBM and Nintendo) or clean-room reverse engineering (where things are learned by studying what the original consoles do without anyone involved having prior secret knowledge that they're not legally allowed to share). If anyone who'd known something secret about the consoles had been involved, Nintendo could claim they'd just shared the secret, and therefore violated their intellectual property, but as they weren't, everything was learned by just watching to see what the real hardware did in various situations, and Nintendo had sold them the hardware, so can't tell them that they weren't allowed to poke at it to see how it works.
OS: Windows 10 64 bit Professional
CPU: AMD Ryzen 5900X
RAM: 16GB
GPU: Radeon Vega 56
Find
Reply
11-14-2017, 07:38 AM
#3
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,614
Threads: 120
Joined: Mar 2011
shoesakaslick Wrote:how did they rip the operating system out of the gamecube to use in the emulator?

Actually, the GC and Wii don't have an operating system. The GC Main Menu and the Wii Menu are IPLs (Initial Program Loader), and that's all! The consoles can only run one program at a time, and whatever piece of software they are running has 100% control of the system. To be an operating system, you have to have the ability to run at least two things at once, so the OS can manage the running software behind the scenes. The GC/Wii (and curiously enough the Wii U!) don't have this ability, and to access the main menu (not including the menu that appears when you press the home button, that's an API trick to fake the appearance of an OS, the game is still the only thing running!) you have to close the currently running application. That is a clear sign that there is no operating system at all!

On a game console this can actually work pretty well. Especially with the menu that you press when you press the home menu - that's not the operating system, but an API that Nintendo requires games include. The game is still running! Only when you close the game and return to the Wii or Wii U menu does the game close and the menu appear.

Btw, the 3DS and Switch do have real operating systems! You are able to go to the main menu while leaving the game running, run other smaller programs like the eshop, and then return to the suspended game. That's 3 programs running at once!
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2 | (details)
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
11-14-2017, 07:55 AM
#4
Delphinidae1 Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Nov 2017
Can't you guys create a xbox360 emulator as well? I know this isn't the place to ask but since Xenia's development is slower than a snail, and you developed this amazing emulator called Dolphin...I'm sure if you guys tried in like a month you'd be ahead of Xenia already.
Find
Reply
11-14-2017, 08:03 AM
#5
JosJuice Online
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 8,927
Threads: 7
Joined: Oct 2014
(11-14-2017, 07:55 AM)Delphinidae1 Wrote: Can't you guys create a xbox360 emulator as well?

All of us? No, it's not going to happen.


(11-14-2017, 07:55 AM)Delphinidae1 Wrote: I'm sure if you guys tried in like a month you'd be ahead of Xenia already.

Creating an emulator doesn't happen that quickly.
Find
Reply
11-14-2017, 08:21 AM
#6
MayImilae Offline
Chronically Distracted
**********
Administrators
Posts: 4,614
Threads: 120
Joined: Mar 2011
Remember, Dolphin has been around since 2003! We certainly didn't get to where we are now overnight.
[Image: RPvlSEt.png]
AMD Threadripper Pro 5975WX PBO+200 | Asrock WRX80 Creator | NVIDIA GeForce RTX 4090 FE | 64GB DDR4-3600 Octo-Channel | Windows 11 22H2 | (details)
MacBook Pro 14in | M1 Max (32 GPU Cores) | 64GB LPDDR5 6400 | macOS 12
Find
Reply
11-14-2017, 08:51 AM
#7
Helios Offline
Stellaaaaaaa
**********
Developers (Some Administrators and Super Moderators)
Posts: 4,395
Threads: 15
Joined: May 2012
We don't even have functional netplay
Find
Reply
11-14-2017, 10:37 PM
#8
Delphinidae1 Offline
Junior Member
**
Posts: 5
Threads: 1
Joined: Nov 2017
help me
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode