0 Favourites

Mobile performance suggestion

  • I know you are working on sprites loading into RAM per layout, but as an alternative to that(this would help my game)... Is there a way to only load the current frame of a sprite into RAM. This would be nice as a setting per frame of each sprite. Example: Load to Ram when visible, at start of layout, or at start of game.

    Example: I have a sprite with a map of each level on different frames, this map sprite would load to RAM only the current frame per layout.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I've been wanting something like this for awhile, only a little different - basically a drop-down menu in the properties of a sprite that would set if the runtime should load all animations into memory upon loading the object, or only load the first animation. Sort of like how construct classic has a 'load all layout textures at start' and 'load only the current layout' modes, except with animations instead of layouts.

    So, there could be an action to load or unload animations by name (they could load in the background while other stuff is happening), and an action to dump all but the current animation from memory. If the user used 'set animation' to an unloaded animation, then it would load that animation then. That could probably cause a pause, but MAN would that feature be useful to me!

    My characters in loot pursuit have thousands of animation frames between them, many of those only being used once in the entire game. It's extremely impractical the way I'm having to do it now by sectioning off animations into separate objects and creating/alternating visibility between them for memory savings.

  • We basically were planning to re-add Construct Classic's controls here, but we can make some finer tweaks when we come to do it. I didn't think anyone had that big games that needed it yet.

  • Maybe they don't want to tackle a big game because features like that aren't in place yet... I'm partially in that boat, myself. No rush though!

  • Arima does toggling visiblity add and remove images from RAM?

    Ashley you were asking to see my game before, it is on Chrome now here is the link:

    chrome.google.com/webstore/detail/mjjcfjkkmchjkolljhofkbgkdookokgk

    or just do a search for "Maze Manor" on the Chrome Store.

  • Bert - no. I guess I didn't describe it properly - I have common animations in one object, then the less common ones in other objects. By keeping the less common animations in another object that's not in the layout in CC, it keeps it out of VRAM.

    I create an instance of the uncommon animations objects when I need them, and then swap visibility between the common animations object and uncommon animations object as needed.

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