diff options
| author | skidau <skidau@gmail.com> | 2014-11-19 12:57:22 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2014-11-19 12:57:22 +1100 |
| commit | 1d1942dde9605785c3486c70b08aebe74730ca94 (patch) | |
| tree | 72fa7907a6ab2dd59eee7d8463af87fd6b33db7d /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | 32f2cd8c7f1c0774a619fb7e4e5c9521a7ca82e0 (diff) | |
| parent | ca3e5ce5e131c6f820d8fa069bf1b1566c60c844 (diff) | |
Merge pull request #1536 from skidau/fifo-overflow
Fifo overflow fix
The idea behind separating the CPU and GPU thread path is to prevent two threads executing the same function (SetCPStatusFromCPU) at the same time. The CPU thread gets to that function via GetherPipeBursted and the GPU thread gets there via SetCPStatusFromGPU. I wrote the original (factored) version as I like to keep code duplication to a minimum. This worked most of the time but not all of the time. It was a good move to separate it to a GPU version and a CPU version, but then the GPU version called the CPU version at the tail end. Removing the call (as in this PR) prevents the FIFO overflow in Starfox Adventures.
The "Updating the CPStatus before FIFO events" change is simply there to keep the DC code path and the SC code path consistent in the !GPLinked scenario. The SC code path does the same thing when !GPLinked via RunGPU. Putting the SetCPStatus call before the !GPLinked state changes the DC code path to do the same thing. The more we keep the DC and SC code paths consistent, the better.
Forcing the exception check on interrupts is the change for The Last Story. It makes the emulator process interrupts more responsively on CP interrupts.
The HiWatermark check is something that old (pre-2010) versions of Dolphin used to do. Games like Battalion Wars 2 do not expect the GPU to run so slowly and do not have the code to react to that situation, so this change makes the emulator extra careful in those situations.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
0 files changed, 0 insertions, 0 deletions
