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); Copy
const renderer = await compile(...); const autoscaler = new FpsQualityAutoscaler(renderer);
When false, FPS is still measured but the render scales are left alone.
false
Static
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
addDeltaTimemethod should be called once every frame.Usage: