How come the bigger the value of timestep the faster the simulation?
I set it to 10 instead of 1/30, it performs smoothly.
Because 1/30 means that it calculates the physics over 1/30th of a second every frame. At 10, you're doing 10 seconds per frame. So, if your game is running at 60 fps, and Box2D is calculating 10 seconds of animation per frame, you're really doing 10 minutes of physics, for every 1 second of real time. It probably looks better in your simulation because you're probably "zoomed out" a lot. The physics probably won't be as accurate at "10" though. You should keep it between 1/30 and 1/60 for best results, and set up a smaller view region (say 20x20 meters).
At least... I think what I'm saying is right.
Im using 1280 X 768, so far I do not need to adjust any physics scale. Im not sure how you got 20X20 meters.
At 1/30, I can barely see my sprites moving. It looks as though it is not working at all.
Im not sure how we can have control over "fps" in the real scenario. Imagine if we have a game while loop running, It all depends on our system load on the processor, correct? Trying to fix the fps is merely trying to play god and Im sure will incure more processing and unnecessary effort.
Perhaps you can correct me, if I am wrong in my concepts.
I'm guessing you are not using meters for your dimension but you are still using a gravity of 10. I recommend using meters for you simulation and then scale your display. You will find many posts about this on the forum.