I’m working on a drag racing game where accurate lap times are extremely critical.
I have the AI cars tuned to complete laps at specific times in the the Unity Editor, but on the iPhone the lap times are ~0.4 seconds slower.
For example, in the editor the car runs a lap in 10.916 seconds. On the iPhone that car runs the lap in 11.296 seconds. 0.380 seconds difference. (I know this doesn’t sound like a big deal, but in drag racing, that’s a lot of time.)
I can’t seem to figure out what would cause the timing difference between the 2 platforms. I’ve tried tuning the Timestep to see if that would make a difference, but there’s some black magic going on in those settings that I don’t understand. I tried limiting the framerate in the editor to match the iPhone, but the times in the Editor were still as I tuned them. And I tried tuning the rendering loop, but the slower times on iPhone remain.
Any thoughts on where else I should look to figure out the difference?