Ball speed problem

Hi:
In my game, I need to shoot a ball to hit other balls, so I set a initial speed to the shooting ball with:

Code:
    body_->SetLinearVelocity(velocity);


The ball will keep moving with the initial speed. This is what we expected.

But when the system is busy, for example when the banner ads request and show a new ads (We add a AdMob view to the game), the ball's moving speed will suddenly slow down.

Does anybody knows how to fix this problem? this is really annoying. Thanks!
You can multithread, adjust the number of calls to b2World::Step based upon the amount of time that has actually elapsed (not just once per timer callback, but as many times as necessary to catch up to real time with some upper limit on the number of steps per callback), or call b2World::Step with a timestep of varying sizes (terrible call, box2d simulation looks best when timestep is consistent).

Original thread: https://box2d.org/forum/viewtopic.php?t=8776