Physics and framerate issue

0 favourites
  • 6 posts
From the Asset Store
Simple yet very life-like rag doll made with Physics!
  • Hi

    I have a game that has about 40 red sprites (48 x 48)no behaviours applied.

    The frame rate is 59 fps.

    I have an event that adds a new white sprite to the level when I click on screen.

    The new white sprite is 48 x 48 with Physics applied.

    As soon as I add the white sprite the framerate drops to, (and stays at) 26 fps.

    Any ideas why this happens?

    <img src="smileys/smiley5.gif" border="0" align="middle" />

    EDIT 1

    After further testing, the problem is happening because the new sprite is a triangle shape with a triangular collision mask.......

    If I change the shape to a square, the framerate stays at 59.

    EDIT 2

    Forget the above Edit1....i didnt have physics applied to the square.

    The framerate drops as soon as i add any sprite(using physics) to the game.

  • Did you set Physiscs world stepping to Framerate independent?

  • Did you set Physiscs world stepping to Framerate independent?

    To be honest, i wasn't aware of the setting...should I enable this?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think Physics is the only behavior that isn?t framerate independent by default, but i dont know if your framerate issue will be fixed with this.

  • I think Physics is the only behavior that isn?t framerate independent by default, but i dont know if your framerate issue will be fixed with this.

    Tried it....no change though.

    Thanks anyway.

  • Can you post a .capx? Also, what's your system spec? Physics can be pretty CPU intensive but it shouldn't be that bad.

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