Browse Source

Merge remote-tracking branch 'upstream/master'

sebastien 7 năm trước cách đây
mục cha
commit
ae7ead46d9
2 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 1 0
      dist/preview release/what's new.md
  2. 1 1
      src/babylon.node.ts

+ 1 - 0
dist/preview release/what's new.md

@@ -115,6 +115,7 @@
 - BoundingBoxGizmo scalePivot field that can be used to always scale objects from the bottom ([TrevorDev](https://github.com/TrevorDev))
 - Improved _isSyncronized performance and reduced GC in TransformNode.computeWorldMatrix by directly reading property. ([Bolloxim](https://github.com/Bolloxim))
 - Added supports for reflectionMatrix in Skybox Mode Cube Texture allowing offsetting the world center or rotating the matrix ([sebavan](http://www.github.com/sebavan))
+- Improved performance of cached nodes but ensuring parent always updates cache. This removes failed isSynchronized test that meant computeWorldMatrix would always have to rebuild. On large scenes this could double framerate. ([Bolloxim](https://github.com/Bolloxim))
 
 ### glTF Loader
 

+ 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();