Why exported proyects do this?

Get help using Construct 2

Post » Tue Feb 02, 2016 2:47 am

I hope this is the right place to post this.

Hello, I noticed that all my exported NWjs tests not only create 4 instances in the task manager but 3 of them always eat up my RAM constantly until I close the game/test. It doesnt matter if I stop doing things and just leave the game open...It keeps eating RAM (except for 1 of the 4, that one only grows everytime you do something like adding value to a variable).

So my question: Is this normal? Am I doing something wrong with my proyects? Some bad configuration perhaps?
Again, this is not for online/browser games, this is for NWjs...deskopt games...just in case.

Thanks in advance and sorry if my english sounds weird, its not my native language.
B
10
S
1
G
1
Posts: 21
Reputation: 1,011

Post » Tue Feb 02, 2016 3:04 am

I believe it is normal. Is the ram usage large?

NWjs is basically a standalone version of Chrome - if you use Chrome, you might notice that there are TONS of instances of chrome in Windows task manager.

I would worry if they are still there when you close the game.
Mistakes were made.
B
47
S
23
G
107
Posts: 1,571
Reputation: 60,133

Post » Tue Feb 02, 2016 3:54 am

I thought about the similitude with Chrome too, I guess having 4 instances is not that bad but...something as simple as this proyect eats around 160mb total....and It eats more and more ram no matter what while its playing

edit: I wanted to attach the file here, do I need to upload it to mediafire or something?

Anyway its an almost blank proyect with just "Click this sprite = add 1 to variable" and a textlabel showing the variable
B
10
S
1
G
1
Posts: 21
Reputation: 1,011

Post » Tue Feb 02, 2016 4:12 am

If the RAM usage keeps going up even when doing nothing, that is something to look into. I've used NWjs only for a simple file parsing program - that had 3 instances and maybe about 70mb ram. The ram usage definitely did not keep increasing.

Use the debugger to see if anything is constantly changing, or if you don't mind posting the capx someone could check.
Mistakes were made.
B
47
S
23
G
107
Posts: 1,571
Reputation: 60,133

Post » Tue Feb 02, 2016 4:23 am

The only thing that keeps moving is the "Tick count". If I remove the only "Every tick" condition and I go to the task manager...only 1 of the 4 instances is constantly eating RAM.

Yes I have no problem posting the capx, but I dont know If I have to upload it somewhere and post the link or is there other way?
B
10
S
1
G
1
Posts: 21
Reputation: 1,011

Post » Tue Feb 02, 2016 7:35 pm

most people use dropbox to share there .capx files
B
29
S
13
G
10
Posts: 355
Reputation: 8,312

Post » Tue Feb 02, 2016 7:57 pm

Thanks Carbincopy!
I leave the capx here:
Code: Select all
https://www.dropbox.com/s/xp2olndc6n51nbk/test_1.capx?dl=0
B
10
S
1
G
1
Posts: 21
Reputation: 1,011

Post » Wed Feb 03, 2016 6:47 pm

Tried running the capx - the memory use stays pretty constant and is not constantly increasing as far as I can tell.

If you mean "eating up" as in using a certain amount that stays steady, don't worry about that, it should be normal.
Mistakes were made.
B
47
S
23
G
107
Posts: 1,571
Reputation: 60,133

Post » Wed Feb 03, 2016 6:55 pm

Oh no no, the problem is with the exported proyectS, not so much when Im testing them. But as I said, apparently is related to the "every tick" condition. In 1 hour of idle the total ram being used goes from 160 to 230. Its not that much... but having in mind how simple it is: its kinda frustating xD

Is there a way to sustitute the "every tick"? The only method I found was "Every X seconds" where X would be 0.1 or 0.01 or dt
B
10
S
1
G
1
Posts: 21
Reputation: 1,011

Post » Wed Feb 03, 2016 8:21 pm

"every tick" isn't the issue, even with nothing in the project the mem usage goes up slightly in NW.js. When run in the browser the profiling tools say the mem usage is basically constant, so it's probably an issue with NW.js. Do you have the latest?
B
88
S
30
G
90
Posts: 5,113
Reputation: 60,837

Next

Return to How do I....?

Who is online

Users browsing this forum: ilyaTyl and 10 guests