Set the quality of rendering based on FPS values.
When using this the size of the canvas must be fixed with CSS.
The addDeltaTime method should be called once every frame.
addDeltaTime
Usage:
const renderer = await compile(...); const autoscaler = new FpsQualityAutoscaler(renderer);
Autoscaling is also done by calling this function
Set the quality of rendering based on FPS values.
When using this the size of the canvas must be fixed with CSS.
The
addDeltaTime
method should be called once every frame.Usage:
const renderer = await compile(...); const autoscaler = new FpsQualityAutoscaler(renderer);