Physics affected by fps: framerate dependent!

0 favourites
  • 3 posts
From the Asset Store
Create a game inspired by great arcade classics as Operation Wolf
  • Tried the Physics rolling project that comes with C2 in Firefox and Chrome, and the gameplay is twice as fast in Chrome.

    The fps shows that it runs at 120fps, which should just make it runs smoother, not faster than FireFox's 60fps. Chrome bug? Or Firefox bug (being too slow)? I'm used to working with FF as a test browser.

    EDIT: Not happening with the Space shooter or Platformer projects. Seems like it's physics only, some problem with Impulse applied to objects. Not sure if it's a browser or C2 issue.

    Could be that because the browser runs at 120fps, the impulse is applied every frame and this means twice as many times on Chrome which results in faster movement of the physics object.

    Also, games run way smoother in Chrome... they seem to jitter in Firefox even when running at 60fps. Do we know why?

    Using R99.

    Latest Chrome.

    Latest FireFox.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Physics is framerate dependent by default, so will run faster at a higher frame rate, though you can switch to independent. There's a manual entry on it somewhere.

    Problem withn switching it is that the physics will work slightly different each time.

  • Searching for Framerate independent got me to the right place:

    Searching for Chrome framerate or fps didn't work.

    Thanks Andy

    You guys know why even though hardware accelerated physics intense games aren't so smooth when played in Firefox? Could it have anything to do with the scroll-to behavior?

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