[Request] "Unload from memory" action

  • I'm sorry but who are you talking to Sethmaster ?

  • I'm sorry but who are you talking to Sethmaster ?

    Nah, to nobody in particular.

    Just airing out some of my opinions out after reading this thread.

  • Well, what you are "airing out" have no seans at all.

    I don't understand how you can have memory issues when changing layout pretty much dump all previous non-global objects from memory, especially when making complex games such as mine.

    If you read everything from top to bottom you would notice that it's not about having an issue with a memory.

    Destroying objects and instances when they are unneeded also remove them from memory.

    No.

    If you are having memory issues, its more due to how your game design and logic works, rather than the engine supposedly flaw. Try reading some nice blogs and articles written by veterans who can give you good tips to work your game around those issues.

    Then again, no idea who is that sentence directed to, but most people here participating in discussion are very experienced users who spend many years with C2 and probably wrote those blogs and articles you are talking about.

    ...

  • So shinkan recently challanged me in other thread as below and pointed to this thread:

    if you make a plugin that will let me unload any object from current layout at any time at runtime then I'm ready to pay 20$ for it or even more <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    It looks that I made it <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">. Here's a video of the first (working) test

    Subscribe to Construct videos now

    As you can see it works nicely. I just need add some more ACEs, ico and I'll release it. I think it should be available within few days.

    If anyone would like to discuss some details/ACEs/whatever in regards of this plugin, I'm available on my discord server (see footer).

  • So shinkan recently challanged me in other thread as below and pointed to this thread:

    >

    > if you make a plugin that will let me unload any object from current layout at any time at runtime then I'm ready to pay 20$ for it or even more <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    >

    It looks that I made it <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">. Here's a video of the first (working) test

    Subscribe to Construct videos now

    As you can see it works nicely. I just need add some more ACEs, ico and I'll release it. I think it should be available within few days.

    If anyone would like to discuss some details/ACEs/whatever in regards of this plugin, I'm available on my discord server (see footer).

    Haha. Nice!

  • Requested, created, submitted, approved, released <img src="{SMILIES_PATH}/icon_e_ugeek.gif" alt=":ugeek:" title="Uber Geek"> .

    MM_Unloader plugin is now available https://www.scirra.com/store/construct2 ... emory-3812

    • Clean up - unload all unused textures of all objects
    • Unload object - unload texture of specified object
    • Hard destroy - destroy all instances and unload texture of specified object

    Have a good unloading! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • interesting, but once a thing is unloaded, what's the best way to load it again? Are you still restricted to layout change to load a sprite?

    C3 can have a mixmatch of several sprites in a sprite sheet, if one sprite is unloaded, does it recreate new spritesheets on the fly? How does this work in C3?

    https://www.scirra.com/blog/198/constru ... chitecture

    I'm referring to this blog post....

  • interesting, but once a thing is unloaded, what's the best way to load it again?

    The best way depends on your project actually. You can just create it as in the video example or use MM_Preloader if you need some more loading features.

    Are you still restricted to layout change to load a sprite?

    That was never a case. You can and always could load a sprite in any moment.

    C3 can have a mixmatch of several sprites in a sprite sheet, if one sprite is unloaded, does it recreate new spritesheets on the fly? How does this work in C3?

    https://www.scirra.com/blog/198/constru ... chitecture

    I'm referring to this blog post....

    tunepunk I think you missunderstood the blog post. The difference between C2 and C3 is that C3 creates spritesheets also in the editor, while C2 only after export. Still one spritesheet holds images/frames of one sprite only.

    Let me know if you have any further questions.

  • This is one of those features that should have been there from day 1, and not blamed on the way browsers handle memory.

    Thanks for filling yet another hole in the Construct development pipeline, !

  • Ashley can be really stubborn, but he does oftentimes relent if people demand something enough and it's not needlessly difficult to implement.

  • Ashley's statement on that was quite simple, can't find that post now but he said he will not add this feature because it can be hard for "new users" to understand/use.

  • Ashley's statement on that was quite simple, can't find that post now but he said he will not add this feature because it can be hard for "new users" to understand/use.

    Old story.

    Scirra: Nah it can't be done, we know - we've made the engine

    Construct Modders: Hold my beer...

    Shame its yet again behind a paywall.

  • > Ashley's statement on that was quite simple, can't find that post now but he said he will not add this feature because it can be hard for "new users" to understand/use.

    >

    Old story.

    Scirra: Nah it can't be done, we know - we've made the engine

    Construct Modders: Hold my beer...

    Shame its yet again behind a paywall.

    hard work deserves compensation, I'm sure no one would like to go to work and not get paid

  • >

    > > Ashley's statement on that was quite simple, can't find that post now but he said he will not add this feature because it can be hard for "new users" to understand/use.

    > >

    > Old story.

    > Scirra: Nah it can't be done, we know - we've made the engine

    > Construct Modders: Hold my beer...

    >

    >

    > Shame its yet again behind a paywall.

    >

    hard work deserves compensation, I'm sure no one would like to go to work and not get paid

    You missed the point. But you are not the only one.

  • I'm not really criticizing him. It's just something I noticed. He was resistant to the idea of making a better collision detection system, but ultimately did it because it was worth the time and people kept requesting it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)