Request: Dump Memory Action

Discussion and feedback on Construct 2

Post » Thu Mar 31, 2016 10:35 pm

Hi there!

I recently had a strange experience with my latest game that was released on a console.

Although I was testing it regularly, when I finally had everything in, about 30 minutes into testing, the console would fill up with memory, and the game would crash.

I spoke to the console devs about it and they said it wasn't their fault, and I spoke to @Ashley, and he said it wasn't C2s fault, however, he did suggest it was possible to create an action that would force a memory dump, but was hesitant because it wasn't a sought after feature.

I'm just wondering how hard it would be to include it. In the end I had to break every single one of my layouts into its own project. This is now a chore to maintain and a nightmare to set up. On top of this, my loading times went from 1 second to about 10 (as it needs to shut down one project and then load the next from scratch).

If it's quite simple, I'd really appreciate this being included. The console devs don't seem interested in improving things on their end, so I need to rely on Scirra.

Any chance of this happening? :D
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 990
Reputation: 11,229

Post » Sat Apr 02, 2016 9:58 pm

Going to give this a friendly bump, seeing as I've asked for this 3 times now, and been pretty much ignored each time.

I just want to know if it's a simple addition or not and whether it'll make an appearance.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 990
Reputation: 11,229

Post » Sun Apr 03, 2016 3:17 am

Are you thinking of something that would dump everything in memory between loading layouts?
I was under the impression that everything that would not be needed for the next layout was purged.
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683

Post » Sun Apr 03, 2016 8:15 am

I'm still saying that the best would be to give the developers memory loading and dumping controls with a warning that it's an advanced feature, don't use it if you don't know what you are doing. The engine does a great job managing the memory, but in rare cases some control is needed.
B
137
S
33
G
17
Posts: 1,560
Reputation: 20,797

Post » Sun Apr 03, 2016 11:29 am

Well it depends on if the "console" is made to allow it.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097

Post » Sun Apr 03, 2016 12:50 pm

ryanrybot wrote:Are you thinking of something that would dump everything in memory between loading layouts?
I was under the impression that everything that would not be needed for the next layout was purged.


I'm thinking of something that is an action, so it can be triggered at the start/end or middle of layouts. As far as I'm aware, it's not purged much, if at all. Local variables have been known to show incorrect figures if the same name is used for 2 different layouts/event sheets. Someone recently mentioned that objects in previous layouts are still "active" in the debug section... though I can't confirm that.

ryanrybot wrote:Well it depends on if the "console" is made to allow it.


As far as I am aware, it has functions that permit the action to flush storage and request memory garbage collection, but nothing seems to happen. I can't tell if it's C2 refusing to allow that to happen, or the console just doing a half-hearted attempt.

ryanrybot wrote:I'm still saying that the best would be to give the developers memory loading and dumping controls with a warning that it's an advanced feature, don't use it if you don't know what you are doing. The engine does a great job managing the memory, but in rare cases some control is needed.


Yup! Construct 2 does a great job most of the time, but in cases like this, I'd love to have a little extra control. Construct 2's all about loading at the start and having the rest of the game pretty much instant. I'd like to have the ability to load on demand, and remove when not required.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
84
S
15
G
7
Posts: 990
Reputation: 11,229

Post » Sun Apr 03, 2016 3:37 pm

i don't think anything changed since then so I just paste it here [Request] "Unload from memory" action
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 36,003


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests