新增scene.optimizeCost参数 用于优化cost过高情况

This commit is contained in:
yhh
2020-09-16 14:48:15 +08:00
parent 8e97dcda9c
commit 52980f0b55
9 changed files with 90 additions and 21 deletions

View File

@@ -365,6 +365,7 @@ declare module es {
readonly _postProcessors: PostProcessor[];
_didSceneBegin: any;
dynamicBatch: boolean;
optimizeCost: boolean;
constructor();
static createWithDefaultRenderer(): Scene;
initialize(): void;
@@ -378,6 +379,7 @@ declare module es {
update(): void;
render(): void;
dynamicInBatch(): void;
private optimizeCombine;
postRender(): void;
requestScreenshot(callback: Function): void;
addSceneComponent<T extends SceneComponent>(component: T): T;