@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
33 lines (32 loc) • 1.29 kB
TypeScript
/**
* sends a trigger when the performance goes below a threshold
*
* @remarks
*
* The performance is a number that goes from 0 to 1.
*
* It is calculated like this: `performance = current FPS / desired FPS`.
*
* Therefore, a performance of 1 means that the scene is running smoothly.
*
* A performance of 0.5 means it is quite choppy. (around 30fps, if the desired fps is 60)
*
*
*/
import { TypedJsNode } from './_Base';
import { NodeParamsConfig } from '../utils/params/ParamsConfig';
import { JsType } from '../../poly/registers/nodes/types/Js';
import { JsLinesCollectionController } from './code/utils/JsLinesCollectionController';
declare class OnPerformanceChangeJsParamsConfig extends NodeParamsConfig {
threshold: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>;
}
export declare class OnPerformanceChangeJsNode extends TypedJsNode<OnPerformanceChangeJsParamsConfig> {
readonly paramsConfig: OnPerformanceChangeJsParamsConfig;
static type(): JsType;
isTriggering(): boolean;
static OUTPUT_NAME_ABOVE: string;
static OUTPUT_NAME_BELOW: string;
initializeNode(): void;
setTriggeringLines(shadersCollectionController: JsLinesCollectionController, triggeredMethods: string): void;
}
export {};