mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
update _deltaTime calculate for editor (#7503)
This commit is contained in:
@@ -1000,9 +1000,13 @@ export class Director extends EventTarget {
|
||||
}
|
||||
else if (!this._invalid) {
|
||||
// calculate "global" dt
|
||||
if (!EDITOR || legacyCC.GAME_VIEW) {
|
||||
if (EDITOR && !legacyCC.GAME_VIEW) {
|
||||
this._deltaTime = time;
|
||||
}
|
||||
else {
|
||||
this.calculateDeltaTime(time);
|
||||
}
|
||||
|
||||
const dt = this._deltaTime;
|
||||
|
||||
// Update
|
||||
|
||||
Reference in New Issue
Block a user