MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / CalculateMinRunCycles

Function CalculateMinRunCycles

pcsx2/VUmicro.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11BaseVUmicroCPU* CpuVU1 = nullptr;
12
13__inline u32 CalculateMinRunCycles(u32 cycles, bool requiresAccurateCycles)
14{
15 // If we're running an interlocked COP2 operation
16 // run for an exact amount of cycles
17 if(requiresAccurateCycles)
18 return cycles;
19
20 // Allow a minimum of 16 cycles to avoid running small blocks
21 // Running a block of like 3 cycles is highly inefficient
22 // so while sync isn't tight, it's okay to run ahead a little bit.
23 return std::max(16U, cycles);
24}
25
26// Executes a Block based on EE delta time
27void BaseVUmicroCPU::ExecuteBlock(bool startUp)

Callers 2

ExecuteBlockMethod · 0.85
ExecuteBlockJITMethod · 0.85

Calls 1

maxFunction · 0.50

Tested by

no test coverage detected