Mobile games performance, let's be honest

Discussion and feedback on Construct 2

Post » Sat Feb 22, 2014 12:07 pm

@Silverforce You mean debug inspector run from Construct 2?

Where exacly i must look to find high CPU usage ?

Image
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

Post » Sat Feb 22, 2014 12:11 pm

How can your scene have 3682 object? Unless you have each grass blade as a separate object, and with some behaviour as well? 37.3% of CPU cycles eaten by the Engine alone is MASSIVE.

I have a Core i5-3770K and my game has like 5 to 10% TOTAL CPU on the PC. I have over 3,600 events in C2... let me capture a debug shot for you asap.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Sat Feb 22, 2014 12:17 pm

@Silverforce my layout is very long but performance is low when its too much object ON WINDOW not on layout (i read about this somewhere in forum)

If you need something let me know
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

Post » Sat Feb 22, 2014 12:29 pm

If your off-layout objects are affecting performance, it is a serious issue.

Ashley could help here if you send your CAPX, without it, nobody can figure it out. It feels like its rendering everything on your entire layout all at once, and its just so slow. Here's a shot from a more complex scene, lots of explosions and particles, 15% is about the max I see on CPU.

Image
Last edited by Silverforce on Sat Feb 22, 2014 12:39 pm, edited 1 time in total.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Sat Feb 22, 2014 12:33 pm

@Silverforce but what if nature of my game requires this solution? i need long layout ;/
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

Post » Sat Feb 22, 2014 12:36 pm

@delgado Yes indeed it is definitely the engine processing your entire layout, thats why its 37% of your CPU, and draw calls (on screen objects) are low at 10%.. behaviours of objects offscreen but on the layout are still functioning, if you got them all active it would definitely explain that.

Perhaps disable the behaviours first, and make a trigger: If Object is onscreen (or check for X axis/location), Enable Behaviour.

Another thing is to disable Collisions on all your objects, and have it Enable when its visible/onscreen with a trigger.

Lots of tweaks and stuff you can do to improve performance. C2 is very easy to use but it takes some practice to optimize it for mobiles. Good luck!
Last edited by Silverforce on Sat Feb 22, 2014 1:11 pm, edited 1 time in total.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Sat Feb 22, 2014 12:41 pm

ok i will try do some changes
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

Post » Mon Feb 24, 2014 5:12 pm

@Silverforce hi, i do some changes. I create simple event when pickupable items are not on screen disable collisions but when is on screen enable (i dont use families) now when i pick up first items i have error

And second thing, i prabably cant do anything more because in game only you pick up items i dont use any behaviors everything is static
Image
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

Post » Mon Feb 24, 2014 7:02 pm

anyway i disable collisions for all other sprites and this not help me. Anyone have some tips to improve performance?
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

Post » Mon Feb 24, 2014 8:04 pm

bump
B
109
S
26
G
46
Posts: 1,887
Reputation: 35,170

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests