split present() from root.frameMove() (#4647)

This commit is contained in:
Weiliang Wang
2019-06-18 16:51:11 +08:00
committed by GitHub
parent 862d2a31ae
commit 6af6af35b2
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -1071,12 +1071,15 @@ class Director extends EventTarget {
this._physicsSystem!.update(this._deltaTime);
this.emit(cc.Director.EVENT_BEFORE_DRAW);
this._root!.frameMove(this._deltaTime); // Render
this._root!.frameMove(this._deltaTime);
this.emit(cc.Director.EVENT_AFTER_DRAW);
eventManager.frameUpdateListeners();
if (this._scene) { this._scene.resetHasChanged(); }
this._totalFrames++;
// Present current frame
this._root!.device.present();
}
}
+1 -1
View File
@@ -281,7 +281,7 @@ export class Root {
}
}
this._device.present();
// this._device.present();
}
/**