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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 169 170 171 172 173 ... 368 Next »

A new idea for dolphin
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
A new idea for dolphin
05-22-2013, 03:54 PM
#1
common
Unregistered
 
I have not check the source code. I don't know how does dolphin work. But I think it can run more fast.
"Games are programmed for this CPU: when emulating, every basic instruction a game runs needs to be translated to something a PC can execute. Depending on the instruction, this can take from 2x to 100x clock cycles, which explains why you need more than a 486MHz CPU to emulate a Gamecube."
Why not translate all the basic instruction into a new file, then run it? Maybe that will be more fast.
My English is bad. I can't use it well.
I am not sure that anyone could know what I am talking about.
I'm so sorry.
Reply
05-22-2013, 04:16 PM
#2
quinneypoo Offline
Junior Member
**
Posts: 20
Threads: 1
Joined: Aug 2012
What? You have zero understanding of how an emulator works.
3770k at 4.5 GHz Liquid Cooled
GTX 680 Overclocked
16 GB Ram
Find
Reply
05-22-2013, 05:05 PM
#3
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
What you've explained is called JIT. Just try to set CPU emulation to interpreter to see the differences :-P
Find
Reply
05-22-2013, 05:28 PM
#4
neobrain Offline
"Wow, I made my code 1000x faster! That means I can make it 2048x slower now!"
**********
Developers (Some Administrators and Super Moderators)
Posts: 3,208
Threads: 50
Joined: Jun 2009
(05-22-2013, 05:05 PM)degasus Wrote: What you've explained is called JIT. Just try to set CPU emulation to interpreter to see the differences :-P
lolwat? What he explains is kind of the opposite of a JIT. He's suggesting a static recompiler.
My blog
Me on Twitter
My wishlist on Amazon.de
Find
Reply
05-22-2013, 05:34 PM (This post was last modified: 05-22-2013, 05:35 PM by Shonumi.)
#5
Shonumi Offline
Linux User/Tester
**********
Administrators
Posts: 6,505
Threads: 55
Joined: Dec 2011
(05-22-2013, 05:05 PM)degasus Wrote: What you've explained is called JIT. Just try to set CPU emulation to interpreter to see the differences :-P

What the OP said could also be static recompilation if "new file" implies creating a completely new binary (like a .exe file) rather than keeping it in the cache. The problem with that method is most often self-modifying code, which can be a pain to translate correctly with static recompilation.

EDIT: Ninja'd
Website Find
Reply
05-22-2013, 10:29 PM
#6
pauldacheez Offline
hot take: fascism is bad
*******
Posts: 1,527
Threads: 1
Joined: Apr 2012
This has been suggested plenty of times before; I think everyone's had this idea at one point or another.

I can think of another reason why it's difficult and silly – every time you update to a new build, the games would need to be recompiled. Fine for stable builds, but it'd be infuriating on dev builds.
<@skid_au> fishing resort is still broken: http://i.imgur.com/dvPiQKg.png
<@neobrain> dafuq
<+JMC47> no dude, you're just holding the postcard upside down
----------------------------------------
<@Lioncash> pauldachz in charge of shitposting :^)
Website Find
Reply
05-22-2013, 11:01 PM
#7
common
Unregistered
 
It usually takes me 20 minutes to open the project on my computer.
I don't know why. It's too slowly. So I don't know how does dolphin work.
I am just a warm-hearted programmers. I want to do something I could.

Maybe my idea is impossible.
Reply
05-22-2013, 11:15 PM
#8
pauldacheez Offline
hot take: fascism is bad
*******
Posts: 1,527
Threads: 1
Joined: Apr 2012
It shouldn't take 20 minutes to open a game, you're either exaggerating or whatever you're storing your games on is ridiculously slow. For the latter, make sure your games are stored on your internal hard drive or SSD – a network share is usually too slow, and the few PC optical drives that can read GC/Wii discs usually can't read them very fast, so if you're just putting your GC/Wii discs into your PC's optical drive, rawdump them instead: http://forums.dolphin-emu.org/Thread-howto-dump-wii-or-gamecube-games-with-pc-no-wii-needed

Also, you're using an old build that you got from the wrong site. I'm tired of seeing the number 367 when we're more than a thousand builds ahead of that at this point, so go get a MUCH newer version from here: http://dolphin-emu.org/download/
<@skid_au> fishing resort is still broken: http://i.imgur.com/dvPiQKg.png
<@neobrain> dafuq
<+JMC47> no dude, you're just holding the postcard upside down
----------------------------------------
<@Lioncash> pauldachz in charge of shitposting :^)
Website Find
Reply
05-23-2013, 05:34 AM
#9
NaturalViolence Offline
It's not that I hate people, I just hate stupid people
*******
Posts: 9,013
Threads: 24
Joined: Oct 2009
common Wrote:It usually takes me 20 minutes to open the project on my computer.
I don't know why. It's too slowly. So I don't know how does dolphin work.
I am just a warm-hearted programmers. I want to do something I could.

Maybe my idea is impossible.

The way that you worded your idea is extremely vague and could be referring to either static recompilation or dynamic recompilation.

Like delroth said dynamic recompilation is already implemented.
And like Shonumi said static recompilation is impossible.
"Normally if given a choice between doing something and nothing, I’d choose to do nothing. But I would do something if it helps someone else do nothing. I’d work all night if it meant nothing got done."  
-Ron Swanson

"I shall be a good politician, even if it kills me. Or if it kills anyone else for that matter. "
-Mark Antony
Website Find
Reply
05-23-2013, 03:59 PM
#10
lamedude Offline
Senior Member
****
Posts: 360
Threads: 7
Joined: Jan 2011
Smile 
How about you give the JIT engine a weird monkey name for every optimization you do? It works well for Firefox.
Website 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