取消entitylist双缓冲区 使用分帧优化大数量实体时卡顿问题

This commit is contained in:
yhh
2020-10-09 16:59:34 +08:00
parent 74fcfd7778
commit 0e7b0bc45c
9 changed files with 143 additions and 116 deletions

View File

@@ -412,16 +412,6 @@ module es {
return this.addEntity(entity);
}
/**
* 将实体添加到此场景,并返回它
* @param name
*/
public createEntityAsync(name: string): Promise<Entity> {
return new Promise<Entity>(resolve => {
resolve(this.createEntity(name));
});
}
/**
* 在场景的实体列表中添加一个实体
* @param entity