From daaa2fa5236df5e8976e7e0ba7ac39e0d9233422 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 26 Dec 2016 17:20:51 -0800 Subject: [PATCH] GB SIO: Support faster transfer speeds --- src/gb/sio/lockstep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gb/sio/lockstep.c b/src/gb/sio/lockstep.c index 67a8f68aa..d52401a66 100644 --- a/src/gb/sio/lockstep.c +++ b/src/gb/sio/lockstep.c @@ -116,17 +116,17 @@ static int32_t _masterUpdate(struct GBSIOLockstepNode* node) { node->transferFinished = false; needsToWait = true; ATOMIC_STORE(node->p->d.transferActive, TRANSFER_STARTED); - node->nextEvent += 128; + node->nextEvent += 4; break; case TRANSFER_STARTED: // All the other GBs have caught up and are sleeping, we can all continue now - node->nextEvent += 128; + node->nextEvent += 4; ATOMIC_STORE(node->p->d.transferActive, TRANSFER_FINISHING); break; case TRANSFER_FINISHING: // Finish the transfer // We need to make sure the other GBs catch up so they don't get behind - node->nextEvent += LOCKSTEP_INCREMENT - 256; // Split the cycles to avoid waiting too long + node->nextEvent += node->d.p->period - 8; // Split the cycles to avoid waiting too long #ifndef NDEBUG ATOMIC_ADD(node->p->d.transferId, 1); #endif