Search Unity

Jittering caused by vsync and targetFrameRate

Discussion in '2D' started by Aislin, Dec 11, 2014.

  1. Aislin

    Aislin

    Joined:
    Feb 22, 2014
    Posts:
    17
    Hello :)

    I have a super simple game that involves moving a container of objects from right to left. The camera does not move. I'm updating the position of the container in Update() while multiplying it by time.deltaTime (also tried smoothDeltaTime). When I turn vsync off and leave the targetFrameRate at its default, the game runs perfectly smooth. When I turn vsync on or set the frame rate to 60 or 30, it is very choppy.

    When viewing the game in the profiler, nothing sticks out as causing any performance issues. It's definitely something being caused by vsync and/or the target frame rate. Any ideas what could be causing this?

    Thanks so much! :)
     
  2. _creatio_

    _creatio_

    Joined:
    Mar 21, 2013
    Posts:
    43
    I seem to have the same problem, did you find any solution?