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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug G-Sync causes Editor to flicker

Discussion in 'Editor & General Support' started by Zaeroso, Apr 30, 2023.

  1. Zaeroso

    Zaeroso

    Joined:
    Oct 11, 2019
    Posts:
    2
    Hi there, I'm just returning to Unity after taking a break and I can't seem to get my Editor to function correctly.

    The problem: My editor is flickering and is quite laggy, when I go into play mode, it's all fine.

    I tried to screen record with OBS but it looks perfect in the recording. When I am in play mode or holding the RMB and moving the scene camera the flickering stops. As soon as the camera is idle, my entire window starts flickering and doesn't stop.

    I have tried the following:
    1. Trying different editor versions, I tried 2021.3.24f1 LTS, 2022.2.17f1 and my editor I used to use months ago which was 2021.3.4f
    2. Changing the rendering API, I tried all 4 choices of Dx11, Dx12, OpenGL and Vulkan and the issue persists
    3. Changing the colour settings from 'Gamma' to 'Linear'
    4. I tried loading old projects (with the same editor version) which I knew worked before I took my break
    5. I tried loading new projects, 2d, 3d, URP and HDRP
    6. Temporarily turning off my Anti-Virus Protection (Avira)
    7. Granting Windows Defender access (As shown in attached image)
    8. Closing the Unity Hub application (Quitting it fully so no processes are running)
    9. I am on the latest Nvidia Drivers for the GTX 1080ti (531.68), I also tried downgrading.
    10. Setting the process priority to 'above normal'
    11. Yes it's using GPO 0 which is my GTX 1080ti

    I've attached several screenshots, one of my windows defender rules for Unity, another for my processes while running Unity (with the HUB closed).

    Any help would be massively appreciated.
     

    Attached Files:

  2. Zaeroso

    Zaeroso

    Joined:
    Oct 11, 2019
    Posts:
    2
    SOUTION FOUND
    I've found the cause and solution, I'll keep this post up just in case it can help anyone.
    It was caused by G-Sync being enabled, to fix it, I enabled 'Fixed-Frame' for all the Unity Editor Versions I use with the Nvidia Settings Panel.
     
  3. eliphat

    eliphat

    Joined:
    Jul 4, 2017
    Posts:
    43
    I have always been annoyed by this problem in DX12 where everything can jump. (e.g, game view may appear, stretched, in the inspector window; scene view may jump back to a frame that had appeared several seconds ago; these do not make development impossible, but annoying and harder.)
    I disabled GSYNC for unity and everything resolved! Many thanks!
     
  4. no00ob

    no00ob

    Joined:
    Dec 13, 2017
    Posts:
    65
    FINALLY A SOLUTION! I've been having this problem for a while now, and it's been very hard to find a solution since googling it usually leads to results about only the scene view flickering or such.