Hi guys,
Finally finished our first game with babylon.js.But there is one issue regarding the viewport tag in .html file.
This viewport is lagging(blurry and slow).
@Deltakosh
Thanks.But why should i set hardware scaling by default?.I mean can you explain to me why game becomes blurry,when i set width=device-width in viewport
@Deltakosh .Okay
1.So setting hardware scale is the only way to fix this issue?
2.Is there any way to set our game’s canvas resolution like in phaser engine,
3.When i inspect .html ,i found that at first CANVAS will have random resolution,on full screen it is changing to 720*1280.
4.Or is there any way to rerender scene with new resolution?
the setHardwareScalingLevel is the way for you to restore the resolution to the value you want by multiplying the current canvas size by a factor (1/level)
Other option is to manually set canvas.width and canvas.height and call engine.resize()