Browse Source

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 năm trước cách đây
mục cha
commit
ec59ccfb51
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/babylon.node.ts

+ 1 - 1
src/babylon.node.ts

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