We are trying to make our game framerate independent, but are currently having issues with it. We tried reading previous threads on the subject but haven't managed to solve it. We've tried using a fixed timestep as well as a variable timestep, with neither working.
We're currently testing on two PCs with different hardware, comparing how the two character's speeds move. One person gets ~60 FPS, and the other gets around ~110. The character's move at different speeds when both a fixed and variable timestep are used. The two alternative calls to stepSimulation tried are shown below:
Code: Select all
m_world->stepSimulation(1.0f / 60.0f, 10);
m_world->stepSimulation(m_deltaTime, 10);
In addition, are we also supposed to multiply the movement speed by deltatime?
Thanks for the help