取消entitylist双缓冲区 使用分帧优化大数量实体时卡顿问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user