Why my game is very laggy when run on android (phonegap)

Just started using Construct 2? Post your questions here

Post » Thu Oct 20, 2016 9:23 am

Hello guys, i want to ask about something, when i try this game in my computer (localhost:50000), the game is seems fine, but when i export to cordova and use build phonegap. (approx download 10.9 and memory use 523.1 mb and events: 152), the game become super laggy. what best solution for this laggy problem??

thanks before and sorry about my grammar and vocabularies...
B
20
S
7
Posts: 15
Reputation: 1,332

Post » Fri Oct 21, 2016 1:12 pm

1. Check to make sure your device is not on fire, especially if it's a galaxy 7.

2. Read this help on optimizing for mobile and see if any of it will help.
https://www.scirra.com/tutorials/298/performance-tips-for-mobile-games

3. Try running it through a browser on the device and see if it's still laggy, if so you know its not the game but phonegap or cordova where you need to focus.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Wed Oct 26, 2016 1:14 am

Message: Tesamu can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
chrisinfinger wrote:1. Check to make sure your device is not on fire, especially if it's a galaxy 7.

2. Read this help on optimizing for mobile and see if any of it will help.
https://www.scirra.com/tutorials/298/performance-tips-for-mobile-games

3. Try running it through a browser on the device and see if it's still laggy, if so you know its not the game but phonegap or cordova where you need to focus.


okay thank you chrisinfinger, i will try your suggestion, i hope this will be improve my project
B
20
S
7
Posts: 15
Reputation: 1,332

Post » Fri Oct 28, 2016 3:12 pm

I had a similar problem and I solved it partially removing all effects from sprites
B
9
S
4
G
1
Posts: 33
Reputation: 873

Post » Fri Oct 28, 2016 3:34 pm

Typically, I have found the download size, memory usage, and number of events have a smaller impact on the performance than you would originally think. What usually makes the game slow on mobile is the amount of Particles being created and the number of visual effects you have on sprites. You can use the debugger, which is the little bug with the play symbol on it so see what is eating up the most resources. You can check the profile tab of the debugger to see which event sheet/group is using the most resources. I hope this helps!
B
22
S
3
G
4
Posts: 23
Reputation: 3,399


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests