[BUG] Physics are dependant on frame rate making it unreliable

I tried changing the frame rate using
cc.game.setFrameRate(30);
and found that forces applied changed too. Looking into the source I saw time accumulation had been commented out since many versions ago

Can you describe more about this?

As the comment says: accumulator will make system slower and slower.

Sure, here is an example.

The red ball is a replay of the previous shot from the opponent.

cc.game.setFrameRate(60);

Video link

cc.game.setFrameRate(5);

Video link

In both videos the exact same impulse force is applied.

Add an option enabledAccumulator to let you choose which mode to call the physics step.

thanks! that fixed it :slight_smile: