What would affect compile times?

Discussion in 'Mapping Questions & Discussion' started by Moonrat, Dec 11, 2015.

  1. Moonrat

    aa Moonrat The end of an era

    Messages:
    877
    Positive Ratings:
    502
    Ehh, might as well ask. What do you guys think would have the most profound effect on the speed of compiles?

    Would it be Ram, the Processor, or something else I haven't considered?
     
  2. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    735
    Positive Ratings:
    72
    well: changing compile settings, limiting skyboxes, plentiful lighting, and no leaks will drastically improve compile times
     
  3. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,818
    Positive Ratings:
    4,659
    Processor. The compile EXE's are 32 bit programs so they can only use 4gb of ram regardless. They are entirely CPU-bound operations and can use up to 18(?) threads, so having a multi threaded powerful processor will speed it up.
     
    • Thanks Thanks x 1
  4. zahndah

    aa zahndah professional letter

    Messages:
    715
    Positive Ratings:
    618
    Leaks can make compile time longer of shorter im quite sure.
     
  5. Vel0city

    aa Vel0city personal pick-pocketing parrot

    Messages:
    1,880
    Positive Ratings:
    1,487
    Compile times can be affected by the following:

    CPU horsepower. VBSP, VVIS and VRAD can use up to 16 threads however a 16-core Xeon would be outperformed by a 8-core higher clocked CPU like a i7-5960X. Hell, I'm willing to bet that an overclocked "consumer" i7 (like a 6700K or 4790K) will outperform a more-than-8 core Xeon. Don't use AMD CPUs for these kinds of tasks. Their single-core performance is really sub-par compared to Intel's lineup (although the upcoming Zen architecture promises to make that issue go away).
    Less-than-optimal optimization of the map. VVIS can literary never finish in some cases if it can't figure out what's visible from where.
    Tiny lightmap grid on all the surfaces. The smaller the grid, the more detail you'll get in your lighting but the longer it takes for VRAD to figure out your lighting. Also increases map file size.
    Leaks will cause compile times to shorten, actually. If you have a leak VVIS will run as if it's set to -fast, and VRAD will only do basic lighting. However, compile times should be the least of your problems when you have a leak.
    RAM speeds and capacity aren't that big of a deal. If you pay attention to the RAM usage of the compiler you'll see that VRAD is the biggest user of RAM, but it will never even come close to 500-550 MB usage, unless you have a map the size of the entire Hammer grid with a 1x lightmap grid of course (don't do this would ya?).
    Compile settings of course can influence compile times, for better or for worse. Think of running VVIS on -fast which doesn't actually test visibility, or running VRAD with the whole lot active, like LDR and HDR compiling, static prop lighting, you know the deal.
    Make sure the compiler is the only program running (apart from Hammer obviously). Running things like TF2 in the background takes power from the CPU. This should be common knowledge though.

    If I think of something else later I'll edit this post.
     
    Last edited: Dec 12, 2015
  6. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    735
    Positive Ratings:
    72
    Well it does, but causes all manner of render errors
     
  7. zahndah

    aa zahndah professional letter

    Messages:
    715
    Positive Ratings:
    618
    Yes, you dont want to have a leak just to make your compile time shorter. That would be a terrible idea.
     
  8. MoonFox

    MoonFox L10: Glamorous Member

    Messages:
    735
    Positive Ratings:
    72
    well, alright
     
  9. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,454
    Positive Ratings:
    234
    Want to bring Vrad to a standstill? Make your env_light shoot the light 90% horizontal from the Z axis.

    This bug in one of my compiles even took the coding gurus here a while to figure out (like a couple of hours). Once that was corrected, vrad worked just fine. Mind you - if you have time to kill, and I mean A LOT of it, you can get a pretty wild looking lighting effect happening :)
     
  10. Vel0city

    aa Vel0city personal pick-pocketing parrot

    Messages:
    1,880
    Positive Ratings:
    1,487
    You mean that it never hits the ground? That's... interesting... You got a screenshot of the finished product?

    Also 600 posts woohoo.