Question regarding how memory in construct works.

Discussion and feedback on Construct 2

Post » Fri Oct 10, 2014 10:31 am

Hi. I have 2 pictures here. One of my construct 2 window showing expected download and memory use size, the other shows my actual memory usage in the task manager.

http://puu.sh/c6Fmw/1840fe9c21.png
http://puu.sh/c6Fmz/652295bc0f.png

I would really appreciate if someone can explain what happens behind the curtains. Why are there 3 instances of the game running, and why is the memory usage almost 3 times of the expected value? Anything I can do to get it closer to the expected 365mb of memory consumption?

Thanks
B
29
S
9
Posts: 356
Reputation: 2,938

Post » Fri Oct 10, 2014 1:11 pm

I guess you exported your game with Node-Webkit?

So, I think in Construct 2 you see the memory usage only of your game (all the images, sounds), but when
you actually run the game then the run-time (Node-Webkit) needs memory too, because in the end Node-Webkit is a special version of the Chrome browser. And it's not 3 instances of your game running, it's 3 threads of Chrome/Webkit.
B
11
S
2
Posts: 213
Reputation: 1,266

Post » Fri Oct 10, 2014 2:00 pm

Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,454

Post » Fri Oct 10, 2014 3:59 pm

Chupup Games wrote:I guess you exported your game with Node-Webkit?

So, I think in Construct 2 you see the memory usage only of your game (all the images, sounds), but when
you actually run the game then the run-time (Node-Webkit) needs memory too, because in the end Node-Webkit is a special version of the Chrome browser. And it's not 3 instances of your game running, it's 3 threads of Chrome/Webkit.


Thanks for the reply. Still not quite sure what the numbers really mean though. I would guess the thread of 25 mb is the " mainchrome thread" running. What I don't understand is the 300 mb and 600 mb. Is the 300 MB all the assets loaded in, and the 600 mb the memory consumption of the current active layout?
B
29
S
9
Posts: 356
Reputation: 2,938


Return to Construct 2 General

Who is online

Users browsing this forum: vegapomme27 and 1 guest