I need guidelines to reduce the resources my game requires

Get help using Construct 2

Post » Mon Mar 23, 2015 7:39 am

Currently if I test the game in C2, my laptop starts to slow down.
The game sometimes jitters, the sound also on and off.

So does anyone has a good tutorial / guidelines for creating good performance game?

(I hope I still have time to upload it in in amazon)

My game:
Approx. download: 23.2 Mb
Memory use: 145.4

I've done:
Set clear background to No.
Crop transparency.
B
10
S
5
Posts: 220
Reputation: 1,464

Post » Mon Mar 23, 2015 8:23 am

B
26
S
17
G
8
Posts: 322
Reputation: 6,017

Post » Mon Mar 23, 2015 9:36 am

I have seen a youtube video made by a C2 user. His great tip was to disable all collision from the start. Only enable collisions for the sprites if they are on screen.
Collisions check often requires much resources. Especially for big platform levels.
It's time for me to return the favor :)
B
32
S
9
G
8
Posts: 132
Reputation: 4,870

Post » Mon Mar 23, 2015 5:18 pm

It's hard to give any real feedback in terms of how to reduce the resources the game needs without knowing what kind of game it is or what it's doing. Your memory usage seems really low, though, so my guess would be that isn't the issue and there's something in your events slowing things down.
B
61
S
36
G
18
Posts: 488
Reputation: 16,375

Post » Mon Mar 23, 2015 7:41 pm

The game is now at: http://dapur-uang.com/games/catching-a-star-for-wulan/

Reading the links fisholith gave me I made some changes with the coding, especially the collisions. Which is basically almost like ikke2902 describes.

I use groups and subgroups which I deactivate when not in used, for example for the bosses.

I make sure things that only be executed 1 time, only 1 time executed.

I give up some animations that requires spawning many objects.

It is a bit better now, but ... it is still super slow when I test it on my samsung youth handphone.
B
10
S
5
Posts: 220
Reputation: 1,464


Return to How do I....?

Who is online

Users browsing this forum: LukeW and 11 guests