Why does my memory usage increases??

Discussion and feedback on Construct 2

Post » Mon Sep 08, 2014 8:21 pm

Hi guys...i was wondering why when i preview in c2 my game on node-webkit the Video memory usage takes 74 MB and after export as Node-webkit it increases to 112MB???

what is the reason??
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Mon Sep 08, 2014 10:19 pm

It should decrease because it runs lots of optimisations on export. How are you measuring it?
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Tue Sep 09, 2014 5:13 am

@Ashley im using the built-in video memory usage expression

look at the code...

https://www.dropbox.com/s/ua4m2wqtyatms ... m.jpg?dl=0
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Wed Sep 10, 2014 1:18 am

Bumping.... can anyone tell me if you can reproduce this problem??? this worries me :/
@ashley
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Wed Sep 10, 2014 6:45 am

@Lunatrap

Can you produce a simple .capx for us all to test? We can then either confirm the bug or not.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
136
S
31
G
86
Posts: 5,483
Reputation: 59,752

Post » Wed Sep 10, 2014 11:36 am

Yeah, we can't debug from images, we need projects.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Thu Sep 11, 2014 12:37 am

@Ashley
@zenox98

i could not replicate it on small project.... and i cant post my whole game here...
i dont know what is producing this... i have not added any sprite or anything...
i have no idea what happened.... can you guys tell me somethings to look for??'
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Thu Sep 11, 2014 11:35 am

I have no idea - as per the tutorial I linked to, it's expected that memory use go down fairly significantly after export, maybe 25% or so.

Random shot in the dark: what's your project downscaling property set to?
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Post » Thu Sep 11, 2014 8:53 pm

@Ashley

my scaling quality in on high quality i have been shooting in the dark... but i cant pin out what could be happening...
B
23
S
6
G
3
Posts: 316
Reputation: 3,461

Post » Thu Sep 11, 2014 11:52 pm

@Lunatrap - aha - as documented...

High quality: mipmaps are enabled and the spritesheet after export pads out all images to power-of-two sizes. This can significantly increase memory use, but can resolve light fringing that can sometimes occur along the borders of downscaled objects in medium quality mode. Do not use this mode unless fringing is observed, since it can use a lot more memory.

Emphasis added.

You have deliberately chosen an export mode that is documented as using more memory. Unless you see the fringing artefacts, set it to medium and the memory use should go down.
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests