User Tag List

Results 1 to 6 of 6

Thread: Is there a downside to using Active Pictures for sprites?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2014
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Is there a downside to using Active Pictures for sprites? - Anyone?

    In the past I've run into memory problems from using too many sprite images that I've loaded from spritesheets into Active Objects. I read on here that's because the images are stored as uncompressed data, which explains why I quickly saw the debugger's memory display filling up as more characters appeared.

    But I recently discovered that the memory total remains very low when, instead of using Active Objects I use Active Pictures and just load a different (compressed .png) image each frame.

    Can anybody tell me whether there is a downside to this, in terms of efficiency?

    My concern is that if I have a 20-image animation, instead of reading each frame from the HD once, then subsequently reading them from memory, it is instead accessing them from the hard drive over and over again. So instead of reading from the hard drive 20 times then re-reading it from memory, it is instead reading it from the HD thousands of times per minute.

  2. #2
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    919
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Honestly the only thing I ever use active pictures for at all are collision detectors and something to spawn stuff at.

    Example:

    Set active picture's X position to Random (screenwidth)
    Set active picture's Y position to Random (screenheight)
    Create Enemy active object at 0,0 of active picture

    It's possible active pictures did save space when computers were less powerful than they are now. I'd just use active objects for sprites

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2014
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That wouldn't help. My computer's pretty up-to-date but I still need to find the most efficient way to display graphics in order for my game to work as required. I have dozens of 256x256, 150-frame sprites to include, not to mention lots of other static images.

    Fortunately, Active Pictures seem to consume considerably less memory, at least if the debugger is any indication. The only drawback (as far as I can see so far) is the one I've outlined above. So if anyone is able to offer any insight into this it would be a big help.

  4. #4
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2014
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump. Can any of the staff shed any light on this please?

  5. #5
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator ProUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    If you wanted to check to see if it constantly reading the images use process monitor (https://technet.microsoft.com/en-us/...ssmonitor.aspx) and filter your application and maybe the image file extensions. If the files are being loaded multiple times you'll see it.

  6. #6
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2014
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I meant to update this sooner, and thanks for your response. I tried it with Process Monitor and if I'm reading it correctly it does read the file from the HD/SSD every time, so it's probably not a good way of doing things (at least in my case anyway).

Similar Threads

  1. Strings and Active pictures
    By DatToffer in forum Android Export Module 2.5
    Replies: 7
    Last Post: 5th June 2017, 09:19 PM
  2. converting pictures to active pictures
    By andrew36 in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 11th September 2013, 05:55 PM
  3. Active pictures with android
    By pzazz in forum Android Export Module Version 2.0
    Replies: 7
    Last Post: 7th May 2013, 01:16 AM
  4. Cache active pictures from web?!
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 5th March 2012, 10:55 AM
  5. Active Objects or Active Pictures?
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 17th July 2008, 02:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •