Max Rendering Resolution

Is there a way to set the engine to a max rendering resolution. I want to take up all the browser window so i use width and height 100% on the canvas. But some use have large resolution and like 2560 x 1330 … And the frame rate drops… if the resize the browser to not be maximized and make it around 1440 x 720 the fps goes back up to 60

So is there a way to have engine render maximized up until a max resolution of 1440 x 720 for example

You could try engine.setHardwareScalingLevel() > 1.0