Game Lags First Time Only

Discussion and feedback on Construct 2

Post » Wed Mar 29, 2017 11:36 am

Hi,
I'm working on a platformer game for android, and using cocoon.io to export.
When i open the app, and go to level 1 for the first time, there's a lag (stutter-like 1-2 seconds randomly)
But when i restart the layout after that lag, the game runs smoothly.

Doesn't Construct 2 preload all of the image or assets at the start of the app?
B
41
S
21
G
27
Posts: 39
Reputation: 17,252

Post » Thu Mar 30, 2017 11:10 am

No, C2 loads the images placed on that layout into memory when you visit it. That's what causes the lag probably.

Do you use big or tons of smaller images?
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717

Post » Thu Mar 30, 2017 2:41 pm

glerikud wrote:No, C2 loads the images placed on that layout into memory when you visit it. That's what causes the lag probably.

Do you use big or tons of smaller images?


Ah i see :(
My platformer game uses pixel art with mostly 16x16 art
But the layout is 3000 x 320 pixel
B
41
S
21
G
27
Posts: 39
Reputation: 17,252

Post » Thu Mar 30, 2017 3:56 pm

Then that shouldn't be the issue. Also, the size of the layout don't affect performance.
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,717


Return to Construct 2 General

Who is online

Users browsing this forum: technofou and 12 guests