- Edited
Hey,
I have a problem with HTML5 2D game because of low FPS on iOS. My problem occurs on newer iPhones (11 Pro), while on a little bit older ones (X, 6s etc.) it mostly works fine. On iPhone 11 Pro I'm getting 14-17 FPS on static pages without any animations and on animated ones, while on iPhone 6s I can get up to 60 FPS which is perfect. Meanwhile iPhone X is running at 60 FPS on iOS 15 beta version, while on 14.7 it is running at around 45-50 FPS which is still ok. I tested on Windows and MacOS also and it works fine at 60 FPS. Window resolution is set to 1232 x 694 and enabled 2d expand stretch mode.
I figured out that with disabling hidpi option I can improve performance on 11 Pro, but then quality of the game is terrible. I also figured that if I enable hidpi and disable strech mode (which I want to have on and set to 2D expand to support multiple resolutions), then it will run the game at 60 FPS also but I lose support for multiple resolutions which is necessary.
EDIT: I forgot to add that I'm exporting this game as GLES2 since GLES3 is not supported for iOS version yet (it will be supported on iOS 15 with support for WebGL 2). Also ... same problem occurs on either Safari or Chrome so it's not related to specific browser issues. I'm using Godot v3.3
Do you have any suggestions?