License from €75
DE EN FR ES IT CZ

Do I need to always unload animations when they have finished?

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 9 years ago
    Hi guys, do we need to unload animations when the game jumps to other scene? Or when we use loadScene function it automatictly unloads the animations from previous scene?

    Cheerssmile
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 9 years ago
    as far as i know only manually preloaded animations stay in memory and have to be unloaded.

    But to be sure i would advice to wait for an official response to that. 
  4. · 9 years ago
    Thanks Sebastian, yea maybe Lee or Simon will write
  5. · 9 years ago
    i heard it is not recommended to preload at all. but maybe somebody can explain more about preloading/unloading.
  6. · 9 years ago
    Why it's not recommened? I always use it because when the scene has heavy animations, it makes the scene very slow if not they preloaded

  7. · 9 years ago
    Only manually preloaded animations need to be manually unloaded.

    You shouldn't need to preload if you are clever with your animations. Webp format to reduce file size & loading time of animations. Try to keep duplicated frames to a minimum, etc. Also don't have a scene load a ton of animations at the same time if they aren't needed. If your scenes are taking longer than a second to load then you need to work on optimization & try scrapping anything that isn't that important.

    As for preloading, I recommend only using it for the heavier animations. Let the regular ones play normally as they load frame by frame anyway which is fine for animations with low file size per frame.

    & yes it's vitally important you manually unload preloaded animations when you no longer need them as they will eventually fill up the available system resources & the game will start to run laggy - depends on each persons computer. Someone with a potato pc will run into problems much faster.

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?