fkkcloud Posted February 15, 2016 Share Posted February 15, 2016 Hi, It seems like phaser game overall speed (not in terms of FPS but overall speed) gets slower for retina display (desktop browser or mobile browser on iPhone6 or Macbook Pro Retina 15inch). When I play it on regular browser (no retina) it seems to have right (faster) speed. What am I missing here? Link to comment Share on other sites More sharing options...
Zeterain Posted February 15, 2016 Share Posted February 15, 2016 The pixel density will be greater on a retina display, so if you were moving 100px/s on a normal screen, it will feel like 50px/s on a retina display. To solve this, you can either scale your game or adjust the velocity of objects when on a retina display. You can use Device.pixelRatio to detect higher DPI devices, including retina displays. You could then just multiply your velocity by that pixel ratio. fkkcloud 1 Link to comment Share on other sites More sharing options...
fkkcloud Posted February 20, 2016 Author Share Posted February 20, 2016 makes perfect sense now. thanks for the suggestion! Link to comment Share on other sites More sharing options...
Recommended Posts