summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2021-11-25 11:01:37 +1300
committerScott Mansell <phiren@gmail.com>2021-11-25 11:11:01 +1300
commitf5c550e9cb8f5bbc6a4f9bd77bc84c077671c480 (patch)
tree9f6f6c9c2ff3ccc59c0865c31f460350905bb8e6 /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent0b81640dd1ce436519368556a69eb7fc650a60fa (diff)
Delay singlecore gpu interrupts
Fixes Bomberman Jetters in single core mode. When single core mode pauses the CPU to execute the GPU FIFO it greedily executes the whole thing. Before this commit, Finish and Token interrupts would happen instantly, not even taking into account how long the current FIFO window has taken to execute. The interrupts would be effectively backdated to the start of this execution window. This commit does two things: It pipes the current FIFO window execution time though to the interrupt scheduling and it enforces a minimum delay of 500 cycles before an interrupt will be fired.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 00f470d5f4..a1abacc4c6 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -221,11 +221,11 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list)
const u32 bp_cmd = src.Read<u32>();
if constexpr (is_preprocess)
{
- LoadBPRegPreprocess(bp_cmd);
+ LoadBPRegPreprocess(bp_cmd, total_cycles);
}
else
{
- LoadBPReg(bp_cmd);
+ LoadBPReg(bp_cmd, total_cycles);
INCSTAT(g_stats.this_frame.num_bp_loads);
}
}