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.

Question Profiler works is too late(or too early) with unity "will render canvases"

Discussion in 'UGUI & TextMesh Pro' started by align_, Feb 3, 2023.

  1. align_

    align_

    Joined:
    Feb 3, 2023
    Posts:
    1
    upload_2023-2-3_19-32-47.png

    If i use vSync = 2, i get 30 fps, but sometime have spikes to 15-20 fps
    If i use vSync = 1, i get 60 fps, but sometime have spikes to 40-30 fps
    if i use vSync = 0 and Application.targetFrameRate = 9999, i have 600-900 fps, but sometime have spikes to 70 fps.

    Why vsync, instead adding smooothier spikes, just added overhead? In profiler i see : vSync trying compensate previous frame, but in this previous frame just add overhead! I want to fps 60-60-60-60-60, but i get 60-40(lag)-100(compensate from vsync)-60-60

    In spikes all load exclude editor overhead - just UI. Canvases, TMPro, etc.

    upload_2023-2-3_19-46-47.png




    Editor(MacOS M1), and Android device(same)