Lag at first pphysics event on Mobile

Dear all,

We noticed that, while using the physical engine, a lag / delay appears when a rigid body enters in collision for the first time with a collider. We do observe the same behaviour the first time we apply a force to a rigid body. Then, the physical engine reacts very well. It looks like physical engine is being initalized at each first physical event :face_with_spiral_eyes:.

This behaviour has been observed on mobiles (at least Android devices).

Is there a proper way to initalize the physical engine at the very begining of the game so that we can avoid those annoying lags during the gameplay :frowning: ?

Thanks in advance for your answer :sunglasses:,

Best regards,

Christophe Montandon - Nelphy Games

I am looking into this as well. It only seems to happen on first collision on Android. Have you found out since you post?

I have the same problem.

Are you putting the bodies in sleep on the start of a level? This may cause some undesired effect, especially if you have items stacked on each other (i.e. Angry Birds/Crush the Castle-like) as many rigidbodies are becoming active.

Maybe care to explain the situation more what happens, how the scene is built on etc.

Hello,

did you resolve it ? I have the same problem.

Bump
Im using 4.3 and problem is still there