mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-03 19:21:13 +00:00
Eat some cycles when switching threads.
There's a cost and it seems to be at least this much. Matters for Wipeout Pure when callbacks are allowed to wait.
This commit is contained in:
parent
e8803c4e9b
commit
392edb4f84
@ -3234,6 +3234,9 @@ void __KernelSwitchContext(Thread *target, const char *reason)
|
||||
}
|
||||
#endif
|
||||
|
||||
// Switching threads eats some cycles. This is a low approximation.
|
||||
currentMIPS->downcount -= 3000;
|
||||
|
||||
if (target)
|
||||
{
|
||||
// No longer waiting.
|
||||
|
Loading…
Reference in New Issue
Block a user