What's new

A question about how Dolphin works

Darkrise

New member
Hi all. This is my first post here. First of all sorry for my poor english. I've tryed dolphin just for fun (I have to say for now it's better to play on my gc...), and I've noticed it's slow (aniway I think it's really a good emulator). Reading posts in this forum I've read doplhin have "dynarec"(for what I understood a dynamic recompiler). I also read gamecube uses a power pc cpu.
I usually use linux and I've tryed qemu, which can emulate a ppc cpu at quite a good speed (especially with the accellerator). Now, I'm not a programmer (or better, I can just write some scripts using "python"), I just wonder if studying the qemu source code could help you to make emulation faster. I also wonder if it could be possible to make a program like wine (which is a translation layer) which "translates" gc's cpu and if it could be a good way of running gamecube's games on pc, or of dynarec works like wine do.
I'd also like to learn programming, especially how emulators works, does someone of you have some suggestions to learn about the emulation world?
Thank you in advance
 
Last edited:

Toasty

Sony battery
Darkrise said:
I also wonder if it could be possible to make a program like wine (which is a translation layer) which "translates" gc's cpu and if it could be a good way of running gamecube's games on pc, or of dynarec works like wine do.
A dynarec (short for 'dynamic recompiler' and also sometimes referred to as a 'binary translator') translates instructions from one CPU's instruction set (like PowerPC) to another CPU's instruction set (like x86) so that they can be run natively on the host platform. WINE is a little bit different in that no instruction translation takes place. WINE only catches calls that would normally be handled by the Windows API and redirects them to WINE's equivalent.

As for learning from QEMU, I'm not sure. Bare in mind that games often consume all of a console's CPU time and many personal computer programs do not. (Hence the perceived high performance on QEMU may simply be the result of little demand for the CPU during normal activities.)

And finally, for help with programming, feel free to ask questions in the programming section of the forum here. Start out by learning a programming language (C or C++ are good choices for emulators, though you may want to start with something else depending on how your mind works) and after you get a good grasp of that language, try out a (relatively) simple emulation project like Chip8. Lots of good tutorials have been linked in the programming section, so a little searching can turn up some great material.
 
OP
D

Darkrise

New member
Thank you for answering... so it's better if I start to learn c++ programmin...right, now I go and start studying it
bye bye
 

Top