Hey guys,
we are new with agk and stuck a bit with the development. The language is clear and we are able to build amazing things quickly, but our main problem is the performance.
We tried to make a simple side scroller where the player has to avoid to collide with objects, get powerups and so on.
As soon as we tested our software on real android devices, we faced the bitter truth. the frame rate is ok on high-end devices (some slowdowns are recognizable) but on low end or midrange devices the game is simply unplayable.
We tried many things like removing the scrolling background images, increasing or decreasing the image size by the power of 2, remove transparent effects if it’s not absolutely necessary and switching to lower resolutions like 320x240, but nothing seems to effect the performance in a satisfying way.
At first we managed the objects to get randomly created to block the path of the player and get removed as soon as they were out of screen and recreated again in front of the player.
Performance was aweful. Then we tried to build the whole level at the beginning of the game and set the view offset according to the players position (that speed up things a little, but still far from a playable version of the game).
In most cases, we did not have more than 10 sprites on screen simultaniously, none of it larger than 128px x 128px.
What's the trick to increase frame rate and avoid frame rate dropping?
We use the online service to build our apk´s.
Thanks in advance.
404 - signature not found