UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

32 lines (31 loc) 1.18 kB
/** * 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 OnViewerControlsEventJsParamsConfig extends NodeParamsConfig { } export declare class OnViewerControlsEventJsNode extends TypedJsNode<OnViewerControlsEventJsParamsConfig> { readonly paramsConfig: OnViewerControlsEventJsParamsConfig; static type(): JsType; isTriggering(): boolean; static OUTPUT_NAME_START: string; static OUTPUT_NAME_END: string; initializeNode(): void; setTriggeringLines(linesController: JsLinesCollectionController, triggeredMethods: string): void; } export {};