Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Camera hardcore lagging issue

Discussion in 'Cinemachine' started by andr3y38, Jul 21, 2022.

  1. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    5
    Hello forum,

    I have an issue with my project created in Unity 2021 where I'm using Cinemachine and Third Person Controller for my project. I have a big lag when I'm looking around with the player and I have no idea what is happening. One thing to mention I've used the same project into Unity 2020.3 version and the issue disappear there but I have to use unity 2021 for university.

    Check the video to see what is happening:


    The error is about some packages for building games for ps4 so doesn`t affect the game. Also I tried to play with some values at Project settings -> Time and unfortunately is not solving the issue.

    Any ideas please I really need to have this fixed

    All the best
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,267
    Is the lag still present if you close the inspector panel?
     
  3. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    5
    Yes bro, even with the game built I have the same issue
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,267
    hmmm... then I don't have any obvious ideas. It could be any number of things.
    Can you send me the project?
     
    andr3y38 likes this.
  5. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    5

    https://1drv.ms/u/s!ArMslCP99VlLiy0EXm52_2yS7Ifl?e=qVM8yn

    try this link and let me know if is on private, it should be public.
    Also make sure is opened with version 2021.2.11f1 or one close to this. On the other hand press “continue” when unity will tell you that the project got some errors.
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,267
    It's downloading. I have to step away for a little while, so I will check it later.
    In the meantime, please give precise repro steps (e.g. what scene to open, what objects to look at, what to to to see the problem)
     
  7. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    5
    the project is made of 2 Scenes, main menu and playground. In the playground scene when you press play button and when you move the mouse around to view or hold right click to aim, that happens like in video… massive lag - camera stuttering.

    To find all cameras in the scene Hierarchy -> Cameras
    Also check Player in Hierarchy through inspector to see maybe if you spot something wrong there into "Third Person Shooter Controller" script
     
    Last edited: Jul 22, 2022
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,267
    It's an Input settings issue. Change Update Mode to this and it should be smooth:

    upload_2022-7-22_7-27-10.png
     
    andr3y38 likes this.
  9. andr3y38

    andr3y38

    Joined:
    May 8, 2020
    Posts:
    5

    Awesome, thank you very much.
    You saved me :cool:;)

    But how this happened between the versions (2020 to 2021) ?

    Maybe that's the default version of 2021 I think?
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,267
    I don't know