Search code examples
performanceunity-game-engineresolutionretina-displayunity-webgl

Unity WebGL performance issues on Retina (MacBook)


I developed a WebGL Unity 3D app with a 3d character that can navigate in the environment (mouse navigation and WASD) and interact with some objects. On windows it is all great and the FPS is 45-60 and the resolution is 1920 * 1xxx. On Macs the performance drops to 13-17 because of Retina and the resolution is 3300 * 2100 (double the laptop's resolution). How can I handle this ? Any help would be appreciated.Thanks in advance!


Solution

  • I needed to add a JavaScript code to the html file to set the DPI to 1