Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the counter within the main while loop
  • Loading branch information
Abhinna Adhikari committed Dec 6, 2020
1 parent eb7b6a8 commit 78b3ff4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions js/canvas.js
Expand Up @@ -203,7 +203,6 @@ async function startSimulation() {
entity.ctx = ctx;
}

let counter = 0;
while (!stop) {
while (pause || stop) {

Expand Down Expand Up @@ -251,10 +250,6 @@ async function startSimulation() {
await animatePacket(packets, allEntities);

// Prevents infinite loop. Take out after testing is complete
++counter;
if (counter > 25) {
break;
}
}

}

0 comments on commit 78b3ff4

Please sign in to comment.