User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: Layers and Slowdown

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Layers and Slowdown

    Wasn't sure to post this in HWA forum or here, but since it isn't specifically an HWA question, I'll just post it here.

    I'm about to implement parallax scrolling into my game via layers. However, I've heard that for some people, layers can cause a lot of slowdown. But I don't know how I could go about doing a good parallax effect without using layers.

    So, is there really a slowdown problem with layers? Is it only in HWA builds? And if there is possible slowdowns, what can I do to avoid them?

    Any input on this subject is greatly appreciated. Thanks.

  2. #2
    Clicker Fusion 2.5

    Join Date
    May 2008
    Location
    In Your Cheese
    Posts
    132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    In my experience, Layers will only cause noticable slowdown if three or more are used. I've been able to get away with four, or even five layers before. Whether you get slowdown may depend on how many objects are on the layers, how many fastloops you're using, etc.

    I'd just experiment with it and see what you can do.

  3. #3
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    A while ago I was trying to layer multiple heights in my topdown prototype. So I had 4048*4048 frame size and 5 layers and a total of 5 layers. All had loops to paint the tiles all over and I changed layer when I entered buildings or moved on top of roofs and so on. It was not running very smooth at all.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    Do not have anything considered a background above the bottom layer (there are many extensions considered backdrops). It will dramatically slow down your game if you do this, especially if you have scrolling.

  5. #5
    RayMarble
    Guest

    Re: Layers and Slowdown

    I have up to 8 layers, they mostly have at least one background object. During runtime I'm turning them on/off, change transparencies and whatnot and I never saw any slowdown whatsoever.

    My application is pretty small though, 320*256 with frames at 640*640 max (but usually much smaller), running at very low framerates so maybe the slowdown is here I just don't see it.

    Also I was able to videocapture the game (which is additionally burdening the system - for example video capturing a simple game from RPG Maker grinds the framerate to single digits) without any slowdown... so I guess if you stay small you'll be fine.

  6. #6
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    Quote Originally Posted by Pkeod
    Do not have anything considered a background above the bottom layer (there are many extensions considered backdrops). It will dramatically slow down your game if you do this, especially if you have scrolling.
    So, if I want parallax scrolling, I'd have to use backdrops on the bottom layer, and then the "background" in the upper layers would all be actives? That probably won't work with my game, unless I create a tiling system instead of just making the level in a frame. Assuming I'm understanding all of this correctly. Because I'm making a platformer, so if I don't use backdrops for the ground the player is on, I'd have to use actives (since I want a background behind the layer the player is on) Or is there some other way?

    As Docilemouse said though, I should just experiment and see what happens. But I'm not sure if it will cause slowdown for everybody or just on certain computers, so I don't know if I can accurately guage this.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    Layers in themselves don't cause slowdown - I have an options frame with about twelve or so, as they're a useful way to separate out multiple dialogue boxes.

    But their use combined with scrolling can cause a lot of slowdown because of the way that the collision masks work in MMF - the first layer has a complete collision mask calculated before the frame starts, and the ones above it are tested object-by-object. This means that if the majority of your gameplay happens on a layer higher than 1, it'll tend to be slower - often unnoticeably but sometimes a lot slower, if there are a lot of things going on.

    So on my larger frames I've reverted to using background system boxes for parallax scrolling (I think Background Images can do this as well, now), which allows me to take the gameplay down to layer 1 again.

  8. #8
    Clicker Fusion 2.5 Developer
    ChrisStreet's Avatar
    Join Date
    Jul 2006
    Location
    United Kingdom
    Posts
    569
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    By the way if anyone doesn't know how to use the Background System Box for parallaxing, I wrote an article a few years ago (sadly the link supplied within the article is dead but its pretty straightforward)

    http://www.create-games.com/article.asp?id=1255

  9. #9
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    I also have an example using the Background System Box for parallaxing scrolling on my website. There is also an example using multiple layers.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  10. #10
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers and Slowdown

    Okay thanks guys. I will definitely check out those tutorials using the background system box.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. slowdown in mmf!
    By Mart393 in forum Hardware Accelerated Runtime
    Replies: 0
    Last Post: 31st October 2013, 06:17 PM
  2. Layers - Low fps! Paralax Alternative to layers?
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 6th June 2013, 03:34 AM
  3. Collision issue with layers, also still having slowdown problems (with layers)
    By jregork in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 28th July 2012, 06:23 AM
  4. How much layers will slowdown large area?
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st July 2008, 09:40 AM
  5. Causes of slowdown
    By stuckboy in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd December 2007, 09:20 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
  •