User Tag List

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

Thread: Weird Framerate Drops

  1. #1
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Weird Framerate Drops

    Hi guys!

    I don't know why, but I'm experiencing some weird framerate drops almost exactly after 1:30min are over. It starts to drop from 60 to 55 about every 5 seconds. This wouldn't be so bad, but it also freezes the application for a fraction of a second when that happens.

    I've removed almost all groups of the events to track down the problem and it seems to be related to the window control object.

    When I run the application in full screen, the framerate is constantly 60.

    My events for the window control object are:

    If <Object WindowResize == "0">
    - set horizontal size to "480+winXsize(Windowcontrolobject)-clientwidth(windowcontrolobject)"

    same for height

    it also sets the window to the center of the screen with set vertical and horizontal position.

    I think this is quite common to use windowcontrol object like this, is it not?

    Also when I have the debugger window on top of the application window, I also notice frame drops.

    Is there a way to fix this? Is there some better way for resizing or handling the window control object?

    I'm sorry if those questions seem stupid, but I have never worked with window resize before. How do you handle window resize in your applications?

    Thanks for help!

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Weird Framerate Drops

    Perhaps add "Only one action when events loop"
    Its possible you are causing this event to run over and over when not needed.

  3. #3
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird Framerate Drops

    I've tried that, but it didn't help.

    It seems that its not exactly time based because in some frames these framerate drops start sooner and in some frames they start later. Also these framerate issues don't appear for a long period of time only for a minute or something.

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Weird Framerate Drops

    Perhaps compile the game with build 252 and the HWA runtimes. You should be able to get some more performance out of that.

    Other then than that you might need to upload the MFA file so people can take a look and suggest what to change.

  5. #5
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird Framerate Drops

    Hi again!
    It seems that I was looking at the wrong place for this issue.

    I have played around with my events and I was able to intensify this problem a lot, so I think this time I know where the problem lies.

    To make objects count as obstacles, I use two events
    <always>
    - Delete all created backdrops on Layer x

    <if Alterable Value A of "DestroyableBlock" = 0>
    - Paste object into background as obstacle

    As long as the objects are in the visible area of the frame, there is no framerate drop. But when I run around with the player and an object comes into or leaves the visible area of the frame, there is a noticable lag for a fraction of a second. I was able to intensify this framerate drop by using transparent objects that paste itself into the background, overlapping itself.

    I was able to almost eliminate the framerate drops in my game by not using <always> (delete all created backdrops) but instead only delete created backdrops whenever an object gets destroyed or it is currently not an obstacle.

    Is is possible that these functions of creating and deleting backdrops might be the cause for the performance drops?

  6. #6
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Weird Framerate Drops

    You do realize those events will trigger over and over and over and use up some CPU so perhaps re-event this part so they only run 1 time when needed.

  7. #7
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird Framerate Drops

    Thanks, I've done that and made seperate events for each pasting and deleting of certain obstacles and now the problem seems to be gone.

    I only wanted to know if this method I use takes up that much performance and can the frame drops really come from this? Because with GunGirl 2 I had over 1700 global events and even with 500+ enemies on screen I never experienced such a drop in the frame rate.

  8. #8
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird Framerate Drops

    The problem is still there and I don't know what causes it to be honest. I've made an example with only the most basic events (move left / right, scroll screen) and still I have random frame skips.

    Take a look:
    http://www.gungirl2.com/stuff/FrameSkipTest.mfa
    (if it wants to save as .tiff just rename it back to .mfa)

    Hold left / right to scroll around for a few minutes (or close and restart) to see random frame drops/skips.

    PLEASE HELP this problem is driving me crazy!

  9. #9
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: Weird Framerate Drops

    Why don't you use HWA? I tried this example with HWA (D3D 9 mode) and that's very smoothly.

    P.S. You should set the timer-based movements option in frame property to 60 or disable it.

  10. #10
    Clicker Multimedia Fusion 2 Developer
    Blue66's Avatar
    Join Date
    Jan 2008
    Posts
    133
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Weird Framerate Drops

    I just forgot to turn it on in this example (uploaded the file again with D3D 9). Still the frames start skipping for me. As I've said it's random so sometimes I have to go back and forth for about 2 minutes until it starts skipping frames noticably, sometimes it's right from the start when I test the frame for a couple of times.

    PS: Other users have reported that they have the same frame skipping as I have, so I assume it's not a problem of my computer.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Random Performance Issues (Frame Drops!)
    By Blue66 in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 14th February 2017, 04:34 PM
  2. Quick Backdrop drops Framerate 20 fps!! :(
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 25th August 2013, 01:07 AM
  3. DEADLY DROPS for Windows Phone Released!
    By sbucci in forum XNA Released Games & Apps
    Replies: 1
    Last Post: 3rd January 2013, 03:16 PM
  4. FPS drops when the Active object crossing into the String object.
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 9th June 2012, 04:22 PM
  5. Significant framerate drops while scrolling.
    By pirodaggar in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 29th July 2008, 06:14 PM

Posting Permissions

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