Problems with compiling

  • If you're asking a question make sure to set the thread type to be a question!

human trash

L1: Registered
Oct 13, 2020
7
1
Hello,

I'm close to finishing my map and as I got rid of all the leaks I started having problems with
compiles. (When there were leaks, the compiles were quick and everything seemed fine).
When compiling with everything on normal the map will not load and Hammer would stop responding.

Do you guys have any tips for that?
I can provide more info and screenshots if requested.

Thank you, any advice helps :)
 

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
The reason Hammer stops responding is because it's compiling. This isn't a crash, this is simply an oversight: Whenever Hammer is performing a long calculation, the UI stops responding. Hammer will resume responding, and the map will load, when the map is done compiling. This occurs even in short compiles, although the issue is less noticeable when the compile takes a shorter time period.

The reason compiling after you've fixed all your leaks takes longer than with a leak is because when a map leaks, it prevents the compiler from doing a whole bunch of important optimizations and lighting calculations. Fixing the leaks allows the compiler to go through with those calculations, so the compile takes longer.

If you find your compile is taking longer than it should, that's probably an indication that you should read up on visibility optimization. You can also watch Crash's tutorial on the subject. In fact, if you haven't watched all of Crash's tutorials, I highly suggest you do.