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 committed 2014-06-22 22:17:47 -07:00
1 parent e8803c4e9b
commit 392edb4f84
1 file changed
+3
+3
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.