Appsurd
Member
A few months ago, I decided to move to GMS2. Porting all projects was relatively easy, however, apps are not running smoothly anymore on my Android phone (Samsung Galaxy A8). I have tried to optimize the game as much as possible, e.g. by removing all compatibility scripts and implementing the functionality myself. Using GMS1, all apps ran with 60 fps but now, it hangs around 45-52.
Since I had no idea what was going wrong, I decided to use the profiler. All numbers looked pretty okay to me. Thereafter a created an empty project, with just 1 room and 1 object. This object draws a sprite as background (1080x1920). After compiling this project, it showed the exact same behaviour: the fps drops to 45-52. The strange thing is that friends of mine with comparable phones, can run the game smoothly with 59-60 fps. I know some Android decides have a maximum framerate (and for some, this is 45). My phone probably doesn't, because I sometimes exceed 45 fps and projects from GMS1 did run smoothly with 60 fps.
Besides these things, I tried several other stuff:
Tested this using IDE v2.2.3.436 and Runtime v2.2.3.344
Since I had no idea what was going wrong, I decided to use the profiler. All numbers looked pretty okay to me. Thereafter a created an empty project, with just 1 room and 1 object. This object draws a sprite as background (1080x1920). After compiling this project, it showed the exact same behaviour: the fps drops to 45-52. The strange thing is that friends of mine with comparable phones, can run the game smoothly with 59-60 fps. I know some Android decides have a maximum framerate (and for some, this is 45). My phone probably doesn't, because I sometimes exceed 45 fps and projects from GMS1 did run smoothly with 60 fps.
Besides these things, I tried several other stuff:
- Tried to disable vsync which was found by RyanC: https://forum.yoyogames.com/index.php?threads/game-runs-much-slower-on-gms2.63920/ Did not change anything
- Implemented delta_time in my projects. This does not increase fps, but should run the project smoother. This did however not happen.
- Experimented with sleep margin. I raised sleep margin from 4 to 5 to 10, but no result at all.
Tested this using IDE v2.2.3.436 and Runtime v2.2.3.344