speed-up WARP by eliminating the yield at the end

now possible due to the new Morphic2 architecture
pull/95/head
jmoenig 2020-04-22 09:51:58 +02:00
rodzic f9369fe501
commit 8aa65c7c85
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -2074,8 +2074,10 @@ Process.prototype.doWarp = function (body) {
stage.fps = 0; // variable frame rate
}
}
this.pushContext('doYield');
this.context.isCustomBlock = isCustomBlock;
// this.pushContext('doYield'); // no longer needed in Morphic2
if (this.context) {
this.context.isCustomBlock = isCustomBlock;
}
if (!this.isAtomic) {
this.pushContext('doStopWarping');
}