Long compile times!?

Avatar
KenJeKenny!?
238 Posts
Posted Jun 27, 2011
Hey guys another (noob) qeustion! :smile: but i'm really confused on how to optimize my map...

I've done some mapping before for CSS, AS & L4D2 and made much bigger maps...which i could run on full+hdr without any problems... But now with my small portal 2 chamber it's taking ages and i've yet to seen it finish so far... All this after adding 1 room.

Now i've looked into alot of different optimization methods... and tried several now.

I've used alot of different tile sizes for both my walls&floor so i made all the small brushes into func_details (tied together) as if it was 1 big square brush. BUT func_details don't seal of a map... and seeing as i used this technique pretty much everywhere i decided to place my map in a small skybox (which never was a problem with previous games)

I also used skip/hint brushes where appropriate but i was reading and saw some different opinions on optimization. and some said i should only use areaportals and use them on doors/windows. But what about corners/openings. That's where i should be using hint/skip brushes right?

So yeh... what am i doing wrong? should i NOT func_detail the walls/floors because they provide a important visbreak and only func_detail other things WITHIN my map? or leave them func_detailed and place another big nodraw brush behind it?

Also, what should i do with the skip/hint brushes? or can somebody provide me with a good tutorial... because i can't really seem to find one and the VDC is down for maintenance :sad:

Thx alot in advance! :thumbup:

Advertisement
Registered users don’t see ads! Register now!
Avatar
Darkylight
81 Posts
Posted Jun 27, 2011
Replied 30 minutes later
and nodraw for the textures not will be visible? If your map is so bigger your compilation time will increment. If you do bestial detail maps with best lights and much things your compilation time will increment. Including dinamic lights, much large things, much lights...

How many tame take you compile it? And how much large is it? what things do yoyu have in the map?

Avatar
KenJeKenny!?
238 Posts
Posted Jun 27, 2011
Replied 30 minutes later
Yeh offcourse i understand that compile times will increase with map/detail/file size. But this only started after adding 1 room and nothing thats really detailed.... its a really small map so far. Yesterday i tried compiling and it took me over 2 hours after which i just stopped. It went slower the closer it got to 10. Everything else went ok but the PortalFlow keeps freezing up it seems.
Avatar
Marlovious
111 Posts
Posted Jun 27, 2011
Replied 13 minutes later
Have you checked your PC temp's while compiling? I know my AMD 955BE quadcore likes to max all cores during vvis.

Try taking out the hints and skips. If not done correctly, they can actually slow things down.

Avatar
msleeper
4,136 Posts
Admin
Posted Jun 27, 2011
Replied 4 minutes later
Post your compile log.
Avatar
kwp21 pitts
260 Posts
Posted Jun 28, 2011
Replied 6 hours later
Always keep a track of how your vis leaves are splitting; lower number of vis leaves will result a faster compile, Yet don't have too few either. Types of lighting will also effect compile times.
Avatar
KenJeKenny!?
238 Posts
Posted Jun 28, 2011
Replied 2 hours later

msleeper wrote:
Post your compile log.

But i never finished compiling on full+hdr, i ended it myself. Now im running everything on full + hdr except for vvis which is on fast. So i'm not sure if my compile log would help.

kwp21 pitts wrote:
Always keep a track of how your vis leaves are splitting; lower number of vis leaves will result a faster compile, Yet don't have too few either. Types of lighting will also effect compile times.

Yeh so my wall's should be normal brushes? and not func_details? because they provide a a important visbreak...

Avatar
Vordwann
767 Posts
Posted Jun 28, 2011
Replied 1 hour later
I hope (and am sure) that you have nodraw textures on every face that the player cannot see? The only time this can get troublesome is in Old Aperture when players pretty much see everything.
Avatar
KenJeKenny!?
238 Posts
Posted Jun 28, 2011
Replied 8 minutes later

Vordwann wrote:
I hope (and am sure) that you have nodraw textures on every face that the player cannot see? The only time this can get troublesome is in Old Aperture when players pretty much see everything.

Yup... maybe somebody can take a look at my .vmf and tell me what im doing wrong? Just tell me, dont change yourself... because that way i wont learn...

Avatar
Darkylight
81 Posts
Posted Jun 28, 2011
Replied 10 minutes later
Today I had the same problem, try copying the entery map to a new map and compile it.
Avatar
NocturnalGhost
200 Posts
Posted Jun 28, 2011
Replied 1 hour later

This site is an excellent resource for learning about optimization:

http://optimization.interlopers.net/ind ... er=notices

It definately sounds like a badly-optimized map, since it hangs on the portalflow step of compiling. Feel free to post your vmf, and i'll have a look. I'm no expert, but I know the basics and i've had a fair bit of practise troubleshooting this kind of stuff in the past. I'm sure others will take a look as well.

Avatar
WinstonSmith
940 Posts
Posted Jun 28, 2011
Replied 23 minutes later
If Portalflow's a-hangin' you have too much brushwork somewhere. Have you carved anything? Do you have cylinders, arches, or other detailed brushwork that isn't a func_detail? Try to make everything that isn't void-sealing a func_detail; if the problem persists, copy everything to a new map, and finally, yeah, make sure the hint brushes aren't actually screwing things up.
Avatar
KenJeKenny!?
238 Posts
Posted Jun 28, 2011
Replied 45 minutes later

WinstonSmith wrote:
If Portalflow's a-hangin' you have too much brushwork somewhere. Have you carved anything? Do you have cylinders, arches, or other detailed brushwork that isn't a func_detail? Try to make everything that isn't void-sealing a func_detail; if the problem persists, copy everything to a new map, and finally, yeah, make sure the hint brushes aren't actually screwing things up.

I know enough to know that carving is a sin :razz: and besides 4 simple triangular brushes all else is normal brushwork. And yeh my walls are very detailed, exisiting out of alot of different brushes (to accomodate the different texture tile sizes.

But seeing as they pretty much form all my outer walls, should i NOT func_detail them? because they are a important visbreak? and i geuss i'll try removing all my hint/skip brushes and see what happens then...

If that still fails to work i'll just post my .vmf i geuss...

Advertisement
Registered users don’t see ads! Register now!
Avatar
NocturnalGhost
200 Posts
Posted Jun 28, 2011
Replied 36 minutes later
Your outer walls should not be func_details. By making them such, then surrounding the level with a skybox, the compile tools have to work much harder working out what is visible from any one point, and in this scenario pretty much everything will be visible, due to the fact that func_details don't block vis.