File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 514514 stage = new createjs . Stage ( canvas ) ;
515515
516516 createjs . Ticker . framerate = 60 ;
517- createjs . Ticker . addEventListener ( "tick" , stage ) ;
517+ // createjs.Ticker.addEventListener("tick", stage); // Managed by Activity class
518518 }
519519 document . addEventListener ( "DOMContentLoaded" , init ) ;
520520 </ script >
Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ Turtles.TurtlesModel = class {
536536 * @returns {void }
537537 */
538538 addTurtleGraphicProps ( turtle , blkInfoAvailable , infoDict ) {
539- setTimeout ( ( ) => {
539+ requestAnimationFrame ( ( ) => {
540540 if ( blkInfoAvailable ) {
541541 if ( "heading" in infoDict ) {
542542 turtle . painter . doSetHeading ( infoDict [ "heading" ] ) ;
@@ -562,7 +562,7 @@ Turtles.TurtlesModel = class {
562562 turtle . rename ( infoDict [ "name" ] ) ;
563563 }
564564 }
565- } , 2000 ) ;
565+ } ) ;
566566 }
567567
568568 /**
You can’t perform that action at this time.
0 commit comments