@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
19 lines (18 loc) • 644 B
TypeScript
import { PerfCounter } from "../../Misc/perfCounter.js";
import type { Nullable } from "../../types.js";
declare module "../../Engines/abstractEngine.js" {
interface AbstractEngine {
/** @internal */
_gpuFrameTime: Nullable<PerfCounter>;
/**
* Get the performance counter associated with the frame time computation
* @returns the perf counter
*/
getGPUFrameTimeCounter(): PerfCounter;
/**
* Enable or disable the GPU frame time capture
* @param value True to enable, false to disable
*/
captureGPUFrameTime(value: boolean): void;
}
}