Long compile times

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

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
When compiling my map, it keep getting stuck on 9... on portal flow. I know exactly why this is, as I have recently added a huge amount of prop_dynamics. How can I keep the same amount of props while getting a consistant compile time?
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
Portals have nothing to do with props, though! I'd imagine you have to many visleaf cuts, caused by too much complex geometry not func_detailed.
I have no complex geometry left though, as I func_detailed the previous set that was slowing compiling. All I have done for this compilation is add the crate models, so I wouldn't have thought it is anything else.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
Nothing happens when I load the portal file except most things are outlined with a sort of blue box, like when you press I
 

The Guy You Know

L1: Registered
Jun 18, 2016
36
7
sometimes compiling a map with diffrent settings can help, even re-running the compiler on high settings after having it set on low settings has helped me fore. I can't say how the reliable doing that is but you can try doing that if you want.
 
Last edited:

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
sometimes compiling a map with diffrent settings can help, even re-running the compiler on high settings after having it set on low settings has helped me fore. I can't aay how the reliable doing that is but you can try doing that if you want.
After disabling VIS and RAD, it compiled almost instantly, but when looking at thecompile log, it seemed extremely short, and didnt contain visleaf rendering or portal flow rendering, but this fixed the issue. Thanks so much!
 

Tumby

aa
May 12, 2013
1,084
1,190
No what no don't do that
You are literally making your map unplayable by disabling everything or sometimes even just setting it to 'fast'.

You need to learn about optimization: The process of making compile times and/or ingame performance better.
read, read and dont stop reading http://www.optimization.interlopers.net/
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
Nothing happens when I load the portal file except most things are outlined with a sort of blue box, like when you press I
That's what it's supposed to do. Those blue outlines indicate the visleafs your map was divided into. The goal (simply put) is to make these leafs look as clean as possible, so if you have any dense clusters of blue lines then you should consider func_detailing the brushes that are making those leaf cuts.

Running a fast compile is like putting a band-aid on the problem. You want to optimize your map well enough so that you can run a full compile at a reasonable length.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
21 minutes, 41 seconds elapsed. This is with RAD disabled
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
That's what it's supposed to do. Those blue outlines indicate the visleafs your map was divided into. The goal (simply put) is to make these leafs look as clean as possible, so if you have any dense clusters of blue lines then you should consider func_detailing the brushes that are making those leaf cuts.

Running a fast compile is like putting a band-aid on the problem. You want to optimize your map well enough so that you can run a full compile at a reasonable length.
Another problem is that my map doesn't seem to be generating a .prt file anymore, and when hammer last crashed it dissapeared. Is there any way to re-create it?
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
A portal file will only be generated if VBSP finishes without leaks, so make sure you have no errors. You can run VBSP only just to save time generating the file, and do a full compile later.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
A portal file will only be generated if VBSP finishes without leaks, so make sure you have no errors. You can run VBSP only just to save time generating the file, and do a full compile later.
Thank you a lot for the portal file help. using them, I found that about 50+ visleafs were produced alone by these 5 window panes and about 20 by a single Iron girder, of which I had 5 of.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
No what no don't do that
You are literally making your map unplayable by disabling everything or sometimes even just setting it to 'fast'.

You need to learn about optimization: The process of making compile times and/or ingame performance better.
read, read and dont stop reading http://www.optimization.interlopers.net/
Using just the func_detail(with the portal file) and skybox sections of the guide, I cut the compile time from around 21 minutes to 59 seconds!
 

The Guy You Know

L1: Registered
Jun 18, 2016
36
7
After disabling VIS and RAD, it compiled almost instantly, but when looking at thecompile log, it seemed extremely short, and didnt contain visleaf rendering or portal flow rendering, but this fixed the issue. Thanks so much!

no problem, just remember to use normal settings when compiling a map ready for release
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
Found it is much better when only RAD is disabled
Dude, you're not supposed to be disabling any of them even for testing - how do you see your lighting that way? All 3 of VBSP, VVIS, VRAD serve each its own purpose and must all be run in order for the map to function properly.