mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02: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:
1 parent
e8803c4e9b
commit
392edb4f84
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user