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

Function ShortSpin

common/HostSys.cpp:84–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84u32 ShortSpin()
85{
86 u32 inc = PAUSE_TIME;
87 if (inc == 0) [[unlikely]]
88 {
89 UpdatePauseTime();
90 inc = PAUSE_TIME;
91 }
92
93 u32 time = 0;
94 // Sleep for approximately 500ns
95 for (; time < 500; time += inc)
96 MultiPause();
97
98 return time;
99}
100
101static u32 GetSpinTime()
102{

Callers 5

GSDumpReplayerFrameLimitFunction · 0.85
ExecuteCommandBufferMethod · 0.85
WaitForFenceMethod · 0.85
WaitForWorkWithSpinMethod · 0.85
WaitForEmptyWithSpinMethod · 0.85

Calls 2

UpdatePauseTimeFunction · 0.85
MultiPauseFunction · 0.85

Tested by

no test coverage detected