소스 검색

Minor change to node.ts so that we update the cache always in hasNewParent(). I tried using updateCache and pass it on through to hasNewParent but this did not work. hence TRUE. Doubled scene rendering performance for us with this change.

andi smithers 7 년 전
부모
커밋
ec59ccfb51
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/babylon.node.ts

+ 1 - 1
src/babylon.node.ts

@@ -351,7 +351,7 @@
 
         /** @hidden */
         public isSynchronized(updateCache?: boolean): boolean {
-            var check = this.hasNewParent();
+            var check = this.hasNewParent(true);
 
             check = check || !this.isSynchronizedWithParent();