Stepping iterations & stepping mode - Physics

Discussion and feedback on Construct 2

Post » Sat Jul 11, 2015 2:41 pm


I need tips and suggestions setting up the Stepping iterations and Stepping mode in Physics. I think they may be responsible for some small lags in my game.

I get a small lag with the physics ( i think it's the physics ) in my game and I wonder why that is, and if I can do anything about it?

In my game, I have a player that throw an object - applying a force in a direction. Also applying physics angular velocity so the object rotates. It works very good... The object gets thrown and rotates in air, as I want. But sometimes when the object are in air, I get some kind of flickering lag. You know... it feels like flickering, like when you play a game and the screen cant keep up with the framerate. But also the object can slightly lag ( freeze ) for a very short while, and then "jump" a short distance - as if the object are synchronizing something?
However the game works pretty nicely with the performance - but I was wondering if I can fix this small problem? :)

When I'm testing at my computer in Firefox. I have 60fps most of the time. Sometimes it can drop down to 45-50, but only for very short moments.
This is a multiplayer game and I only have one single object with physics in the game. The players take turns throwing it.
I haven't change any default settings for the physics: Stepping iterations and Stepping mode. So I think they are set to standard as you can find in the manual for the Physics behavior.

I would be very happy if anyone with experience with these values could give some pointers what they feel works best - performance wise.
Soulmachine @Soundcloud
Posts: 63
Reputation: 928

Post » Sat Jul 11, 2015 3:05 pm

I think you're much better off trying the game in Chrome.... Make sure you have asm.js physics selected in project settings. If both of those cause your game to still jank then the best visual effect will be found by setting the physics to framerate independent.
I only occasionally visit - I'm learning C# for Unity, but c2 is still a respectable game engine imo....
Posts: 2,198
Reputation: 42,188

Return to Construct 2 General

Who is online

Users browsing this forum: Cliffu, Rudi55 and 10 guests