How do I Get my game to run faster!

Get help using Construct 2

Post » Sun Sep 27, 2015 9:55 am

Hi all, I have just made a game and built in Intel Xdk. Installed on my Samsung Tab and it runs very slow.
It is not a big game by any means. One player trying to avoid some obstacles.
Huge games such as Real Racing 3 run how they should so what is going wrong?

Appreciate some suggestions.

Cheers
B
34
S
3
G
1
Posts: 46
Reputation: 1,675

Post » Sun Sep 27, 2015 11:24 am

Optimize your game:

Layout
- Run in Debug mode and at the top see how many objects are currently active. Try to remove some by using clones instead of new objects for every sprite.
- Too many effects and big images with alpha channel can go heavy on mobile devices

Events sheet
1. Use groups to group similar actions in your event sheets
2. Use Debug mode -> Profile to see which groups are using the most CPU
3. Try to improve the code by removing or replacing conditions and actions (use functions, less events that trigger on every tick, etc.)

Only a single thing can cause a big problem.
I've made a little game like this in the past and by adding a transparent background image (that changes colors randomly) with lighting effects I was able to add 0.5 seconds of lag to the controls.
Ba-dum Tsss!
B
11
S
2
G
1
Posts: 45
Reputation: 757

Post » Sun Sep 27, 2015 1:48 pm

Hi, thanks for the tips. I'm onto it. Let you know how it goes.
B
34
S
3
G
1
Posts: 46
Reputation: 1,675

Post » Mon Sep 28, 2015 5:47 am

Message: danul777 can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
https://www.scirra.com/manual/134/performance-tips

and

https://www.scirra.com/blog/83/optimisa ... -your-time
B
8
S
3
Posts: 100
Reputation: 1,023


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests