Skip to content

Commit 6da7368

Browse files
committed
feat: graphic optimization
1 parent af8e5c8 commit 6da7368

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sketch.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ function setup() {
1414

1515
function draw() {
1616
background(255);
17-
1817
aStarIterator.next();
19-
2018
network.show(); // draw it
19+
if (aStarIterator.done) {
20+
noLoop();
21+
}
2122
}
2223

2324
function mousePressed(event) {

0 commit comments

Comments
 (0)