1 decade ago by stahlmanDesign
When viewing an Impact game in the iPad browser, it's fine until you rotate it.
I have a game whose canvas is 1024x768 -- the iPad screen size. When it's rotated and then rotated back, iOS wants to scale it up, and this turns out to be really bad for Impact. There's something about redrawing the canvas at a blown-up size that makes frame rate slow to a crawl. Is there a way to prevent this scaling in the mobile browser?
Also, when you rotate, the X,Y coordinates get confused and ig.input.mouse.x & y are no longer where you touch -- as well as when scaling UP (not down)
If it were packaged as an app these things wouldn't happen, but when using the browser, I wonder are there any contingency plans to maintain performance?
I have a game whose canvas is 1024x768 -- the iPad screen size. When it's rotated and then rotated back, iOS wants to scale it up, and this turns out to be really bad for Impact. There's something about redrawing the canvas at a blown-up size that makes frame rate slow to a crawl. Is there a way to prevent this scaling in the mobile browser?
Also, when you rotate, the X,Y coordinates get confused and ig.input.mouse.x & y are no longer where you touch -- as well as when scaling UP (not down)
If it were packaged as an app these things wouldn't happen, but when using the browser, I wonder are there any contingency plans to maintain performance?