This is not a duplicate of this question because I need a way to speed up my world without changing deltaTime and have everything happen faster. Why can't I use deltaTime or change it? I'm using the velocity Verlet sympletic integration for the simulation of orbital mechanics and deltaTime is required to be as low as possible for increased precision. Therefore I have it set to Gdx.graphics.getDeltaTime() * 0.001f. I am using LibGDX in Java and if it is necessary, I am using the Game class to have my screens structured.
What have I tried or thought of?
Using higher order sympletic integrators will not require a smaller deltaTime but are difficult to implement and are my plan B for if this is not possible.
The question which you said is not duplicate is actually most likely your solution.
Your goal is to have small time-step of
Gdx.graphics.getDeltaTime() * 0.001f. When we use framerate 60fps then it can be writen as1f / 60f * 0.001f. So your current time-step is about0.000017. This is the value which you want to use forConstants.TIME_STEP.Then you will just need to replace
WorldManager.world.stepwith call to your physics function. And the delta time which you pass as parameter will beConstants.TIME_STEP.But due to your small time-step there will be large amount of calls to the physics function, which means it will have to be fast or you will have to find a way to reduce the time-step anyway.