Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  3. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Light bake times on 5.4 vs 5.3

Discussion in '5.4 Beta' started by kierand, Apr 8, 2016.

  1. kierand

    kierand

    Joined:
    Sep 22, 2014
    Posts:
    32
    I'm just wondering if others have noticed a difference in light baking times on 5.4?

    For us, light baking takes roughly double the time. The results are better, we can see the improvements that have been made. However, where our overnight light bake CI job used to just fit into a night for all our scenes, it now won't which is a pain and so we are having to look at splitting this over multiple machines.

    Our scenes are quite complex. These are our timings for each:

    Before After
    00:49:00 01:49:00
    01:07:00 03:03:00
    01:04:00 02:03:00
    00:19:00 00:23:00
    00:27:00 00:34:00
    00:51:00 01:23:00
    01:06:00 02:41:00
    00:46:00 01:17:00
    01:20:00 02:01:00
    00:06:00 00:05:00
    00:26:00 00:39:00
    00:19:00 00:33:00
    00:53:00 00:52:00
    00:38:00 01:53:00
    00:25:00 00:55:00
    00:24:00 00:55:00

    A bit more investigation today seems to suggest that it is using more RAM. We get to the point where we have 2 spawned processes at 7.5GB each on a machine with 16GB total. I suspect that they are being constrained by this and potentially hitting the swap file, which would explain slowdown.

    Upgrading to 32GB did give a marginal improvement, but it still way slower than it was.

    Thanks,

    Kieran
     
    MrEsquire and Howard-Day like this.
  2. Alex-Lian

    Alex-Lian

    Guest

    Could we get a bug report #?
     
  3. kierand

    kierand

    Joined:
    Sep 22, 2014
    Posts:
    32
    Case 789908
     
  4. phr00t

    phr00t

    Joined:
    Apr 19, 2016
    Posts:
    41
  5. kierand

    kierand

    Joined:
    Sep 22, 2014
    Posts:
    32
    6.4b12 is the version that we have done the timings for. I have done minimal testing on b13 and b15 and it appears to be roughly the same on those. Baked lighting was working on b15 though when I briefly tried it.
     
  6. kierand

    kierand

    Joined:
    Sep 22, 2014
    Posts:
    32
    We have noticed that Bake Indirect and Final Gather seem to take the most time if that helps.