Hey guys.
I've set the gravity on 10 and my timestep on 1/60 and I've created the game (Pinball). Now I need to speed it up a lot (a lot!). Changing the timestep to 1/30 is not enough. After reaching the timestep of 1/5 the game runs better but the less the timer gets the harder the gravity works and when I change the timestep to around 1/5 I almost can't shoot the ball up (it moves only few px up and falls down quickly). I tried making it's density low and forces (for shooting) high but that didn't solve the problem. Best solution was for me calling the world.Step() 4 times in a row. As the result was good, the performance dropped significantly due to massive calculations. Did I miss something? How can I make my game much faster but with working forces?
Oh and I've got the whole collection of timers from 30Hz to 1MHz so maybe I can somehow use them?
Thanks,
h3
I've set the gravity on 10 and my timestep on 1/60 and I've created the game (Pinball). Now I need to speed it up a lot (a lot!). Changing the timestep to 1/30 is not enough. After reaching the timestep of 1/5 the game runs better but the less the timer gets the harder the gravity works and when I change the timestep to around 1/5 I almost can't shoot the ball up (it moves only few px up and falls down quickly). I tried making it's density low and forces (for shooting) high but that didn't solve the problem. Best solution was for me calling the world.Step() 4 times in a row. As the result was good, the performance dropped significantly due to massive calculations. Did I miss something? How can I make my game much faster but with working forces?
Oh and I've got the whole collection of timers from 30Hz to 1MHz so maybe I can somehow use them?
Thanks,
h3