How do I reduce loading times when testing my game

Get help using Construct 2

Post » Sat Aug 06, 2016 1:35 pm

hello everyone I been working on my game Reload (viewtopic.php?t=163245)
for 6 months and it is my first game so I made a ton of rookie mistakes like having a large amount of events and huge sprites and now that I am working on later levels and my loading times on my test game is getting longer and longer right now it is like 40 seconds which may not seem long but when you are making tiny changes to the enemy actions then testing the game to see if it worked it it is very frustrating. so is there anyway to reduce loading times does C2 load everything at once or does it load one layout at a time?
B
14
S
4
Posts: 125
Reputation: 1,385

Post » Sat Aug 06, 2016 9:27 pm

It only loads what's needed for the first layout so the memory usage must be huge, or it's some other performance issue like maybe your PC spec.
B
46
S
16
G
78
Posts: 2,170
Reputation: 46,357

Post » Sun Aug 07, 2016 5:41 am

err my memory use is 137.5mb that's bad isn't it?
B
14
S
4
Posts: 125
Reputation: 1,385

Post » Sun Aug 07, 2016 11:59 am

As far as I know, it isn't only based on memory, it's also based on the download size but mostly memory & computer specs.
If you have a good device then it might be your game otherwise it is the other way around.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Sun Aug 07, 2016 2:58 pm

If you are trying to reduce load time just for testing you could isolate what you are testing in a separate layout
ImageImageImage
B
40
S
23
G
11
Posts: 498
Reputation: 10,062

Post » Sun Aug 07, 2016 4:28 pm

Yeah you should be looking to get it below 100mb
B
46
S
16
G
78
Posts: 2,170
Reputation: 46,357

Post » Mon Aug 08, 2016 9:28 am

PrinceofMars wrote:hello everyone I been working on my game Reload (viewtopic.php?t=163245)
for 6 months and it is my first game so I made a ton of rookie mistakes like having a large amount of events and huge sprites and now that I am working on later levels and my loading times on my test game is getting longer and longer right now it is like 40 seconds which may not seem long but when you are making tiny changes to the enemy actions then testing the game to see if it worked it it is very frustrating. so is there anyway to reduce loading times does C2 load everything at once or does it load one layout at a time?


137 mb memory use isn't that bad, depending on the size of the game of course :) But it shouldn't give loading times of up to 40 second I think.

In my experience what can really drive up loading times are audio files, so if you have a lot of those you can remove them and simply add them at the end, maybe just replace them with some very short ones so you can add the functionality and easily replace them later on.

However it seems there is a bug or some weird handling of audio files in C2 (Not confirmed) but if you for instant add a big audio file, lets say some background music and tell it play you will experience higher loading times, however simply disabling the event that plays the audio will not improve loading time, neither will removing the event. You have to delete the actual audio file from the project, before you will get any improved performance when it comes to loading, it seems.

So maybe replacing such files with 1 s empty sounds until you are done with the game could be a solution. That might be your problem if you have lots of audio in your game.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Sun Aug 14, 2016 3:49 pm

Sorry for my delayed response, I have been on holiday. I have just deleted the all the music and sound effects in my game to see if it had any effect and it did not, so I made a new layout with nothing in it and it is still taking up to 40 seconds to load. Without music it is a download of 3.8MB and a memory use of 137.5mb with 1850 events honestly, this is ruining game making for me, I put so much effort into this thing and I may have to to stop now because it is taking forever to do anything
B
14
S
4
Posts: 125
Reputation: 1,385

Post » Fri Sep 09, 2016 12:15 pm

From my experience its the size of the graphics files. If you have any graphics that are 200kb a piece or more it can cause loading time slowdown. I been away for a couple of months but Iam back now. Hit me up when you got time trust me I know how maddening it is to work on a game so long and it glitches out. Usually thats why developers tell newer developers to start on small projects before going into really big ones.
If nothing works and for some reason the game has to be redone , I will help you out. I will show you how to organize your events sheet so pin pointing a problem will not be hard. Also give you more tips on optimizing your game as well. Don't give up you made a much better 1st game then I ever did. Success only comes to those who fight through the tough times. You got talent to go far so don't give up.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 682
Reputation: 16,615


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 45 guests