Search Unity

CPU time to Bake database

Discussion in 'General Graphics' started by zugsoft, Oct 11, 2016.

  1. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    I created a simple scene with Unity 5.3 , only some cubes.

    http://www.zugsoft.com/unity/Bake.zip (32Kb)

    Just open the scene "Simple" , open the Lighting Windows, and click on Build.
    If you want to Bake again, you have to clean the directory \AppData\LocalLow\Unity\Caches\GiCache to be sure Unity will not use previous GI


    Unity Version :
    CPU :
    RAM :
    HD :
    Time :

    Ostwind
    Unity Version : 5.4.1p4
    CPU : i7-6700 @ 4Ghz
    RAM : 16GB Kingston DDR4 2666
    HD : SSD Samsung 850
    Time : 53 seconds


    spacefrog
    Unity Version : 5.4.1p4
    CPU : i7-4930K @ 4.3GHz
    RAM : 32 GB DDR3 2400
    HD : SSD Samsung 850 512GB
    Time : 60 secs


    fffMalzbier
    Unity Version :5.4.0f3
    CPU : Intel(R) Core(tm) i7-3930K CPU @ 3.20GHz
    RAM : 32 GB DDR3
    HD : Samsung SSD 850 Evo 500GB
    Time : 1 minutes 7Seconds


    Martin_H
    Unity Version : 5.4.0f3
    CPU : i7 3820 @3.7GHz
    RAM : 64GB
    HD : SSD for OS drive and HDD for data storage (including unity projects)
    Time : 1 minute 09 seconds


    menfou
    Unity Version : 5.3.6
    CPU : i5 4570s @3.2Ghz
    RAM : 8Go
    HD : SSD Samsung 850Pro
    GPU : Intel 4600HD
    Time : 1minute 19 seconds


    menfou
    Unity Version : 5.3.6
    CPU : 2x Xeon x5680@3.5Ghz
    RAM : 16Go DDR3
    HD : SSD Samsung 850Pro
    GPU : 2x780 GTX TI
    Time : 1minute 17 seconds

    Stardog
    Unity Version : 5.4.0f3
    CPU : i5 2500k 3.3ghz
    RAM : 8GB
    HD : WD Cavier Green 2TB
    GPU : HD4850
    Time : 1m 25s


    RichCodes
    Unity Version : 5.4.0f3
    CPU : AMD FX-8350 4.0GHz
    RAM : 16GB GSkill Ripjaws X DDR3 2133
    GPU: R9 285 2GB
    HD : Muskin Chronos 480GB SSD
    Time : 1 minute 26 seconds

    kaiyum
    Unity Version : 5.3.4f1
    CPU : core 2 duo @2.67Ghz
    RAM : 8GB
    HD : SSD 128GB
    GPU : Nvidia GT730
    Time :
    4 minutes 46 seconds
     
    Last edited: Oct 18, 2016
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Could I suggest you add some very large objects e.g. 100 units or larger as well as some spheres and a few different materials to actually push the GI engine.

    Eg classic GI raytrace test looks like this:



    or this scene is used a lot.



    Edit -> You can find the above Sponza and versions of it here -> http://graphics.cs.williams.edu/data/meshes.xml
     
    Last edited: Oct 11, 2016
  3. RichCodes

    RichCodes

    Joined:
    Apr 3, 2013
    Posts:
    142
    Out of curiosity, I did a quick overclock to 4.4GHz and reran the light bake.

    Time: 1 minute and 24 seconds


    I really thought that big of an overclock would lower the time by more than 2 seconds!
     
    theANMATOR2b likes this.
  4. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    I am very frustrated, with my $4000 computer bought 3 years ago.

    menfou
    Unity Version : 5.3.6
    CPU : 2x Xeon x5680@3.3Ghz
    RAM : 16Go DDR3
    HD : SSD Samsung 850Pro
    GPU : 2x780 GTX TI
    Time : 1minute 20 seconds
     
    theANMATOR2b likes this.
  5. RichCodes

    RichCodes

    Joined:
    Apr 3, 2013
    Posts:
    142
    That should whip the stuffings out of my 8350.

    Did you happen to use some utility to make sure the bake job was utilizing all cores?

    Mine was averaging right around 92% usage on all 8 cores.

    I would say it is the difference between a server chip and a "regular" chip, but the Bulldozer line is as crazy an architecture as they come...
     
  6. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Unity Version : 5.4.1p4
    CPU : i7-6700 @ 4Ghz
    RAM : 16GB Kingston DDR4 2666
    HD : SSD Samsung 850
    Time : 53 seconds

    @Arowx I only tried this cause I saw it would take a couple of minutes but would have skipped Sponza or anything else taking +5 minutes :)
     
    Martin_H likes this.
  7. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    It depends on the setting used in GI, note that the Bake setup is very low quality, probably not the quality settings you would actually want to build to.
     
  8. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,566
    I think it would be more interesting to try more complex scene, that usually takes several hours.
    With very simple scene you won't be getting much data.
    To make this kind of scene you could just make several untextured apartment buildings (out of modules) that include (empty) interiors and attempt to bake them.

    Then you could start ramping quality up, by enabling final gather, etc.
     
  9. spacefrog

    spacefrog

    Joined:
    Jun 14, 2009
    Posts:
    734
    Tested on three Unity versions installed on the same machine. Seems not much has happened on the baking perfomance front...


    Unity Version : 5.3.6p7

    CPU : i7-4930K @ 4.3GHz
    RAM : 32 GB DDR3 2400
    HD : SSD Samsung 850 512GB
    Time : 59 secs
    ----------------------------------------------------

    Unity Version : 5.4.1p4

    CPU : i7-4930K @ 4.3GHz
    RAM : 32 GB DDR3 2400
    HD : SSD Samsung 850 512GB
    Time : 60 secs
    ----------------------------------------------------

    Unity Version : 5.5.0 Beta 7

    CPU : i7-4930K @ 4.3GHz
    RAM : 32 GB DDR3 2400
    HD : SSD Samsung 850 512GB
    Time : 58 secs


     
    Martin_H likes this.
  10. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,755
    The settings are very low and the scene very simple, what you are more or less measuring is the overhead while enlighten switches to the various stages of baking.
     
    Kiwasi likes this.
  11. Martin_H

    Martin_H

    Joined:
    Jul 11, 2015
    Posts:
    4,436
    But myself, and surely some of the others who posted results, aren't going to let our computers be blocked by baking benchmarks for some hours. I never use baking and it wouldn't have been worth the time to me, to take part in a more meaningful benchmark. You guys can start a "proper" one if you think you can get enough people to let their PC bake over night or something like that. Maybe a few tests of people with different hardware, who did the small bake test too, would be enough to extrapolate the data to see if the small test likely produces meaningful results or if there are big relative differences when testing a proper scene?
     
    Ostwind likes this.
  12. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    Yes I could create a very complex scene, but I created a simple scene to stay under 2minutes.

    It's enough for me to see a i7-6700 @ 4Ghz > i7-4930K @ 4.3GHz > i7 3820 @3.7GHz > i5 4570s @3.2Ghz > 2x Xeon x5680@3.3Ghz > AMD FX-8350 4.0GHz

    I did the test many times on my Bi Xeon computer, and it's always the same.
    I remove the automatic frequency adjustment, and set the frequency to 3.5Ghz, and I improve just a bit my time : 1.17s
     
  13. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    How are you getting the timings, is it from the consoles Log?

    What about the other information in the consoles Log file e.g. timings for each step of the GI process, could give people a better idea of what is faster on what hardware e.g. SD drive, more-cores, memory.
     
  14. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,755
    Some hours no, but like 10 minutes should be doable, no?

    As I said, as it is now, we are mostly measuring the overhead since barely any actual calculation happens.
     
    Martin_H likes this.
  15. zugsoft

    zugsoft

    Joined:
    Apr 23, 2014
    Posts:
    453
    I did a new test with my 2x Xeon @ 4Ghz, 49.15s

    C:\Users\admin\AppData\Local\Unity\Editor

    [00:00:12] Enlighten: Bake started.
    [00:00:12] Enlighten: Finished 1 Atlassing job (0.00s execute, 0.00s integrate, 0.06s wallclock)
    [00:00:13] Enlighten: Finished 2 Create Bake Systems jobs (0.79s execute, 0.00s integrate, 0.75s wallclock)
    [00:00:13] Enlighten: Finished 1 Baking Resources job (0.31s execute, 0.00s integrate, 0.31s wallclock)
    [00:00:20] Enlighten: Finished 2 Bake AO jobs (7.67s execute, 0.00s integrate, 6.83s wallclock)
    [00:00:22] Enlighten: Finished 2 Bake Visibility jobs (1.83s execute, 0.00s integrate, 1.61s wallclock)
    [00:00:29] Enlighten: Finished 2 Bake Direct jobs (8.45s execute, 0.00s integrate, 7.61s wallclock)
    [00:00:30] Enlighten: Finished 2 Albedo and Emissive jobs (0.10s execute, 0.00s integrate, 0.12s wallclock)
    [00:00:30] Enlighten: Finished 1 Create Bake Systems job (0.16s execute, 0.00s integrate, 0.19s wallclock)
    [00:00:30] Enlighten: Finished 1 Bake Runtime job (0.63s execute, 0.00s integrate, 0.68s wallclock)
    [00:00:31] Enlighten: Finished 1 Upsampling Visibility job (0.04s execute, 0.00s integrate, 0.06s wallclock)
    [00:00:42] Enlighten: Finished 2 Bake Indirect jobs (12.46s execute, 0.00s integrate, 11.37s wallclock)
    [00:01:01] Enlighten: Finished 2 Final Gather jobs (23.12s execute, 0.00s integrate, 18.94s wallclock)
    [00:01:01] Enlighten: Finished 2 Compositing jobs (0.75s execute, 0.00s integrate, 0.62s wallclock)
    [00:01:01] Enlighten: Bake took 49.155951 seconds.
     
    Martin_H likes this.
  16. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,413

    Unity Version : 5.5.0b7
    CPU : i7-4720HQ CPU @ 2.60GHz
    RAM : 16gb
    HD : 128gb ssd
    Time : [00:01:20] Enlighten: Bake took 56.675427 seconds.
     
  17. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
    Dell XPS-13 (model 9343) laptop, about 2 years old. Did better than I expected, I guess it's the SSD.

    Unity Version : 5.4.0f3
    CPU : i7-5500U @ 2.4 GHz
    RAM : 8 GB DDR3L-RS 1600 MHz Elpida/Micron
    HD : 512 GB SSD (Samsung M.2, can't remember the model)
    Time : 1m 55s


    Do I get a prize for the lowest CPU clock speed here? :)
    Later on I'll try it on my wife's much newer 8-core desktop.
     
  18. Martin_H

    Martin_H

    Joined:
    Jul 11, 2015
    Posts:
    4,436
    Seems like your prize is the second highest bake time so far :D
     
    MV10 likes this.
  19. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
    Thought my wife's machine would do better than this with the RAID0, 8 cores, and high clock, but:

    Unity Version : 5.4.1p4
    CPU : AMD FX-9590 8-core @ 4.7GHz
    RAM : 32 GB DDR3
    HD : 512 GB Crucial SSD (2x in RAID0)
    Time : 1m 10s


    Off-hand I don't remember the SSD or RAM details beyond that. Also that box runs a bunch of background junk that I suspect may hamper things (had Facebook notifications popping up the whole time, and everyone knows Adobe feels they have a devine mandate to run 20 frigging background processes 24/7). Maybe I'll set up another bare-bones profile and try again.
     
  20. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,913
    Unity Version : 5.4.0f3
    CPU : i5 2500k 3.3ghz
    RAM : 8GB
    HD : WD Cavier Green 2TB
    GPU : HD4850
    Time : 1m 25s


    It's basically a piece of crap apart from the CPU. Also, what is the point of Final Gather? I know what it's supposed to do, but it makes almost no difference to the scene compared to the time it takes.
     
  21. Martin_H

    Martin_H

    Joined:
    Jul 11, 2015
    Posts:
    4,436
    That's basically the same rendertime as my old quadcore i7 3820 @3.7GHz and I always have a ton of background processes running too (right now task manager says it's 76). I doubt it affects the result significantly.
     
  22. MV10

    MV10

    Joined:
    Nov 6, 2015
    Posts:
    1,889
    Did a few more passes on my laptop. The times varied over a range of 15 sec, which makes me question the validity.

    Best result, but the earlier one at 1m 55s was probably average, I didn't actually record all of them:

    [00:02:00] Enlighten: Bake took 107.528489 seconds.

     
    Martin_H likes this.
  23. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Unity Version :5.4.0f3
    CPU : Intel(R) Core(tm) i7-3930K CPU @ 3.20GHz
    RAM : 32 GB DDR3
    HD : Samsung SSD 850 Evo 500GB
    Time :66.67Seconds



    CornellBox
    Enlighten: Bake took 81.333160 seconds.
     
    Last edited: Oct 17, 2016