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. Dismiss Notice

Resolved Baking timer restart in Progressive GPU

Discussion in 'Global Illumination' started by Im_Kayoshi, Nov 15, 2020.

  1. Im_Kayoshi

    Im_Kayoshi

    Joined:
    Apr 25, 2017
    Posts:
    2
    Hi,

    Engine version : Unity 2020.1.12f1
    URP 8.2.0

    First of all I hope this new post is in the good place (sorry if it's not!)

    I'm new to Unity and I'm learning the engine, today I wanted to turn some of my models to "static" models to start baking my light. Before that I was just letting the Auto Generate checkbox (in the Render settings -> Lighting) checked without really paying attention to it and without checking as static all my static models.

    upload_2020-11-16_0-18-0.png

    My testing map consists of 6 low poly trees I made in Blender (learning too), it looks like I can bake the lightmaps when I put less than 3 trees in static mode, but when I go beyond, the loading bar for the Global Illumination will go back to ~50% when it's near the end and will NEVER finish.

    My PC has a RTX 2080 and an i7 8700k so I don't think it's a performance issue.

    Here is my current Unity Lighting configuration :

    upload_2020-11-16_0-34-25.png

    I had multiple warnings and errors but couldn't find anything clear on the subject :
    "Baked lightmap denoising failed during progressive bake on lightmap 6. Try disabling the denoiser or lowering the Lightmap Size."
    Warnings about my lightmaps being too heavy if I remember well and asking me to desactivate Denoising
    (will update if I can get the other ones)

    I also had a green screen during the baking that looks related to my hardware :


    After that green screen here's what I did :
    Updated all drivers and tried to bake again without success.
    Then I uninstalled all my GPU drivers and reinstalled without success either.

    It's also worth noting that sometimes it change automatically the lightmapper to the CPU, so could it be due to a lack of VRAM? (My GPU has 8go and didn't go beyond 4go while baking so it would be kind of weird)

    Has this problem happened to other people? I know that GPU Lightmapper is in preview mode so maybe this is linked.
    Also it's important to say that I can bake light on the default URP template.

    btw there are 3 screenshots, but it looks like they aren't showing sometimes, if you don't see them please tell me and I will update the links

    I will update if the situation evolve!

    Thanks a lot for your help!
     

    Attached Files:

    Last edited: Nov 15, 2020
  2. ADufay

    ADufay

    Unity Technologies

    Joined:
    Jan 2, 2020
    Posts:
    30
    Hello, it seems that the denoising steps fail while trying to allocate some memory on your GPU.
    One first easy thing you can try is to disable "progressive updates" as this mode puts a lot of pressure on the GPU memory.
    I would also suggest updating your project to the latest 2020.2, a tiling was introduced in that release that greatly helps reducing memory pressure on the GPU. ( you can find some info in that thread https://forum.unity.com/threads/ope...aps-with-progressive-gpu-lightmapper.1003632/).

    Best,

    Arthur.
     
    AffectusGames likes this.
  3. Im_Kayoshi

    Im_Kayoshi

    Joined:
    Apr 25, 2017
    Posts:
    2
    Hi! Indeed disabling "Progressive Updates" greatly helped! I will try to update to Unity 2020.2 as well. Thanks a lot for your help!
     
    AffectusGames and ADufay like this.