dolphin/Source
Marcos Vitali 695010520f More FIFO work, HACK Solution for extreme overflow on breakpoints.
1) What is the FIFO? The fifo is a ring queue for write (CPU) and read (GPU) the graphics commands.
2) What is the Brakpoints? The breakpoint is the FIFO mark to allow parallel work (CPU-GPU) When the GPU reached the breakpoint must stop read immediately until this Breakpoint will be removed for the CPU.
3) What is an overflow? The CPU write all room FIFO possible, and like a ring overwrite commands not processed yet.
4) ¿Why you have an overflow? In theory should not have an overflow never because the fifo has another mark (High Watermark) When the CPU Write reach this mark raise a CP interruption and the FIFO CPU WRITES should stop write until distance between READ POINTER AND WRITE POINTER will be equal to another mark (LO Watemark to prevent and overflow.
5) ¡So if impossible why you have overflows? Simple, the CP interruption is processed later and the Overflow happens. (there is a lot of theories about this)
6) ¿Why is no so simple like when CPU WRITE POINTER is near to the end of the FIFO only process pending graphics command?
Because when this happens sometimes we are in BREAKPOINT and is IMPOSIBLE process the graphics commands.

- This HACK process the pending data when CPU WRITE POINTER is 32 bytes before the end of the fifo, and if there is a Breakpoint force the situation to process the commands and prevent an overflown.
In theory you have not see "FIFO is overflown by GatherPipe nCPU thread is too fast!" anymore. But if you have a hang in game where you had this please read the NOTICE LOG in user\logs, I've added this message "FIFO is almost in overflown, BreakPoint" when the hack is activated. (I will delete this message very soon)

Good Luck!! PD: Shuffle sorry for the large commit description :P

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6662 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-27 02:55:35 +00:00
..
Core More FIFO work, HACK Solution for extreme overflow on breakpoints. 2010-12-27 02:55:35 +00:00
DSPSpy Second attempt at issue 3458. Fixes issue 3458. 2010-12-04 03:50:55 +00:00
DSPTool Build but don't install the dsptool/tester/MemcardManager tools 2010-07-22 03:38:32 +00:00
Plugins Guess what, more ClearScreen fixes. 2010-12-25 00:25:15 +00:00
PluginSpecs - I've implemented cache of interrupt states for PEFINISH and PETOKEN 2010-12-13 07:56:54 +00:00
TestSuite Add Turntable.cpp to SCons build. 2010-10-03 08:20:24 +00:00
UnitTests StringUtil cleanup. Nothing seems broken. 2010-11-10 04:12:31 +00:00
CMakeLists.txt Add an experimental CMake build system as a possible replacement for SCons. Only tested on Linux, should work on OS X and Windows in the future as well though. 2010-11-01 15:47:02 +00:00
Dolphin.sln Fix VideoCommon build configuration for DebugFast/x64. 2010-12-05 14:31:00 +00:00