• 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 ... 49 50 51 52 53 ... 117 Next »

Explanation of FIFO
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Explanation of FIFO
12-23-2012, 11:15 PM
#2
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
FIFO stands for First In First Out. This is a term usually used to describe data structures like queues: the first elements you pushed to the queue will be the first elements to be popped, and order is conserved (the opposite of FIFO is LIFO, like a stack).

What we call the FIFO in GC emulation is the memory zone used for CPU->GPU commands exchange. The CPU stores commands there and the GPU will read them back later. When the GPU is done reading commands, it sends an interrupt to the CPU. It's a central point of GC/Wii emulation, and removing it would break everything (it wouldn't even make sense).

It is difficult to emulate because it is the main synchronization point between two fast, asynchronous command processors: the CPU on one side, the GPU on the other side. A lot of commands go through there so it also needs to be very fast. Messing up synchronization is very easy, especially because sending interrupts from the GPU thread to the CPU thread is a difficult problem to solve in emulation (the only accurate solution to this problem is to check for interrupts before executing each CPU instruction, but this is slow).
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Explanation of FIFO - shellashock - 12-23-2012, 10:14 PM
RE: Explanation of FIFO - delroth - 12-23-2012, 11:15 PM
RE: Explanation of FIFO - shellashock - 12-24-2012, 04:57 AM

  • 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