Quick optimization tips...

Discussion in 'Mapping Questions & Discussion' started by Noggin, Mar 12, 2008.

  1. Noggin

    Noggin L5: Dapper Member

    Messages:
    226
    Positive Ratings:
    48
    I had emailed Valve for optimization help and got this reply...

    Hints
    Adding hints to improve vis doesn't necessarily decrease compile time. It depends on the construction of the level. If you have a large open level with lots of leaves visible, vvis will take awhile to compile. Hints will just increase that time because more leaves are created. The best measurement of performance is running a comparison before and after in the engine, using +showbudget.


    Using SmokeVolumes
    If your smokevolumes are very large, it's possible they are intersecting too many leaves and are drawing all the time. You could try splitting them into smaller volumes.

    Func_viscluster
    Func_viscluster is used to merge leaves together. It is usually used in large open areas where multiple leaves are unnecessary, or in areas where's there's too many leaf cuts due to complicated geometry and you want to merge them together. It is not something that should be used a lot, as it is basically bypassing the BSP tree.


    Hammer & Portal Files
    You can see what leaves are generated inside Hammer, first run vbsp on your map, then choose Map > Load Portal File. This can be helpful to see how vbsp has cut up your level into leaves, and is equivalent to using "mat_leavis 1" in the engine. Adjust your hints or func_visclusters, run vbsp only again, then Load Portal File again to see the results.
     
  2. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,275
    It's great that Valve takes the time to respond to individual requests. I love the load portal file function because unlike mat_leafvis you can edit as you see visibility muckups inside of hammer.
     
  3. DJive

    aa DJive Cake or Death?

    Messages:
    1,466
    Positive Ratings:
    736
    This is great because its from the Sources mouth *no pun*

    I didn't know about Hinting large area's can hurt more then help =)
     
  4. Armadillo of Doom

    aa Armadillo of Doom Group Founder, Lover of Pie

    Messages:
    949
    Positive Ratings:
    614
    This is really cool. Where's our letter to Valve? We need to get that thing sent. Anyways, nice find.
     
  5. Noggin

    Noggin L5: Dapper Member

    Messages:
    226
    Positive Ratings:
    48
    Yeah that letter should be sent asap... itd take some time to implement those requests.
     
  6. Geuel

    Geuel L2: Junior Member

    Messages:
    50
    Positive Ratings:
    7
    Do we know whether or not anyone from Valve has been here?