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:
Unknown W. Brackets 2014-06-22 19:48:10 -07:00
parent e8803c4e9b
commit 392edb4f84

View File

@ -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.