Super slow game - what am I doing wrong?

Discussion and feedback on Construct 2

Post » Thu Jun 19, 2014 12:11 am

First off, yes, I know there is a performance thread right under this one.

I have a game developed for Android. It is extremely slow and I'm not sure why. I've followed all the advice in the performance tips thing.

Even on my first screen the app is horribly slow.

First screen: there are only 6 objects, no blend modes, clear background is set to NO, physics is disabled, only visual effect is FLASH on one object, zero loops.

I have no idea why this is running so slowly. My game seems incredibly non-complex and I really need to figure out how to solve this as it is a project for a client that needs to be published in the next few days. Any help is greatly appreciated.
B
5
Posts: 10
Reputation: 245

Post » Thu Jun 19, 2014 12:50 am

Sorry forgot to include the .capx file. I edited it to only include the first scene. Still having the problem.

https://www.sendspace.com/file/74s05p
B
5
Posts: 10
Reputation: 245

Post » Thu Jun 19, 2014 1:07 am

One major problem is you are calling Wait continuously in your transition events. Wait does not block, it pushes the lower events off to run later.

https://www.scirra.com/manual/125/system-actions

You don't need 'Every tick, as all of those events run every tick.
ImageImageImage
B
71
S
22
G
247
Posts: 3,753
Reputation: 137,552

Post » Thu Jun 19, 2014 1:11 am

Hmm. I'm going to try cutting out the Wait commands and re-exporting, thanks for the tip.

So does using every tick a lot slow down the game? In my full project I have about 20 events that activate every tick.
B
5
Posts: 10
Reputation: 245

Post » Thu Jun 19, 2014 2:25 am

Here's a quick fix. Your graphics are also very large. I've had to trim them out just because I was having trouble getting the file uploaded to Scirra. It kept timing out. The events run every tick already, so adding that event to another is redundant.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
247
Posts: 3,753
Reputation: 137,552


Return to Construct 2 General

Who is online

Users browsing this forum: Cryttexx and 6 guests