Browse Source

Expsoing performanceMonitor

David Catuhe 8 năm trước cách đây
mục cha
commit
4840f90b67

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4348 - 4347
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4 - 4
dist/preview release/babylon.js


+ 7 - 0
dist/preview release/babylon.max.js

@@ -8075,6 +8075,13 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Object.defineProperty(Engine.prototype, "performanceMonitor", {
+            get: function () {
+                return this._performanceMonitor;
+            },
+            enumerable: true,
+            configurable: true
+        });
         Object.defineProperty(Engine.prototype, "texturesSupported", {
             get: function () {
                 return this._texturesSupported;

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4348 - 4347
dist/preview release/babylon.module.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 4 - 4
dist/preview release/babylon.worker.js


+ 4 - 0
src/babylon.engine.ts

@@ -622,6 +622,10 @@
         private _fps = 60;
         private _deltaTime = 0;
 
+        public get performanceMonitor(): PerformanceMonitor {
+            return this._performanceMonitor;
+        }
+
         // States
         private _depthCullingState = new Internals._DepthCullingState();
         private _stencilState = new Internals._StencilState();