Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
ec59ccfb51
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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();