Why does Unity executable seem to play different on other pc

Hi Unity3d gurus

Why does our small Unity executable seem to play different on other pcs? (Not always it seems)

We have a client presentation today and the level plays good on the workstation. However on the laptop I use for presentations the character immediately flies up with the WASD keys. I cant use this for the presentation so I have to try the clients laptop as a workaround.

Why is this and can this be fixed to help future presentations?

Rgds

AB

Might be that your game logic is not compensating for wildly different framerates. In that case, running the game on a machine that is 4 times as fast as your workstation will result in gameplay that is also 4 times as fast.

If you do this:

private float forwardSpeed = 2f;

void Update()
{
  transform.translate(0f,0f,forwardSpeed);
}

… then your game logic will run faster as the framerate goes up. To compensate, Unity allows you to modulate any transformations by the amount of time it took to calculate the last frame. This keeps your game logic independent of framerate:

private float forwardSpeed = 2f;

void Update()
{
  transform.translate(0f,0f,forwardSpeed * Time.deltaTime);
}

Still need a programmer by the way? :wink: