|
@@ -5371,6 +5371,204 @@ declare namespace BABYLON {
|
|
|
|
|
|
declare module BABYLON {
|
|
|
/**
|
|
|
+ * This class can be used to get instrumentation data from a Babylon engine
|
|
|
+ */
|
|
|
+ class EngineInstrumentation implements IDisposable {
|
|
|
+ engine: Engine;
|
|
|
+ private _captureGPUFrameTime;
|
|
|
+ private _gpuFrameTimeToken;
|
|
|
+ private _gpuFrameTime;
|
|
|
+ private _captureShaderCompilationTime;
|
|
|
+ private _shaderCompilationTime;
|
|
|
+ private _onBeginFrameObserver;
|
|
|
+ private _onEndFrameObserver;
|
|
|
+ private _onBeforeShaderCompilationObserver;
|
|
|
+ private _onAfterShaderCompilationObserver;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for GPU frame time
|
|
|
+ */
|
|
|
+ readonly gpuFrameTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the GPU frame time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the GPU frame time capture
|
|
|
+ */
|
|
|
+ captureGPUFrameTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for shader compilation time
|
|
|
+ */
|
|
|
+ readonly shaderCompilationTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the shader compilation time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the shader compilation time capture
|
|
|
+ */
|
|
|
+ captureShaderCompilationTime: boolean;
|
|
|
+ constructor(engine: Engine);
|
|
|
+ dispose(): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
+ * This class can be used to get instrumentation data from a Babylon engine
|
|
|
+ */
|
|
|
+ class SceneInstrumentation implements IDisposable {
|
|
|
+ scene: Scene;
|
|
|
+ private _captureActiveMeshesEvaluationTime;
|
|
|
+ private _activeMeshesEvaluationTime;
|
|
|
+ private _captureRenderTargetsRenderTime;
|
|
|
+ private _renderTargetsRenderTime;
|
|
|
+ private _captureFrameTime;
|
|
|
+ private _frameTime;
|
|
|
+ private _captureRenderTime;
|
|
|
+ private _renderTime;
|
|
|
+ private _captureInterFrameTime;
|
|
|
+ private _interFrameTime;
|
|
|
+ private _captureParticlesRenderTime;
|
|
|
+ private _particlesRenderTime;
|
|
|
+ private _captureSpritesRenderTime;
|
|
|
+ private _spritesRenderTime;
|
|
|
+ private _capturePhysicsTime;
|
|
|
+ private _physicsTime;
|
|
|
+ private _captureAnimationsTime;
|
|
|
+ private _animationsTime;
|
|
|
+ private _onBeforeActiveMeshesEvaluationObserver;
|
|
|
+ private _onAfterActiveMeshesEvaluationObserver;
|
|
|
+ private _onBeforeRenderTargetsRenderObserver;
|
|
|
+ private _onAfterRenderTargetsRenderObserver;
|
|
|
+ private _onAfterRenderObserver;
|
|
|
+ private _onBeforeDrawPhaseObserver;
|
|
|
+ private _onAfterDrawPhaseObserver;
|
|
|
+ private _onBeforeAnimationsObserver;
|
|
|
+ private _onBeforeParticlesRenderingObserver;
|
|
|
+ private _onAfterParticlesRenderingObserver;
|
|
|
+ private _onBeforeSpritesRenderingObserver;
|
|
|
+ private _onAfterSpritesRenderingObserver;
|
|
|
+ private _onBeforePhysicsObserver;
|
|
|
+ private _onAfterPhysicsObserver;
|
|
|
+ private _onAfterAnimationsObserver;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for active meshes evaluation time
|
|
|
+ */
|
|
|
+ readonly activeMeshesEvaluationTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the active meshes evaluation time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the active meshes evaluation time capture
|
|
|
+ */
|
|
|
+ captureActiveMeshesEvaluationTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for render targets render time
|
|
|
+ */
|
|
|
+ readonly renderTargetsRenderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the render targets render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the render targets render time capture
|
|
|
+ */
|
|
|
+ captureRenderTargetsRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for particles render time
|
|
|
+ */
|
|
|
+ readonly particlesRenderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the particles render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the particles render time capture
|
|
|
+ */
|
|
|
+ captureParticlesRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for sprites render time
|
|
|
+ */
|
|
|
+ readonly spritesRenderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the sprites render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the sprites render time capture
|
|
|
+ */
|
|
|
+ captureSpritesRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for physics time
|
|
|
+ */
|
|
|
+ readonly physicsTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the physics time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the physics time capture
|
|
|
+ */
|
|
|
+ capturePhysicsTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for animations time
|
|
|
+ */
|
|
|
+ readonly animationsTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the animations time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the animations time capture
|
|
|
+ */
|
|
|
+ captureAnimationsTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for frame time capture
|
|
|
+ */
|
|
|
+ readonly frameTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the frame time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the frame time capture
|
|
|
+ */
|
|
|
+ captureFrameTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for inter-frames time capture
|
|
|
+ */
|
|
|
+ readonly interFrameTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the inter-frames time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the inter-frames time capture
|
|
|
+ */
|
|
|
+ captureInterFrameTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for render time capture
|
|
|
+ */
|
|
|
+ readonly renderTimeCounter: PerfCounter;
|
|
|
+ /**
|
|
|
+ * Gets the render time capture status
|
|
|
+ */
|
|
|
+ /**
|
|
|
+ * Enable or disable the render time capture
|
|
|
+ */
|
|
|
+ captureRenderTime: boolean;
|
|
|
+ /**
|
|
|
+ * Gets the perf counter used for frame time capture
|
|
|
+ */
|
|
|
+ readonly drawCallsCounter: PerfCounter;
|
|
|
+ constructor(scene: Scene);
|
|
|
+ dispose(): void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ class _TimeToken {
|
|
|
+ _startTimeQuery: Nullable<WebGLQuery>;
|
|
|
+ _endTimeQuery: Nullable<WebGLQuery>;
|
|
|
+ _timeElapsedQuery: Nullable<WebGLQuery>;
|
|
|
+ _timeElapsedQueryEnded: boolean;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+declare module BABYLON {
|
|
|
+ /**
|
|
|
* Highlight layer options. This helps customizing the behaviour
|
|
|
* of the highlight layer.
|
|
|
*/
|
|
@@ -5630,204 +5828,6 @@ declare module BABYLON {
|
|
|
}
|
|
|
|
|
|
declare module BABYLON {
|
|
|
- /**
|
|
|
- * This class can be used to get instrumentation data from a Babylon engine
|
|
|
- */
|
|
|
- class EngineInstrumentation implements IDisposable {
|
|
|
- engine: Engine;
|
|
|
- private _captureGPUFrameTime;
|
|
|
- private _gpuFrameTimeToken;
|
|
|
- private _gpuFrameTime;
|
|
|
- private _captureShaderCompilationTime;
|
|
|
- private _shaderCompilationTime;
|
|
|
- private _onBeginFrameObserver;
|
|
|
- private _onEndFrameObserver;
|
|
|
- private _onBeforeShaderCompilationObserver;
|
|
|
- private _onAfterShaderCompilationObserver;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for GPU frame time
|
|
|
- */
|
|
|
- readonly gpuFrameTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the GPU frame time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the GPU frame time capture
|
|
|
- */
|
|
|
- captureGPUFrameTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for shader compilation time
|
|
|
- */
|
|
|
- readonly shaderCompilationTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the shader compilation time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the shader compilation time capture
|
|
|
- */
|
|
|
- captureShaderCompilationTime: boolean;
|
|
|
- constructor(engine: Engine);
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- /**
|
|
|
- * This class can be used to get instrumentation data from a Babylon engine
|
|
|
- */
|
|
|
- class SceneInstrumentation implements IDisposable {
|
|
|
- scene: Scene;
|
|
|
- private _captureActiveMeshesEvaluationTime;
|
|
|
- private _activeMeshesEvaluationTime;
|
|
|
- private _captureRenderTargetsRenderTime;
|
|
|
- private _renderTargetsRenderTime;
|
|
|
- private _captureFrameTime;
|
|
|
- private _frameTime;
|
|
|
- private _captureRenderTime;
|
|
|
- private _renderTime;
|
|
|
- private _captureInterFrameTime;
|
|
|
- private _interFrameTime;
|
|
|
- private _captureParticlesRenderTime;
|
|
|
- private _particlesRenderTime;
|
|
|
- private _captureSpritesRenderTime;
|
|
|
- private _spritesRenderTime;
|
|
|
- private _capturePhysicsTime;
|
|
|
- private _physicsTime;
|
|
|
- private _captureAnimationsTime;
|
|
|
- private _animationsTime;
|
|
|
- private _onBeforeActiveMeshesEvaluationObserver;
|
|
|
- private _onAfterActiveMeshesEvaluationObserver;
|
|
|
- private _onBeforeRenderTargetsRenderObserver;
|
|
|
- private _onAfterRenderTargetsRenderObserver;
|
|
|
- private _onAfterRenderObserver;
|
|
|
- private _onBeforeDrawPhaseObserver;
|
|
|
- private _onAfterDrawPhaseObserver;
|
|
|
- private _onBeforeAnimationsObserver;
|
|
|
- private _onBeforeParticlesRenderingObserver;
|
|
|
- private _onAfterParticlesRenderingObserver;
|
|
|
- private _onBeforeSpritesRenderingObserver;
|
|
|
- private _onAfterSpritesRenderingObserver;
|
|
|
- private _onBeforePhysicsObserver;
|
|
|
- private _onAfterPhysicsObserver;
|
|
|
- private _onAfterAnimationsObserver;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for active meshes evaluation time
|
|
|
- */
|
|
|
- readonly activeMeshesEvaluationTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the active meshes evaluation time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the active meshes evaluation time capture
|
|
|
- */
|
|
|
- captureActiveMeshesEvaluationTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for render targets render time
|
|
|
- */
|
|
|
- readonly renderTargetsRenderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the render targets render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the render targets render time capture
|
|
|
- */
|
|
|
- captureRenderTargetsRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for particles render time
|
|
|
- */
|
|
|
- readonly particlesRenderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the particles render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the particles render time capture
|
|
|
- */
|
|
|
- captureParticlesRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for sprites render time
|
|
|
- */
|
|
|
- readonly spritesRenderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the sprites render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the sprites render time capture
|
|
|
- */
|
|
|
- captureSpritesRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for physics time
|
|
|
- */
|
|
|
- readonly physicsTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the physics time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the physics time capture
|
|
|
- */
|
|
|
- capturePhysicsTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for animations time
|
|
|
- */
|
|
|
- readonly animationsTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the animations time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the animations time capture
|
|
|
- */
|
|
|
- captureAnimationsTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for frame time capture
|
|
|
- */
|
|
|
- readonly frameTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the frame time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the frame time capture
|
|
|
- */
|
|
|
- captureFrameTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for inter-frames time capture
|
|
|
- */
|
|
|
- readonly interFrameTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the inter-frames time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the inter-frames time capture
|
|
|
- */
|
|
|
- captureInterFrameTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for render time capture
|
|
|
- */
|
|
|
- readonly renderTimeCounter: PerfCounter;
|
|
|
- /**
|
|
|
- * Gets the render time capture status
|
|
|
- */
|
|
|
- /**
|
|
|
- * Enable or disable the render time capture
|
|
|
- */
|
|
|
- captureRenderTime: boolean;
|
|
|
- /**
|
|
|
- * Gets the perf counter used for frame time capture
|
|
|
- */
|
|
|
- readonly drawCallsCounter: PerfCounter;
|
|
|
- constructor(scene: Scene);
|
|
|
- dispose(): void;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
- class _TimeToken {
|
|
|
- _startTimeQuery: Nullable<WebGLQuery>;
|
|
|
- _endTimeQuery: Nullable<WebGLQuery>;
|
|
|
- _timeElapsedQuery: Nullable<WebGLQuery>;
|
|
|
- _timeElapsedQueryEnded: boolean;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-declare module BABYLON {
|
|
|
class LensFlare {
|
|
|
size: number;
|
|
|
position: number;
|